Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem using autofilter / ctxhx not working

Henrie CuijpersAug 27 2020 — edited Aug 27 2020

I'm realy stuck here.

I have a vanilla oracle 19c installation

Connected to:

Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production

Version 19.3.0.0.0

and i can't get ctxhx (oracle context / text index) to work.

I created 3 documents testdoc2.doc  testdoc2.docx  testdoc2.pdf and try to convert them manually.

See screen output below... ctxhx invoked 3 times, only one output file is generated. And it contains ORA_DRG-11221. The other two conversions give nothing. No error no output. just zip null

What am i missing?

[oracle@mymachine ~]$ mkdir test                                                                                                                               

[oracle@mymachine ~]$ cd test                                                                                                                                  

[oracle@mymachine test]$ mv ../testdoc2.* .                                                                                                                    

[oracle@mymachine test]$ ls -la                                                                                                                                

total 40                                                                                                                                                       

drwxr-xr-x. 2 oracle oinstall  4096 Aug 27 15:03 .                                                                                                             

drwx------. 8 oracle oinstall  4096 Aug 27 15:03 ..                                                                                                            

-rw-r--r--. 1 oracle oinstall  9728 Aug 27 14:33 testdoc2.doc                                                                                                  

-rw-r--r--. 1 oracle oinstall 10331 Aug 27 14:33 testdoc2.docx                                                                                                 

-rw-r--r--. 1 oracle oinstall  6409 Aug 27 14:53 testdoc2.pdf                                                                                                  

[oracle@mymachine test]$ pwd                                                                                                                                   

/home/oracle/test                                                                                                                                              

[oracle@mymachine test]$ ls -la                                                                                                                                

total 40                                                                                                                                                       

drwxr-xr-x. 2 oracle oinstall  4096 Aug 27 15:03 .                                                                                                             

drwx------. 8 oracle oinstall  4096 Aug 27 15:03 ..                                                                                                            

-rw-r--r--. 1 oracle oinstall  9728 Aug 27 14:33 testdoc2.doc                                                                                                  

-rw-r--r--. 1 oracle oinstall 10331 Aug 27 14:33 testdoc2.docx                                                                                                 

-rw-r--r--. 1 oracle oinstall  6409 Aug 27 14:53 testdoc2.pdf                                                                                                  

[oracle@mymachine test]$ env|grep PATH                                                                                                                         

LD_LIBRARY_PATH=/u01/app/ora19/ctx/lib:/u01/app/ora19/lib                                                                                                      

PATH=/u01/app/ora19/ctx/bin:/u01/app/ora19/bin:/home/oracle/.local/bin:/home/oracle/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bi

n:/home/oracle/bin:/home/oracle/bin                                                                                                                            

[oracle@mymachine test]$ ctxhx testdoc2.doc doc.txt                                                                                                            

[oracle@mymachine test]$ ctxhx testdoc2.docx docx.txt                                                                                                          

[oracle@mymachine test]$ ctxhx testdoc2.pdf pdf.txt                                                                                                            

[oracle@mymachine test]$ ls -la                                                                                                                                

total 44                                                                                                                                                       

drwxr-xr-x. 2 oracle oinstall  4096 Aug 27 15:03 .                                                                                                             

drwx------. 8 oracle oinstall  4096 Aug 27 15:03 ..                                                                                                            

-rw-r--r--. 1 oracle oinstall    14 Aug 27 15:03 doc.txt                                                                                                       

-rw-r--r--. 1 oracle oinstall  9728 Aug 27 14:33 testdoc2.doc                                                                                                  

-rw-r--r--. 1 oracle oinstall 10331 Aug 27 14:33 testdoc2.docx                                                                                                 

-rw-r--r--. 1 oracle oinstall  6409 Aug 27 14:53 testdoc2.pdf                                                                                                  

[oracle@mymachine test]$ cat doc.txt                                                                                                                           

ORA_DRG-11221   

[oracle@mymachine test]$                                                                                                                                               

Comments

Rahul Kumar
hi anuradha,
you can use substitution variable in the grid and then display that in text via GetHeading function.

Hope this helps.

Regards,
Rahul
661221
Rahul,

I tried it but itz not displayed...

the sub var is not visible in any dim member selection tabs ..... so i cant getit in data col/row.......if i type & refer with getheading..itz not workin.....


how can we display it????????/


Thanks
Rahul Kumar
hi,

if substitution varible is defined correctly on the cube then it should definately be displayed on the some dimension member selection.

Please check that.
Once it is visible, just use it as a member in any hidden row/column. Then use GetHeading function to display it in a text box.

Regards,
Rahul
661221
Hi,

I have cross checked all dim's in FR...but could not find 'em in any dim's.......other sub variables which r related to dim's r visible under respective dim's(Ex:Year=$curyr)......

i could see it defined in the outline for this cube.

i fell that the data load sub var is not visible under any dim as itz not related to any of them.....

Is there a way to display it in FR.

Thnx
Rahul Kumar
hi,
yes to display a substitution variable, it has to be associated with one of the dimensions.
and then only you will be able to display it.

May be one other option might be to use LINKED OBJECT in FR. so that just updating the information in one text box of one report will do it in all reports.


You can also use substitution variable in that liked object.
1 - 5

Post Details

Added on Aug 27 2020
2 comments
546 views