Problem crating text index with PREFIX_INDEX option

I am trying to create a text index with prefixes option for use in wildcard search scenarios.
Here is the code I use:
connect CTXSYS/*******
BEGIN
ctx_ddl.create_preference('wildcard_pref', 'BASIC_WORDLIST');
ctx_ddl.set_attribute('wildcard_pref','PREFIX_INDEX','TRUE');
ctx_ddl.set_attribute('wildcard_pref','PREFIX_MIN_LENGTH',3);
ctx_ddl.set_attribute('wildcard_pref','PREFIX_MAX_LENGTH',8);
ctx_ddl.set_attribute('wildcard_pref','SUBSTRING_INDEX','YES');
END;
And preference is created
SELECT PRE_OWNER, PRE_NAME FROM CTXSYS.CTX_PREFERENCES;
PRE_OWNER PRE_NAME
CTXSYS WILDCARD_PREF
CTXSYS DEFAULT_STORAGE
CTXSYS DEFAULT_CLASSIFIER
Now when I log as one of the database users and try to create the index,
I got this:
create index wildcard_idx on MY_Table(Name)
indextype is ctxsys.context
parameters ('WORDLIST wildcard_pref') ;
create index wildcard_idx on MY_Table(Name)
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-10700: preference does not exist: wildcard_pref
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
What I am doing wrong ? Keep in mind that I was able to create a text index without the prefixes, but a lot of the searches will be based on patial word search.
Eventualy I would also like to make those indexes be tansactional and work as a datastore (multiple column search)
Thanks.
Stefan

Problem solved.
Atrributes and preferences had to be created by the same user creating the index.
Log as sysdba and
GRANT EXECUTE ON CTX_DDL TO <user_that_creates_index>
And it works.
Message was edited by:
Stef4o

Similar Messages

  • Error when creating index with parallel option on very large table

    I am getting a
    "7:15:52 AM ORA-00600: internal error code, arguments: [kxfqupp_bad_cvl], [7940], [6], [0], [], [], [], []"
    error when creating an index with parallel option. Which is strange because this has not been a problem until now. We just hit 60 million rows in a 45 column table, and I wonder if we've hit a bug.
    Version 10.2.0.4
    O/S Linux
    As a test I removed the parallel option and several of the indexes were created with no problem, but many still threw the same error... Strange. Do I need a patch update of some kind?

    This is most certainly a bug.
    From metalink it looks like bug 4695511 - fixed in 10.2.0.4.1

  • How to link a full text index with catalog in a PDF file ?

    Good morning and thank you for your help.
    I already create some PDF files on a folder (with hypertext links between us) and I use the command "Tools\Document processing\Full Text Index with Catalog" to create an index; at this time everything works properly.
    Now I want to link this Index to my first PDF file in order to use automatically this index on an advance search in this file.
    I hope that someone may answer me!
    Thank you.

    Now I want to link this Index to my first PDF file in order to use automatically this index on an advance search in this file.
    In the properties of the document:

  • Problem importing text file with null value

    I used the following codes to import a text file and it
    worked perfectly.
    However, it skipped the TAB (chr(9)) on the imported row when
    there is no data (empty string) in one of the columns.
    Can someone help? thanks!
    sample text file data:
    00001 desc1 12.00
    00002 25.00
    00003 desc2 15.00
    Code that I used:
    <cffile action="read" file="#FilePath#"
    variable="data">
    <cfset newLine = chr(13) & chr(10)>
    <cfset tabChar = chr(9)>
    <cfoutput>
    <cfloop list="#data#" index="row"
    delimiters="#newLine#">
    <cfset cols = listToArray(row, tabChar)>
    ID = #cols[1]#
    desc = #cols[2]#
    price = #cols[3]# <br>
    </cfloop>
    </cfoutput>

    There is no perfect way to handle this with out you writing
    more complicated code.
    A good compromise is to replace this line:
    <cfset cols = listToArray(row, tabChar)>
    with this:
    <cfset cols = listToArray (Replace (row, tabChar &
    tabChar, tabChar & "{empty}" & tabChar, "ALL"),
    tabChar)>

  • Problems creating/altering index with certain Word docs

    Hello,
    I am having an odd problem when attempting to drop/create or alter my index after entering certain MS Word docs in my table.
    Has anyone run into this? Does anyone have any insight as to which features in Word docs (e.g. macros, etc.) might cause this problem?
    The errors are listed below (they also cause GPFs when extproc.exe runs). Thanks for your help.
    Mike
    alter index blobdoc_idx rebuild online parameters ( 'sync' )
    ERROR at line 1:
    ORA-29863: warning in the execution of ODCIINDEXCREATE routine
    SQL> CREATE INDEX BLOBDOC_IDX
    2 ON BLOBS(DOC_BLOB) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('FILTER ctxsys.INSO_FILTER STORAGE
    INTERMEDIASTORE LEXER INTERMEDIALEXER');
    CREATE INDEX BLOBDOC_IDX
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    ORA-28579: network error during callback from external procedure agent
    ORA-06512: at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 54
    ORA-06512: at line 1

    Additional information: error message found in CTXSYS.DR$INDEX_ERROR TABLE:
    DRG-10595: ALTER INDEX BLOBDOC_IDX failed
    ORA-28579: network error during callback from external procedure agent
    Mike
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Hoekstra ([email protected]):
    Hello,
    I am having an odd problem when attempting to drop/create or alter my index after entering certain MS Word docs in my table.
    Has anyone run into this? Does anyone have any insight as to which features in Word docs (e.g. macros, etc.) might cause this problem?
    The errors are listed below (they also cause GPFs when extproc.exe runs). Thanks for your help.
    Mike
    alter index blobdoc_idx rebuild online parameters ( 'sync' )
    ERROR at line 1:
    ORA-29863: warning in the execution of ODCIINDEXCREATE routine
    SQL> CREATE INDEX BLOBDOC_IDX
    2 ON BLOBS(DOC_BLOB) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('FILTER ctxsys.INSO_FILTER STORAGE
    INTERMEDIASTORE LEXER INTERMEDIALEXER');
    CREATE INDEX BLOBDOC_IDX
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    ORA-28579: network error during callback from external procedure agent
    ORA-06512: at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 54
    ORA-06512: at line 1
    <HR></BLOCKQUOTE>
    null

  • Problem using text element with type TEXT INCLUDE in smartforms

    Hi,
    I am working on smartform.
    My requirement is to print the text which can range from 1 to 99 (free text). I am using TDNAME, TDOBJECT and TDID from STXH table and putting it in the fields Text Name, Text Object and Text ID of text element created with type "TEXT INCLUDE" in window in smartform.
    It works Fine only when I put exact value of TDNAME in Text Name field.
    But in my case TDNAME can vary according to value of AENNR from Table AENR.
    So I am trying to use a variable called W_TDNAME and pass TDNAME value to it. I am putting this W_TDNAME in the field TEXT NAME. And it says "Inlcude text W_TDNAME does not exist".
    HELP ME OUT.
    ANSWERS WILL BE AWARDED..
    Tushar

    Hi Tushar,
    When you see in Text name field, there is a small button at the end of that field. This is to switch the dynamic field value option on. Click that and use the format &field_name& to enter your variable in that field.
    Deepak Charanyan

  • Problem in select querry with select option

    Hi all,
    How have a problem with the select querry, Pls correct my querry
    select opbel gpart betrw fdgrp into table lt_balance from dfkkop
                      where fdgrp in s_augrp
                        and hvorg = '5000'
                        and tvorg = '0100'.
    Thanx in advance,
    Line

    Hi
    I have tried this select querry, but I am unable to fetch the data in the internal table
    select opbel gpart betrw fdgrp into correspondiing fields of table it_balance
    from dfkkop
    where fdgrp in s_augrp
    and hvorg = '5000'
    and tvorg = '0100'.
    Can you please tell me what is wrong in this querry,
    Line

  • Error at Building full text index with catalog

    Hello,
    Recently I am getting this error at the time of building index....  I did not have this problem before and my index was running... I get this same error on two diffrent machine....  Where can I look and see what is going on and what is wrong... looked at the Adobe PDF hopping to see some log file and I did not see one... I am highly frustrated.
    CRC).pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\Radiology\2013-12-17_02-36-25PM_01(RadioWCRC)
    .pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\Radiology\2013-12-17_02-50-48PM_01(RadioWCRC)
    .pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\Radiology\2013-12-17_04-59-52PM_01(RadioMissi
    on).pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\Radiology\2013-12-17_09-06-46AM_01(RadioWCRC)
    .pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\Radiology\2013-12-17_12-30-52PM_01(RadioWCRC)
    .pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\Radiology\2013-12-18_05-41-27AM_01(RadioWCRC)
    .pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-06-28_07-45-50PM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-06-28_08-45-49AM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-06-28_11-14-19AM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-06-29_07-45-41PM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-06-29_11-24-47AM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-06-30_08-32-12AM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-01_11-59-51AM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-03_02-10-07PM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-03_03-15-49PM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-03_03-35-44PM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-03_08-34-49AM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-03_08-45-55AM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-03_10-24-29AM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-05_02-24-09PM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-05_03-17-11PM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-05_03-53-52PM_01.pdf
    Extracting :
    C:\SharedDir\Dropbox\Processed\ToBeAttached\2013-07-05_09-54-17AM_01.pdf
    Creating Index
    Deleting files from current index
    Deleting : C:\SharedDir\Dropbox\Processed\ZProcIdx\All\index.idx
    Error: Index build failed
    Here is my system info.
    Available Physical Memory: 1047596 KB
    Available Virtual Memory: 4044868 KB
    BIOS Version: DELL   - 6040000
    Default Browser: C:\Program Files (x86)\Internet Explorer\iexplore.exe
        Version: 8.00.7600.16385 (win7_rtm.090713-1255)
        Creation Date: 2013/04/10
        Creation Time: 7:39:12 AM
    Default Mail: Microsoft Office Outlook
        mapi32.dll
        Version: 1.0.2536.0 (win7_rtm.090713-1255)
        Creation Date: 2009/07/13
        Creation Time: 4:12:29 PM
    Graphics Card: Intel(R) HD Graphics
        Version: 8.15.10.2104
        Check: Not Supported
    Installed Acrobat: C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
        Version: 10.1.8.24
        Creation Date: 2013/09/03
        Creation Time: 5:54:04 AM
    Installed Acrobat: C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe
        Version: 10.1.8.24
        Creation Date: 2013/09/03
        Creation Time: 5:53:50 AM
    Locale: English (United States)
    Monitor:
        Name: Intel(R) HD Graphics
        Resolution: 1366 x 768 x 60
        Bits per pixel: 32
    OS Manufacturer: Microsoft Corporation
    OS Name: Microsoft Windows Vista
    OS Version: 6.1.7600 
    Page File Space: 4194303 KB
    Processor: Intel64 Family 6 Model 37 Stepping 2  GenuineIntel  ~2261  Mhz
    System Name: MRMDINC-LTB
    Temporary Directory: C:\Users\Bahram\AppData\Local\Temp\
    Time Zone: Pacific Standard Time
    Total Physical Memory: 3985944 KB
    Total Virtual Memory: 4194176 KB
    User Name: Bahram
    Windows Directory: C:\Windows
    Installed plug-ins:

    Yes it does but you know it used to work before and when I do the indexing for the subfolder of this folder I have no problem....  I think I am going to sign off/exit the drop box and try and see if it help.

  • Problem java.text.NumberFormatter with specified numbers

    Hello!
    I have a peculiar problem with NumberFormatter class. Some numbers when formatted, are incorrect formatted. See the code:
    public static void main(String[] args) {
            // TODO code application logic here
            System.out.println("Print Double 133361.60: \n"+133361.60d);
            System.out.println("Print Float 133361.60: \n"+133361.60f);
            System.out.println("Maximum Float Value 133361.60: \n"+Float.MAX_VALUE);
            System.out.println("Formatting Float number 133361.60: \n"+NumberFormat.getInstance().format(new Float(133361.60)));
            System.out.println("Formatting Double number 133361.60: \n"+NumberFormat.getInstance().format(new Double(133361.60)));
            System.out.println("Formatting Double number 888888.60: \n"+NumberFormat.getInstance().format(new Double(888888.60)));
            System.out.println("Formatting Float number 888888.60: \n"+NumberFormat.getInstance().format(new Float(888888.60)));
        }Now, see the out image:
    [Float incorrect format Netbeans image|http://farm5.static.flickr.com/4131/4980695450_97bde8a985_b.jpg]
    Thank you !!
    Edited by: denis.r.s on Sep 11, 2010 1:57 PM

    hello again and thanks for answering!
    I put the code that was to outline in simple terms the problem. Actually this code is attached to JFormattedTextField to format numbers. I use it the way you suggested. However, I did as you said and still the problem occurs. The difference is that it rounds the numbers, I put the number of homes without just to illustrate how it transforms into another number when it formats it. You tried to run the code? Perhaps it is hardware problem or OS, but do not know. See the new code and the output:
    public static void main(String[] args) {
            // TODO code application logic here
            System.out.println("Print Double 133361.60: \n"+133361.60d);
            System.out.println("Print Float 133361.60: \n"+133361.60f);
            System.out.println("Maximum Float Value 133361.60: \n"+Float.MAX_VALUE);
            NumberFormat n = NumberFormat.getInstance();
            n.setMaximumFractionDigits(2);
            n.setMinimumFractionDigits(2);
            System.out.println("Formatting Float number 133361.60: \n"+n.format(new Float(133361.60)));
            System.out.println("Formatting Double number 133361.60: \n"+n.format(new Double(133361.60)));
            System.out.println("Formatting Double number 888888.60: \n"+n.format(new Double(888888.60)));
            System.out.println("Formatting Float number 888888.60: \n"+n.format(new Float(888888.60)));
        }[Image Number Formatter with maximum, minimum fraction digits|http://farm5.static.flickr.com/4108/4986562950_092502c5e7_b.jpg]
    Thank you for your attention and sorry for my bad english!

  • How to Write Waveform graph data to Text File with user option to do so

    So, I'm new to labview and am having trouble writing one program in particular.  I have a waveform graph that runs for 120 seconds generating a sine curve.  I am, however, having a difficult time getting the program to write the x and y coordinates into a text file.  I have attached what I have so far.  
    The first task I was assigned was to write a program that creates a snusoidal curve on the front pannel adding one data point each half second for 120 seconds.  The plot should only start when the user presses a start button.
    The next part involves giving the user an option to write the generated data to a spreadsheet file called "sine.txt".  The file name and location should be hardcoded.  The file should contain the x and y coordinates of each data point in columns separated by tabs, also known as delimited.
    I have spent several hours tweaking the attached program and I just can't seem to get it to work right.  Any suggestions would help at this point.
    Sincerely,
    A frustrated chemistry student whose research mentor is out of town
    Solved!
    Go to Solution.
    Attachments:
    Sinusoidal Curve (saving to excel).vi ‏45 KB

    First, you are not creating Excel files.  You are creating text files.  And it seems that your Write to file is already creating X (time) vs. Y (data curve) that is tab delimited.
    Everything else you are doing is just too complicated or a Rube Goldberg.
    All you need is the attached.
    Attachments:
    Sinusoidal_Curve_(saving_to_Text_file).vi ‏69 KB

  • Create Oracle Text Index from Java via JDBC

    Hi, I have a question relevant to creation of the Text Index in Oracle Text via Java JDBC.
    In Java I create client application and I connect to remote Oracle server. (there is Oracle
    10g Enterprise Edition 10.2.0.3.0 on Debian Linux OS). In Java I create query:
    CREATE INDEX index_name ON source_tab(text) indextype is ctxsys.context
    parameters('datastore ctxsys.file_datastore filter ctxsys.null_filter');
    and I start it by:
    PreparedStatement stmt = db.prepareStatement(query);
    ResultSet rs = stmt.executeQuery();
    There is problem that Text Index is created empty and when I write out error log then:
    DRG-11513: unable to open or write to file "path"
    I have on my computer Oracle XE 10g (Windows XP OS) here this application in Java functions
    without problems. Without problems it´s with that same query in SQLPlus when I connect at
    this remote Oracle server via PuTTY.
    Do you know anybody where could be error? Or at worst case where find I more detailed
    manual about JDBC Oracle mainly possible errors and problems with compatibility?

    Does it work if you don't use "file_datastore"?
    Eg. try the following in sqlplus:
    create table t (text varchar2(2000));
    insert into t values ('hello world');
    create index ti on t(text) indextype is ctxsys.context;
    select * from t where contains (text, 'hello') > 0;
    Then drop the index ti and try the same "create index" through JDBC. Does that work?
    If so, then we have some kind of issue with the file_datastore. I assume you are aware that the file will be read by the SERVER, not from the client?
    So if your database resides on a Linux box, but you are calling from a Java program on a windows PC, the file names in source_tab(text) must be in Linux format, and must refer to files which are available on the Linux server (and readable by the owner of the Oracle database process).
    So /home/me/file.txt might work, but C:\Documents\file.txt will not.

  • Error while rebuilding a text index

    I am on Oracle 10.2.0.3 and HP UNIX 11i. I am rebuilding a text index (textidx1) online
    using:
    Alter index rebuild textidx1;
    If I do a query so index is used, I get:
    ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE
    Error goes away after index is completely rebuilt.
    Since I am rebuilding index online, this error should not occur, otherwise what
    Is the purpose of on line index rebuild? Can someone explain how to get rid
    Of the error. I cannot stop my application while rebuilding text indexes.

    With text indexes if one adds the workd online:
    alter index X_TEXT_OBJECT_VALUE rebuild online
    ERROR at line 1:
    ORA-29874: warning in the execution of ODCIINDEXALTER routine
    ORA-29960: line 1,
    DRG-10595: ALTER INDEX X_TEXT_OBJECT_VALUE failed
    DRG-10562: missing alter index parameter
    with normal indexes adding online does not give syntax error.

  • Trying to understand Text Filters with "contain"?

    I setup a text filter with the option of "contain" or "contains all" and a filter value of "Scouts" yet I get numerous pictures that don't match this? For example the following picture with these keywords, "band, Flutes, Matthew Leach, ZORK", come back from the filter request.
    If I switch to "contains words" then the filter appears to work as suspected.
    This is version 2.6.
    David

    David, this does seem anomalous. Are you sure that you have cleared the value field? Have you selected the correct Folder for searching? I cannot see how images not containing the search term in the chosen field are returned.
    Try a simple experiment. Select a folder, any folder; select one image and examine the keywords. Copy one of those keywords and search the whole folder for that term. Pictures with that keyword should appear. Check randomly to confirm the presence of the search term. If that works, your technique is OK.
    Select 'none' in the search panel and start again with a folder known to contain 'scouts' and choose 'select'. You don't need to use 'select all' unless you include more than one search term. Hope this helps.
    David

  • Can the text index do it for me?

    Hi all,
    I have the following requirements und question to oracle text index:
    I have saved in the VARCHAR2 column some strings:
    CREATE TABLE t1
    (STR VARCHAR2(200));
    INSERT INTO t1 (STR)
    VALUES ('Abcd');
    INSERT INTO t1 (STR)
    VALUES ('abcd');
    INSERT INTO t1 (STR)
    VALUES ('Aabcd');
    INSERT INTO t1 (STR)
    VALUES ('Abcd-ef');
    INSERT INTO t1 (STR)
    VALUES ('Abcd ef');
    INSERT INTO t1 (STR)
    VALUES ('Abcd - ef');
    INSERT INTO t1 (STR)
    VALUES ('Abcd - 12');
    INSERT INTO t1 (STR)
    VALUES ('Abcd_ef12');
    INSERT INTO t1 (STR)
    VALUES ('Abcdef');
    INSERT INTO t1 (STR)
    VALUES ('Abcdgh');
    INSERT INTO t1 (STR)
    VALUES ('Abcdij');
    INSERT INTO t1 (STR)
    VALUES ('Abcdklmnop');
    COMMIT;Then I create a text index with the following script:
    BEGIN
      CTX_DDL.CREATE_PREFERENCE('SUBSTR_PREF','BASIC_WORDLIST');
      CTX_DDL.SET_ATTRIBUTE('SUBSTR_PREF','SUBSTRING_INDEX','TRUE');
      CTX_DDL.CREATE_PREFERENCE('pj_lex', 'BASIC_LEXER');
      CTX_DDL.SET_ATTRIBUTE('pj_lex', 'PRINTJOINS', '-');
      CTX_DDL.CREATE_PREFERENCE('mcds_t1_str', 'MULTI_COLUMN_DATASTORE');
      CTX_DDL.SET_ATTRIBUTE('mcds_t1_str', 'COLUMNS', '''XZX''||STR');
    END;
    CREATE INDEX IDX_T1_STR ON T1
    (STR)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('wordlist  SUBSTRING_PREF
                LEXER     pj_lex
                DATASTORE mcds_t1_str
                memory    50m')
    NOPARALLEL;My requirements are: when I search for "abcd" (WHERE contains (STR, 'XZX'||:var1||'%') > 0):
    I should get: Abcd, abcd, Abcd-ef, Abcd ef, Abcd - ef, Abcd - 12, Abcd_ef12, but not Abcdef*, Abcdgh*,*Abcdij*, Abcdklmnop*, Aabcd*
    The found text should start with "abcd" (case insensitive), after "abcd" it should have 1 or more characters which start with blank, "-", "_", or some other special character, but should not start with a letter!
    Is it possible to achieve it with oracle text index?
    Regards

    You must define the hypen etc. as SKIPJOINS not as PRINTJOINS.
    BTW your create index skript fails due to wrong parameter name.
    BEGIN
      CTX_DDL.CREATE_PREFERENCE('SUBSTR_PREF','BASIC_WORDLIST');
      CTX_DDL.SET_ATTRIBUTE('SUBSTR_PREF','SUBSTRING_INDEX','TRUE');
      CTX_DDL.CREATE_PREFERENCE('pj_lex', 'BASIC_LEXER');
      CTX_DDL.SET_ATTRIBUTE('pj_lex', 'SKIPJOINS', '-');
    END;
    CREATE INDEX IDX_T1_STR ON T1
    (STR)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('wordlist  SUBSTR_PREF
                LEXER     pj_lex'
    select *
    from t1
    where
    contains (str, 'abcd') > 0
    STR
    Abcd ef
    Abcd
    abcd
    Abcd - ef
    Abcd - 12
    Abcd_ef12 Edited by: chris227 on 06.03.2013 00:58
    Example added

  • About index memory parameter for Oracle text indexes

    Hi Experts,
    I am on Oracle 11.2.0.3 on Linux and have implemented Oracle Text. I am not an expert in this subject and need help about one issue. I created Oracle Text indexes with default setting. However in an oracle white paper I read that the default setting may not be right. Here is the excerpt from the white paper by Roger Ford:
    URL:http://www.oracle.com/technetwork/database/enterprise-edition/index-maintenance-089308.html
    "(Part of this white paper below....)
    Index Memory                                    As mentioned above, cached $I entries are flushed to disk each time the indexing memory is exhausted. The default index memory at installation is a mere 12MB, which is very low. Users can specify up to 50MB at index creation time, but this is still pretty low.                                   
    This would be done by a CREATE INDEX statement something like:
    CREATE INDEX myindex ON mytable(mycol) INDEXTYPE IS ctxsys.context PARAMETERS ('index memory 50M'); 
    Allow index memory settings above 50MB, the CTXSYS user must first increase the value of the MAX_INDEX_MEMORY parameter, like this:                                
    begin ctx_adm.set_parameter('max_index_memory', '500M'); end; 
    The setting for index memory should never be so high as to cause paging, as this will have a serious effect on indexing speed. On smaller dedicated systems, it is sometimes advantageous to temporarily decrease the amount of memory consumed by the Oracle SGA (for example by decreasing DB_CACHE_SIZE and/or SHARED_POOL_SIZE) during the index creation process. Once the index has been created, the SGA size can be increased again to improve query performance.&quot;
    (End here from the white paper excerpt)
    My question is:
    1) To apply this procedure (ctx_adm.set_parameter) required me to login as CTXSYS user. Is that right? or can it be avoided and be done from the application schema? This user CTXSYS is locked by default and I had to unlock it. Is that ok to do in production?
    2) What is the value that I should use for the max_index_memory should it be 500 mb - my SGA is 2 GB in Dev/ QA and 3GB in production. Also in the index creation what is the value I should set for index memory parameter  - I had left that at default but how should I change now? Should it be 50MB as shown in example above?
    3) The white paper also refer to rebuilding an index at some interval like once in a month:   ALTER INDEX DR$index_name$X REBUILD ONLINE;
    --Is this correct advice? i would like to ask the experts once before doing that.  We are on Oracle 11g and the white paper was written in 2003.
    Basically while I read the paper, I am still not very clear on several aspects and need help to understand this.
    Thanks,
    OrauserN

    Perhaps it's time I updated that paper
    1.  To change max_index_memory you must be a DBA user OR ctxsys. As you say, the ctxsys account is locked by default. It's usually easiest to log in as a DBA and run something like
    exec ctxsys.ctx_adm.set_parameter('MAX_INDEX_MEMORY', '10G')
    2.  Index memory is allocated from PGA memory, not SGA memory. So the size of SGA is not relevant. If you use too high a setting your index build may fail with an error saying you have exceeded PGA_AGGREGATE_LIMIT.  Of course, you can increase that parameter if necessary. Also be aware that when indexing in parallel, each parallel process will allocated up to the index memory setting.
    What should it be set to?  It's really a "safety" setting to prevent users grabbing too much machine memory when creating indexes. If you don't have ad-hoc users, then just set it as high as you need. In 10.1 it was limited to just under 500M, in 10.2 you can set it to any value.
    The actual amount of memory used is not governed by this parameter, but by the MEMORY setting in the parameters clause of the CREATE INDEX statement. eg:
    create index fooindex on foo(bar) indextype is ctxsys.context parameters ('memory 1G')
    What's a good number to use for memory?  Somewhere in the region of 100M to 200M is usually good.
    3.  No - that's out of date.  To optimize your index use CTX_DDL.OPTIMIZE_INDEX.  You can do that in FULL mode daily or weekly, and REBUILD mode perhaps once a month.

Maybe you are looking for

  • Magic Mouse Guide for Windows 7 and Vista,,,

    Hello All, I recieved my Magic Mouse and it works great under OSX but I couldn't get it working under Windows at all. Searching here and around the web, I've compiled a guide on how I got it working. Hopefully, Apple will release proper drivers in th

  • Customer Payment Pattern

    Hi All, Is there any report in SAP that gives the payment history of customers. I am looking for report in which can analyse for a certian period that how much has the customer paid within payment due dates. Based on his payment history and sales the

  • Reg: Requirement to change Variable Screen with BI 7.0

    Hi,    We have a Requirement with Variable Screen in WAD 7.0 (7.1 GUI). Issue 1: By seeing the Variable in Variable Screen, <b>we can't say whether it will accept Multiple Values or not</b>? ..We need to press F4 then only we can come to know. Issue

  • How to change password for sidadm user on HP-UX

    Hello How to change password for <sidadm> user on HP-UX

  • Adobe Flash woes

    Okay, has anyone else been getting this one? Page starts loading in. Spinning psychedelic beachball, no response, etc. Finally, this message: "A script in this movie is causing adobe Flash Player 10 to run slowly. If it continues to run, your compute