Oracle Text - resulting from problem within cross Lexer (French/German)

-Oracle DB Version:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
AMT for Solaris: release 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production

-Test Table with data
create table mytest (key primary number id, docs clob, lang VARCHAR2 (30));
INSERT INTO VC_V7 VALUES (1, "I'm going to die ', 'french'");
INSERT INTO VC_V7 VALUES (2, 'the dog is dead ',' french');
INSERT INTO VC_V7 VALUES (3, "the dog was dead ',' french '");
INSERT INTO VC_V7 VALUES (4, 'glad it is', 'french');
INSERT INTO VC_V7 VALUES ("5, ' we are happy", "french");
INSERT INTO VC_V7 VALUES (6, ' it's beautiful today "today ', 'french');
INSERT INTO VC_V7 VALUES (' 7, ' red car ', 'German');
INSERT INTO VC_V7 VALUES (' 8, ' Roter Zug ', 'German');
INSERT INTO VC_V7 VALUES (9, ' Blau, Grün, rot, 'German');
INSERT INTO VC_V7 VALUES (' 10, ' Ich bin danke ', 'German');
commit;

-Prepare cross Lexer
Start
ctx_ddl.create_preference ('english_lexer', 'basic_lexer');
ctx_ddl.set_attribute ('english_lexer', 'mixed_case', 'no');
ctx_ddl.set_attribute ('english_lexer', 'index_stems', 'ENGLISH');
ctx_ddl.create_preference ('french_lexer', 'basic_lexer');
ctx_ddl.set_attribute ('french_lexer', 'mixed_case', 'no');
ctx_ddl.set_attribute ('french_lexer', 'base_letter', 'no');
ctx_ddl.set_attribute ('french_lexer', 'index_stems', 'FRENCH');
ctx_ddl.create_preference ('german_lexer', 'basic_lexer');
ctx_ddl.set_attribute ('german_lexer', 'mixed_case', 'no');
ctx_ddl.set_attribute ('german_lexer', 'base_letter', 'no');
ctx_ddl.set_attribute ('german_lexer', 'composite', 'german');
ctx_ddl.set_attribute ('german_lexer', 'alternate_spelling', 'german');
ctx_ddl.set_attribute ('german_lexer', 'index_stems', 'GERMAN');

ctx_ddl.create_preference ('global_lexer', 'multi_lexer');
ctx_ddl.add_sub_lexer ('global_lexer', 'default', 'english_lexer');
ctx_ddl.add_sub_lexer ('global_lexer', 'English', 'french_lexer', 'fre');
ctx_ddl.add_sub_lexer ('global_lexer', 'german', 'german_lexer', 'pre');
end;

-Create Index
Drop index myindex;
create index myindex on mytest (docs)
indexType is ctxsys.context
settings)
'COLUMN LANGUAGE LEXER global_lexer lang'
);

-Some queries

1)
SELECT SCORE (1), id, lang, docs
OF mytest
WHERE CONTAINS (docs, ' < query > < lang = "German" textquery > < /textquery > $rot < / query > ', 1) > 0;
-> 3 lines (7, 8, 9)
FIX. In the index table (DR$ MYINDEX$ I) there is an entry "BURP" with Type 9 and TokenCount 2...

2)
SELECT SCORE (1), id, lang, docs
OF mytest
WHERE CONTAINS (docs, ' < query > < lang = "German" textquery > < /textquery > $rote < / query > ', 1) > 0;
-> 1 rank (7)
INCORRECT - 8 and 9 must be returned as well. In the index table (DR$ MYINDEX$ I) there is an entry "BURP" with Type 9 and TokenCount 2...

3)
SELECT SCORE (1), id, lang, docs
OF mytest
WHERE CONTAINS (docs, ' < query > < lang = "french" textquery > < /textquery > $être < / query > ', 1) > 0;
-> no line
INCORRECT - 2, 3, 4 and 5 must be returned. In the index table (DR$ MYINDEX$ I) there is a 'BEING' with the Type 9 and TokenCount 4 entry...

4)
SELECT SCORE (1), id, lang, docs
OF mytest
WHERE CONTAINS (docs, ' < query > < lang = "french" textquery > < /textquery > $mourir < / query > ', 1) > 0;
-> 1 line (1)
INCORRECT - 2 3 ad must be returned as well. In the index (DR$ MYINDEX$ I) there is an entry "DIE" with the Type 9 and TokenCount 2...

I could be missing something easy.

Thanks for your help,

Frédéric

Please see my response combined in your other thread:

Re: Replacement of text Oracle 11 - question of automatic Lexer, language detection, spelling

Tags: Database

Similar Questions

  • How can I change the color of the text resulting from the layer underneath?

    I want to create a text that extends beyond a circle but inside the circle is white and outside is black.

    Make a text layer which is black.  Create a white circle over it and clip it layer to a layer of text by holding down the opt/alt key by clicking between the layers.

  • Error while creating or rebuilding Oracle text Lexer keyword index

    Hi all
    I am getting following error when I create oracle text indexes using lexer & keyword in the list of stopwords.
    Please help me if any body know.
    Thanks in advance.


    Error from the 1 in the command line:
    CREATE INDEX TXT_INX_TEXT_SEARCH ON TEXT_SEARCH (BFILE_DOC)

    Post INDEXTYPE IS "CTXSYS. "" (LOCAL) CONTEXT.
    PARTITION SETTINGS "BEFORE_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "THE_REST' ('LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)')
    )
    Error in the command line: 1 column: 13
    Error report:
    SQL error: ORA-29855: error when executing routine ODCIINDEXCREATE
    ORA-20000: Oracle text error:
    DRG-11000: invalid keyword LEXER
    ORA-06512: at "CTXSYS. DRUE", line 160
    ORA-06512: at "CTXSYS. TEXTINDEXMETHODS', line 365
    29855 00000 - "an error occurred in the execution of routine ODCIINDEXCREATE.
    * Cause: Cannot run the ODCIIndexCreate routine.
    * Action: Check if the routine was coded correctly.


    Kind regards
    Jack R.

    Hello

    It works if you put a clause of additional PARAMETERS to the end, so the creation looks like:
    CREATE INDEX TXT_INX_TEXT_SEARCH ON TEXT_SEARCH (BFILE_DOC)
    INDEXTYPE IS "CTXSYS. "" (LOCAL) CONTEXT.
    PARTITION SETTINGS "BEFORE_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2007" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2008" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q1_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q2_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q3_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "Q4_2009" ("LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)"),
    PARTITION SETTINGS "THE_REST' ('LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)')
    )
    PARAMETERS ('LEXER dd_lexer list of words EMPTY dd_stoplist SYNC (ON COMMIT)')<==>

    Hope this helps

    Herald tiomela

  • Oracle Text, multi_column_datastore describe index

    Referring to the Re: Oracle Text, ctxsys.context problem with column number

    TOAD or SQL Navigator, you can click on an object any (such as a table, index) and click on the "script" tab where the code is generated to create.

    Assuming that I am a person who sees the index for the first time where/how I can find multi_columns/settings with which the index has been created?

    For example:
    exec ctx_ddl.drop_preference( 'myds' );
    exec ctx_ddl.create_preference( 'myds', 'MULTI_COLUMN_DATASTORE' );
    exec ctx_ddl.set_attribute( 'myds', 'COLUMNS', 'item_barcode, item_title, item_subtitle' );
    CREATE INDEX i_index_test
       ON item (item_title)
       INDEXTYPE IS ctxsys.context
       PARAMETERS ( 'datastore myds' );
    And script says:
    CREATE INDEX PLSQL.I_INDEX_TEST ON PLSQL.ITEM
    (ITEM_TITLE)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('datastore myds')
    NOPARALLEL;
    Where can I find datastore "myds"?

    You can use ctx_report to get information about an index.

    I use it for SQL * more like this:

    set pagesize 0
    set heading off
    set trimspool on
    set long 500000
    
    spool index.sql
    
    select ctx_report.create_index_script('MyIndexName') from dual;
    
    spool off
    

    The only thing it will not give you is the source for all of the procedures used in the user_datastore. You can get to user_sources.

  • Problem indexing Oracle text

    Hi all

    We have recently migrated one of our database to oracle 10.2.0.2 to Oracle 10.2.0.4 and since that time, Oracle Text Engine an indexer is unable to work properly.

    Indexing data systematically result in the following error:
    DRG-50857: error oracle in dreii0fsh
    ORA-06550: line 1, column 106:
    PLS-00302: component 'S_MODE' must be declared.
    ORA-06550: line 1, column 10:
    PL/SQL: Statement ignored

    Note that the data that have been indexed with the previous Oracle version can still be found with ' Select... where... contains. ', although new datas not indexable at all.

    Can someone help me with this problem?

    Published by: methos on May 11, 2010 06:59

    See on metalink:

    "DRG-50857: oracle in dreii0fsh error ' when creating indexes of TEXT [750898.1 ID]"

    It seems that you updated the binaries, but Oracle not the text itself.

    Werner

  • Big problem with Oracle Text

    Hi all
    I use the Oracle text to perform a full text search. I have my column indexed like that

    CREATE INDEX cm_property_text ON cm_property (text_value) INDEXTYPES IS CTXSYS. FRAMEWORK

    After that, I inserted a line in the text_value field have contain is: "I and you or other ', then run the synchronous command my index finger:

    Begin
    CTXSYS. CTX_DLL. SYNC_INDEX ('cm_property_text');
    end;

    Then I run the query to select out have the text_value line contains text value is "I and you".

    SELECT * FROM cm_property WHERE CONTAINS (text_value,' I / you "")

    But I got nothing. And I tried to change like this looking for text entry

    SELECT * FROM cm_property WHERE CONTAINS (text_value, ' I/you and/or other "" ");

    And I had a line that is the line that I inserted before.

    I have really no why? Who can help me to explain about this?

    Thank you very much!

    If you want to be able to search for empty words by default, you can use an empty stopwords list or which does not contain the words you want to search. For a single character escape, preface with-not. To escape a whole word or phrase, such as a keyword or reserved word, surround it with {}. Please see the demo below.

    SCOTT@orcl_11gR2> CREATE TABLE cm_property
      2    (text_value  VARCHAR2 (60))
      3  /
    
    Table created.
    
    SCOTT@orcl_11gR2> CREATE INDEX cm_property_text
      2  ON cm_property (text_value)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  PARAMETERS ('STOPLIST CTXSYS.EMPTY_STOPLIST')
      5  /
    
    Index created.
    
    SCOTT@orcl_11gR2> INSERT INTO cm_property (text_value)
      2  VALUES ('I and you or other')
      3  /
    
    1 row created.
    
    SCOTT@orcl_11gR2> Begin
      2    CTXSYS.CTX_DDL.SYNC_INDEX ('cm_property_text');
      3  end;
      4  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> SELECT token_text FROM dr$cm_property_text$i
      2  /
    
    TOKEN_TEXT
    ----------------------------------------------------------------
    AND
    I
    OR
    OTHER
    YOU
    
    5 rows selected.
    
    SCOTT@orcl_11gR2> SELECT * FROM cm_property
      2  WHERE  CONTAINS (text_value, 'I {and} you') > 0
      3  /
    
    TEXT_VALUE
    ------------------------------------------------------------
    I and you or other
    
    1 row selected.
    
    SCOTT@orcl_11gR2> SELECT * FROM cm_property
      2  WHERE  CONTAINS (text_value, 'I {and} you {or} other') > 0
      3  /
    
    TEXT_VALUE
    ------------------------------------------------------------
    I and you or other
    
    1 row selected.
    
    SCOTT@orcl_11gR2>
    
  • Problem with the Oracle text markup

    Hello

    I have a problem with the Oracle text markup.

    I am looking for keywords in a text which is composed by a question and answer.
    Here is the structure of my text:
    & lt; div class = 'question' & gt;
    & lt; a & gt; the title of my question & lt; /a & gt;
    & lt; div class = "reply & gt;
    content of response
    & lt; / div & gt;
    & lt; / div & gt;

    It is possible to search those keywords in the question or answer only. For this, I use the stored procedure:

    {call CTX_DOC. MARKUP)
    index_name = >?
    textkey = >?
    text_Query = >?
    restab = >?
    query_id = >?
    startTag = >?
    (EndTag = >?)}

    _with these parameters: _

    index_name = < my index >
    textkey = < id for the search text >
    text_Query = < a query containing the keywords >
    restab = < a table SQL to store the marked text >
    query_id = < id >
    startTag = ' < span class =-"highlight\" >. "
    EndTag = "</span >.

    The markup should be done only in the place you want (question, answer, or both).
    The markup is good when I search a keyword throughout the text, in the question or answer only.
    * If I search two key words in the question or answer, the markup is bad *.

    _Example: __
    I am looking for the words "* Internet *" in question only.
    Here's the query passed to the stored procedure:
    + * text_query * = 'service & internet' INPATH (//div[@class = 'question'] / has) +.

    In the question, these words are well marked.
    In response, only the first word is marked.

    * Why the first keyword is also marked in the response while the query specifies a search in question only? *

    The same problem appears when I search for the same keywords in the response only.
    In this case, in the answer, these words are marked as well.
    In the issue, only the first word is marked.

    Thanks for your help

    Edited by: user11088931 Apr 21. 2009 06:17

    Try text_query = (service & internet) INPATH (//div/a)

    Single quotes in a query do nothing. I think that your request has been treated as

    Service & (internet INPATH (//div/a))

  • Oracle text index - unexpected behavior

    We have a SEARCH_TABLE (in Oracle 12.1.0.1.0) with a couple of files (actually about 10,000,000 records):

    ID ADDRESS

    1     | WIMPEL | 57. 9733BK | GRONINGEN |

    2     | JOHAN WILSSTRAAT | 7 ||| 1333PV | ALMERE |

    3     | ABRAHAM KUYPERHOF | 10. 8091XN | WEZEP |


    To support research on the table addresses, we apply an Oracle text index:

    create index ST_CTX1 on SEARCH_TABLE (address)

    indexType is ctxsys.context

    parameters ("DATASTORE CTXSYS. DEFAULT_DATASTORE');


    Our research focuses on whole words (without jokers). When searching through the data, it usually comes back with the correct results.


    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'GRÖNING') > 0

    ;

    Returns nothing, that is correct. Once the search argument 'GRÖNING' is replaced by 'GRONINGEN', ID 1 is correctly selected. According to this behavior, the following query returns no records:

    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'ABR & KUYPERHOF') > 0

    ;


    Surprisingly, however, the following query returns record ID 3:

    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, ' A & KUYPERHOF ') > 0

    ;

    (Even if data does not contain the complete word 'A'). This unexpected behavior only seems to occur when you use "A" as the initial character.

    The following query (with the search starting with the character 'J' argument) returns no data. Which is the expected behavior.

    SELECT the ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'J & WILSSTRAAT') > 0

    ;

    Anyone has an idea why the text index returns with A situations? Any ideas on how to solve this problem are appreciated.

    Mark

    According to the list of empty words by default in 11.2, the letters a, d, i, s, and t are listed, so would be removed from the wanted list of tokens.  Thus, 'A & WILSSTRAAT' becomes '& WILSTRAAT' and search text line with a single word.  'j' is not an empty word, so it is considered to be a token is valid and is not in your tables.  Look in CTXSYS. CTX_STOPWORDS to see what you have.

  • Need help with the search for special characters in oracle text

    Hi all

    Oracle 11g sql developer 4.0 help

    I am facing this challenge where Oracle text when it comes to searching for text that contains a special character.

    What I've done so far with the help of http://www.orafaq.com/forum/t/162229/

    "CREATE TABLE"SOS" COMPANY ".

    (SELECT "COMPANY_ID" NUMBER (10,0) NOT NULL,)

    VARCHAR2 (50 BYTE) "COMPANY."

    VARCHAR2 (50 BYTE) "ADDRESS1"

    VARCHAR2 (10 BYTE) "ADDRESS2"

    VARCHAR2 (40 BYTE) 'CITY ',.

    VARCHAR2 (20 BYTE) 'STATE ', HE SAID.

    NUMBER (5.0) "ZIP".

    ) CREATION OF IMMEDIATE SEGMENT

    PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255 NOCOMPRESS SLAUGHTER

    STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)

    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)

    TABLESPACE 'USERS ';

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);

    Insert into COMPANY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);

    BEGIN

    CTX_DDL. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");

    CTX_DDL. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols

    END;

    /

    CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)

    INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL

    PARAMETERS ("LEXER your_lexer");

    SELECT
    company_name
    FROM company
    WHERE CATSEARCH(company.COMPANY_NAME, 'LLC','') > 0
    ORDER BY company.COMPANY_ID;
    
    

    output

    company_name

    1 LSG SOLUTIONS LLC

    2 Properties@Oklahoma, LLC

    only 2 rows back but must return 3

    It helps if you post a copy and paste of effective enforcement of the full code, including the results.  You posted an index of context with the query with catsearch, which requires a ctxcat index.  You must be a context clue that you did not post and did not add your lexer to.  The following table shows it returns all the lines of 3 as planned using either a with catsearch ctxcat index or a context index with contains, as long that you include the lexer in your create index.  You must also be sure that the index is created, or synchronized after inserting or updating data.

    Scott@ORCL >-version:

    Scott@ORCL > SELECT banner version of v$.

    BANNER

    --------------------------------------------------------------------------------

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    5 selected lines.

    Scott@ORCL >-table and the test data:

    Scott@ORCL > CREATE TABLE 'SOCIETY '.

    2 ("COMPANY_ID" NUMBER (10,0) NULL NOT ACTIVATE,)

    3 'COMPANY_NAME' VARCHAR2 (50 BYTE),

    VARCHAR2 (50 BYTE) 4 "ADDRESS1"

    5 "ADDRESS2" VARCHAR2 (10 BYTE),

    VARCHAR2 (40 BYTE) 6 'CITY',

    7 VARCHAR2 (20 BYTE) 'STATE ', HE SAID.

    NUMBER (5.0) 8 'ZIP '.

    (9) THE CREATION OF IMMEDIATE SEGMENT

    PCTFREE 10 10 PCTUSED 40 INITRANS, MAXTRANS NOCOMPRESS SLAUGHTER 1 255

    11 STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)

    12 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)

    TABLESPACE 13 "USERS."

    Table created.

    Scott@ORCL > START

    2 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);

    3 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);

    4 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);

    5 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);

    6 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);

    7 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);

    8 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);

    9 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);

    10 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);

    11 END;

    12.

    PL/SQL procedure successfully completed.

    Scott@ORCL >-lexer:

    Scott@ORCL > START

    CTX_DDL 2. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");

    CTX_DDL 3. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols

    4 END;

    5.

    PL/SQL procedure successfully completed.

    Scott@ORCL >-ctxcat index and using catsearch queries:

    Scott@ORCL > CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)

    2 INDEXTYPE IS CTXSYS. CTXCAT PARALLEL

    3 PARAMETERS ("LEXER your_lexer");

    The index is created.

    Scott@ORCL > SELECT

    2 company_name

    3 the COMPANY

    4. WHERE the CATSEARCH (company.COMPANY_NAME, 'LLC', ") > 0

    5 ORDER BY company.COMPANY_ID;

    COMPANY_NAME

    --------------------------------------------------

    LSG SOLUTIONS LLC

    Properties@Oklahoma, LLC

    D.D.T L.L.C.

    3 selected lines.

    Scott@ORCL >-context and using the query index contains:

    Scott@ORCL > CREATE INDEX my_index3 ON COMPANY (COMPANY_NAME)

    2 INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL

    3 PARAMETERS ("LEXER your_lexer");

    The index is created.

    Scott@ORCL > SELECT

    2 company_name

    3 the COMPANY

    4 WHERE CONTAINS (company.COMPANY_NAME, 'LLC') > 0

    5 ORDER BY company.COMPANY_ID;

    COMPANY_NAME

    --------------------------------------------------

    LSG SOLUTIONS LLC

    Properties@Oklahoma, LLC

    D.D.T L.L.C.

    3 selected lines.

  • The abbreviated word Oracle text query / name

    I am new to Oracle text so please excuse the simple question (probably). I want to be able to create a search that excludes (including?) special characters or spaces between the short name. I don't know if it's possible, but I would like to be able to return all results below if an interviewee in 'ABC' under one form or another.

    It would be something that I would add a thesaurus? In my view, there is a list of EMPTY words, but I don't know if it is the opposite of a list of empty words.

    Thanks in advance!

    Kind regards
    Rich

    set def off;
    
    drop table docs;
    
    CREATE TABLE docs (id NUMBER PRIMARY KEY, text VARCHAR2(200));
    
    INSERT INTO docs VALUES(1, 'ABC are my favorite letters.');
    INSERT INTO docs VALUES(2, 'My favorite letters are A,B,C');
    INSERT INTO docs VALUES(3, 'The best letters are A.B.C.');
    INSERT INTO docs VALUES(4, 'Three of the word letters are A-B-C.');
    INSERT INTO docs VALUES(5, 'A B C are great letters.');
    INSERT INTO docs VALUES(6, 'AB and C are easy letters to remember');
    INSERT INTO docs VALUES(7, 'What if we used A, B, & C?');
    
    commit;
    
    begin
    ctx_ddl.drop_preference('english_lexar');
    end;
    /
    
    begin
    ctx_ddl.create_preference('english_lexar', 'BASIC_LEXER');
    ctx_ddl.set_attribute('english_lexar', 'printjoins', '_-');
    ctx_ddl.set_attribute('english_lexar', 'skipjoins', '-.');
    --ctx_ddl.set_attribute ( 'english_lexar', 'index_themes', 'YES');
    ctx_ddl.set_attribute ( 'english_lexar', 'index_text', 'YES'); 
    ctx_ddl.set_attribute ( 'english_lexar', 'index_stems', 'SPANISH'); 
    ctx_ddl.set_attribute ( 'english_lexar', 'mixed_case', 'YES');
    ctx_ddl.set_attribute ( 'english_lexar', 'base_letter', 'YES');
    end;
    /
    
    begin
     ctx_ddl.drop_preference('STEM_FUZZY_PREF');
    end;
    /
    
    begin 
      ctx_ddl.create_preference('STEM_FUZZY_PREF', 'BASIC_WORDLIST'); 
      ctx_ddl.set_attribute('STEM_FUZZY_PREF','FUZZY_MATCH','ENGLISH');
      ctx_ddl.set_attribute('STEM_FUZZY_PREF','FUZZY_SCORE','0');
      ctx_ddl.set_attribute('STEM_FUZZY_PREF','FUZZY_NUMRESULTS','5000');
      ctx_ddl.set_attribute('STEM_FUZZY_PREF','SUBSTRING_INDEX','TRUE');
      ctx_ddl.set_attribute('STEM_FUZZY_PREF','PREFIX_INDEX','TRUE');
      ctx_ddl.set_attribute('STEM_FUZZY_PREF','STEMMER','ENGLISH');
    end; 
    /
    
    begin
     ctx_ddl.drop_preference('wildcard_pref');
    end;
    /
    
    begin 
        Ctx_Ddl.create_Preference('wildcard_pref', 'BASIC_WORDLIST'); 
        ctx_ddl.set_attribute('wildcard_pref', 'wildcard_maxterms', 100) ;
    end; 
    /
    
    DROP index myindex;
    
    create index myindex on docs (text) 
      indextype is ctxsys.context 
      parameters ( 'LEXER english_lexar Wordlist wildcard_pref' ); 
    
    EXEC CTX_DDL.SYNC_INDEX('myindex', '2M');
    
    SELECT SCORE(1), id, text FROM docs WHERE CONTAINS(text, 'ABC', 1) > 0;
    Maybe it's that my SQL statement is not taking advantage of the text options - that is to say I forget something obvious :)

    The indexes are by default case insensitive, so let's ignore that.

    You can wal-mart and wal * mart match Wal-Mart by setting "-" and "*" as characters SKIPJOINS. However, you cannot not wal mart walmart match, otherwise than by the use of the NDATA.

    NDATA seems to work - any variation of wal mart Walmart wal * mart and wal-mart manage to match the Wal-Mart and wal-mart. See the example:

    SQL> create table testcase (text varchar2(2000));
    Table created.
    
    SQL> insert into testcase values ('walmart');
    1 row created.
    
    SQL> insert into testcase values ('wal mart');
    1 row created.
    
    SQL> exec ctx_ddl.drop_section_group('tcsg')
    PL/SQL procedure successfully completed.
    
    SQL> exec ctx_ddl.create_section_group('tcsg', 'xml_section_group')
    PL/SQL procedure successfully completed.
    
    SQL> exec ctx_ddl.add_ndata_section('tcsg', 'nd', 'nd')
    PL/SQL procedure successfully completed.
    
    SQL> create index testcase_index on testcase(text)
      2  indextype is ctxsys.context
      3  parameters ('section group tcsg')
      4  /
    Index created.
    
    SQL> select * from testcase where contains (text, 'ndata(nd, wal mart)') > 0;
    
    TEXT
    --------------------------------------------------------------------------------
    walmart
    wal mart
    
    SQL> select * from testcase where contains (text, 'ndata(nd, wal-mart)') > 0;
    
    TEXT
    --------------------------------------------------------------------------------
    walmart
    wal mart
    
    SQL> select * from testcase where contains (text, 'ndata(nd, wal*mart)') > 0;
    
    TEXT
    --------------------------------------------------------------------------------
    walmart
    wal mart
    
    SQL> select * from testcase where contains (text, 'ndata(nd, walmart)') > 0;
    
    TEXT
    --------------------------------------------------------------------------------
    walmart
    wal mart
    

    Published by: Roger Ford on 21 June 2012 10:22

  • Oracle Text missing words

    I have researched and received a different number of results. Can anyone explain why?

    Select * from table where upper (clobField) like ' % YEAR % ".

    Select * from table where contains (clobField, '% a %', 1) > 0

    When I perform the following search, I can see obvious CLOB which contain the required text, but is not returned to the oracle text search.

    Select * from table where upper (clobField) like ' % YEAR % "and does not contain (clobField, '% a %', 1) > 0

    I use a lexer base with all the default settings. Also, I can search on other words in the CLOB rejected that will come back them very well. Are the words that I found so far that I can't search on 'one' and 'who' and that's when I stopped in frustration. Thanks for any help!

    First of all, by the way, if you're looking for a whole word or a token, you don't need to use the wildcard '%' with Oracle Text.

    Second, text index Oracle using [url http://docs.oracle.com/cd/E11882_01/text.112/e24435/ind.htm#CIHCGIEA] lists of EMPTY words, for example http://docs.oracle.com/cd/E11882_01/text.112/e24436/astopsup.htm, which are intended to avoid indexing of low value words - the words you want normally to search. If you want to index these then you can disable the list of stopwords. Your indexes bigger of course.

  • Error: SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_Processor' AND TargetInstance.LoadPercentage

    Original title: windows Vista SP2 is not start properly. Very, very slow and do not have access to open anything.

    I was able to boot into safe mode and view the event viewer, and that's what he said:

    ./root/CIMV2

        SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_Processor' AND TargetInstance.LoadPercentage > 99
        0 x 80041003

    Hi Noomcy,

    1. don't you make changes before the show?

    This problem occurs if the WMI filter is accessible without the necessary permissions. To resolve this problem, we recommend that you run the script inthis article and check the result.

    See also Optimize Windows Vista for better performance

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Oracle Text corresponds to unexpected lines

    Hi people:

    I use Oracle Text in Oracle 12 c to search the text for a column that is indexed as follows:

    We will examine these lines.

    • Table X
    Text
    90-SE
    90-BA
    Hello

    I want to search the text "90-SE", then I did the following SQL query:

    SELECT TEXT, SCORE (1)

    X

    WHERE CONTAINS (TEXT, '90\ - SE', 1) > 0;

    The result is:

    Score (1) TEXT
    590-SE
    590-BA

    I can't understand why it is corresponding to the line containing 90-BA.

    Thank you

    ytor

    I am unable to reproduce your error, but I do not know what lexer attributes and others you may have.  I don't know if you are aware that unless you set the hyphen as a printjoin it is not indexed.  Please see the demo below, noting the differences in the token_text.

    Scott@ORCL > select version banner $ v

    2.

    BANNER

    --------------------------------------------------------------------------------

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production

    PL/SQL Release 12.1.0.2.0 - Production

    CORE Production 12.1.0.2.0

    AMT for 64-bit Windows: Version 12.1.0.2.0 - Production

    NLSRTL Version 12.1.0.2.0 - Production

    5 selected lines.

    Scott@ORCL > create table x

    2 (text varchar2 (60))

    3.

    Table created.

    Scott@ORCL > insert all

    2 in the x values (90-SE "")

    3 in x values (90-BA "")

    values ('Hello') x 4

    5 Select * of the double

    6.

    3 lines were created.

    Scott@ORCL > create index x_text_idx on x (text)

    2 indextype is ctxsys.context

    3.

    The index is created.

    Scott@ORCL > select Dr. token_text $ x_text_idx$ I

    2.

    TOKEN_TEXT

    ----------------------------------------------------------------

    90

    BA

    Hello

    IS

    4 selected lines.

    Scott@ORCL > SCORE (1) SELECT, TEXT

    2 X

    3. WHERE CONTAINS (TEXT, '90\ - SE', 1) > 0

    4.

    SCORE (1) TEXT

    ---------- ------------------------------------------------------------

    4 90-SE

    1 selected line.

    Scott@ORCL > start

    2 ctx_ddl.create_preference ('test_lex', 'basic_lexer');

    3 ctx_ddl.set_attribute ('test_lex', 'printjoins', '-');

    4 end;

    5.

    PL/SQL procedure successfully completed.

    Scott@ORCL > drop index x_text_idx

    2.

    The index is deleted.

    Scott@ORCL > create index x_text_idx on x (text)

    2 indextype is ctxsys.context

    3 parameters ("lexer test_lex")

    4.

    The index is created.

    Scott@ORCL > select Dr. token_text $ x_text_idx$ I

    2.

    TOKEN_TEXT

    ----------------------------------------------------------------

    90-BA

    90-SE

    Hello

    3 selected lines.

    Scott@ORCL > SCORE (1) SELECT, TEXT

    2 X

    3. WHERE CONTAINS (TEXT, '90\ - SE', 1) > 0

    4.

    SCORE (1) TEXT

    ---------- ------------------------------------------------------------

    4 90-SE

    1 selected line.

  • Driver ODBC - Oracle to PostgreSql dblink problem

    Hello Experts!

    I tried everything (including the Questions answered) and nothing seems to work.

    • Library path
    echo $LD_LIBRARY_PATH
    /usr/lib64:/usr/lib:/u01/oracle/product/11.2.0.4/lib
    

    • /U01/Oracle/product/11.2.0.4/HS/Admin/initPG_LINK.ora
    HS_FDS_CONNECT_INFO = PG_LINK
    HS_FDS_TRACE_LEVEL = DEBUG
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so.2.0.0                    
    set ODBCINI= /u00/oracle/.odbc.ini
    


    • / U00/Oracle /. ODBC.ini
    [ODBC Data Sources]
      PG_LINK = PostgreSQL
    [PG_LINK]
      Debug = 1
      CommLog = 1
      ReadOnly = no
      Driver = /usr/lib64/psqlodbc.so
      Servername = pgserver_ip
      FetchBufferSize = 99
      Username = pguser
      Password = pgpwd
      Port = 5432
      Database = pg_database
    [Default]
      Driver = /usr/lib64/libodbc.so.2.0.0
    


    • Tnsnames and listener are very good... I can reach the Oracle database without any problem.

    • The SQL query result
    SQL> select * from "table"@PG_LINK;
    select * from "table"@PG_LINK
                                 *
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [unixODBC][Driver Manager]Data source name not found, and no default driver
    specified {IM002}
    ORA-02063: preceding 2 lines from PG_LINK
    


    • Result of the trace
    ...
    ...
    hgopoer, line 231: got native error 0 and sqlstate IM002; message follows...
    [unixODBC][Driver Manager]Data source name not found, and no default driver specified {IM002}
    Exiting hgopoer, rc=0 at 2015/06/04-13:53:18
    hgocont, line 2831: calling SqlDriverConnect got sqlstate IM002
    Exiting hgocont, rc=28500 at 2015/06/04-13:53:18 with error ptr FILE:hgocont.c LINE:2851 FUNCTION:hgocont() ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2015/06/04-13:53:18 with error ptr FILE:hgolgon.c LINE:806 FUNCTION:hgolgon() ID:Calling hgocont
    Entered hgoexit at 2015/06/04-13:53:18
    Exiting hgoexit, rc=0
    

    Any ideas?

    I tried several libraries and none of the work so far. Different errors for each of them (including the "SQLAllocHandle" error)

    Thank you

    Alex.

    Ed, I could just figure it out and I could actually find this solution everywhere else (thanks to Bogdan, a friend who recommended to check)

    The initPG_LINK.ora library was wrong and I dind´t had a simple way to find the right way:

    • I set the variable on my environment (there, I created a global file for odbc)
    export ODBCSYSINI=/etc
    
    • I tried to connect to the remote database to PostgreSQL with isql and it worked as well, the library was present.
    • Then, I checked on the isql libraries called< and="" this="" is="" probably="" the="" best="" way="" to="" avoid="" wasting="">
    [root@oracle ~]# which isql
    /usr/local/bin/isql
    [root@oracle ~]# ldd /usr/local/bin/isql
            linux-vdso.so.1 =>  (0x00007fffdff44000)
            libodbc.so.2 => /usr/local/lib/libodbc.so.2 (0x00007fa7ed96b000)
            libdl.so.2 => /lib64/libdl.so.2 (0x0000003184000000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003184800000)
            libc.so.6 => /lib64/libc.so.6 (0x0000003184400000)
            /lib64/ld-linux-x86-64.so.2 (0x0000003183c00000)
    
    • I added this line (/ usr/local/lob/lobodbc.so.2) in the HS file.
    • Then, I added the ENVS with LD_LIBRARY_PATH setting to the location of the library
    SID_LIST_LISTENER=
      (SID_LIST=
        (SID_DESC=
          (SID_NAME=PG_LINK)
          (ORACLE_HOME=/u01/oracle/product/11.2.0.4)
          (ENVS="LD_LIBRARY_PATH=/usr/local/lib:/usr/lib64:/usr/lib:/u01/oracle/product/11.2.0.4/lib")
          (PROGRAM=dg4odbc)
        )
      )
    

    A finally it worked!

    Thank you

    Alex.

  • Oracle Text

    Hi gurus/masters.

    Please advise on Oracle Text? I search in google. But getting junk info. Is this feature is there in oracle?

    Concerning

    SA

    This is a change from what I previously provided, its replacement by the table and column names and values that you provided, so that if all goes well it will allow you to understand.  I have also provided the text results simple separate query of the procedure that uses it.  I have shown with a string of values and a unique value, you provided.

    Scott@orcl12c >-table:

    Scott@orcl12c > CREATE TABLE Entitlement_dnt

    2 (order_number VARCHAR2 (15),)

    3 customer_num VARCHAR2 (15).

    4 generic_product_name_ext VARCHAR2 (25).

    5 entitlement_ref_id VARCHAR2 (15).

    6 device_asset_id VARCHAR2 (15))

    7.

    Table created.

    Scott@orcl12c >-data:

    Scott@orcl12c > INSERT ALL

    2 INTO Entitlement_dnt VALUES ('1000345', '342345', ' laptop', '123', 'SDILK143')

    3 INTO Entitlement_dnt VALUES ('1000345', '543243', 'portable', '321', '341KLIDS')

    4 INTO Entitlement_dnt VALUES ('5430001', '342345', ' laptop', '123', 'SDILK143')

    5 SELECT * FROM DUAL

    6.

    3 lines were created.

    Scott@orcl12c > SELECT * FROM Entitlement_dnt

    2.

    ORDER_NUMBER CUSTOMER_NUM GENERIC_PRODUCT_NAME_EXT ENTITLEMENT_REF DEVICE_ASSET_ID

    --------------- --------------- ------------------------- --------------- ---------------

    1000345 342345 123 SDILK143 laptop

    1000345 543243 portable 321 341KLIDS

    5430001 342345 123 SDILK143 laptop

    3 selected lines.

    Scott@orcl12c >-multi_column_datastore:

    Scott@orcl12c > START

    CTX_DDL 2. CREATE_PREFERENCE ("your_datastore", "MULTI_COLUMN_DATASTORE");

    CTX_DDL 3. SET_ATTRIBUTE

    4 ("your_datastore", "COLUMNS",

    5 "order_number customer_num, generic_product_name_ext, entitlement_ref_id, device_asset_id");

    6 END;

    7.

    PL/SQL procedure successfully completed.

    Scott@orcl12c >-extra column for indexing (optional):

    Scott@orcl12c > ALTER TABLE Entitlement_dnt Add (search_cols VARCHAR2 (1))

    2.

    Modified table.

    Scott@orcl12c >-text index Oracle using multi_column_datastore:

    Scott@orcl12c > your_index CREATE INDEX

    2 on Entitlement_dnt (search_cols)

    3 INDEXTYPE IS CTXSYS. FRAMEWORK

    4 SETTINGS ("your_datastore of the DATA store")

    5.

    The index is created.

    Scott@orcl12c >-simple queries:

    Scott@orcl12c > i_OpenSearchText VARIABLE VARCHAR2 (4000)

    Scott@orcl12c > EXEC: i_OpenSearchText: = 1000345, 342345, laptop, 123, SDILK143'

    PL/SQL procedure successfully completed.

    Scott@orcl12c > SELECT *.

    2 from Entitlement_dnt

    3 WHERE CONTAINS (search_cols, REPLACE (: i_OpenSearchText, ', 'AND' ')) > 0

    6 m

    ORDER_NUMBER CUSTOMER_NUM GENERIC_PRODUCT_NAME_EXT ENTITLEMENT_REF DEVICE_ASSET_ID S

    --------------- --------------- ------------------------- --------------- --------------- -

    1000345 342345 123 SDILK143 laptop

    1 selected line.

    Scott@orcl12c > EXEC: i_OpenSearchText: = '1000345'

    PL/SQL procedure successfully completed.

    Scott@orcl12c > SELECT *.

    2 from Entitlement_dnt

    3 WHERE CONTAINS (search_cols, REPLACE (: i_OpenSearchText, ', 'AND' ')) > 0

    6 m

    ORDER_NUMBER CUSTOMER_NUM GENERIC_PRODUCT_NAME_EXT ENTITLEMENT_REF DEVICE_ASSET_ID S

    --------------- --------------- ------------------------- --------------- --------------- -

    1000345 342345 123 SDILK143 laptop

    1000345 543243 portable 321 341KLIDS

    2 selected lines.

    Scott@orcl12c >-procedure that accepts the string of values separated by commas

    Scott@orcl12c >- and returns ref cursor using the query:

    Scott@orcl12c > prc_open_search CREATE OR REPLACE PROCEDURE

    2 (i_OpenSearchText IN VARCHAR2,

    3 o_result SYS_REFCURSOR to)

    4 AS

    5 BEGIN

    6 - slider Ref that uses Oracle Text query using wil Oracle text index:

    7 OPEN FOR o_result

    8. SELECT *.

    9 OF Entitlement_dnt

    10 WHERE CONTAINS (search_cols, REPLACE (i_OpenSearchText, ', 'AND')) > 0;

    11 END prc_open_search;

    12.

    Created procedure.

    Scott@orcl12c > SHOW ERRORS

    No errors.

    Scott@orcl12c >-execution:

    Scott@orcl12c > g_ref VARIABLE REFCURSOR

    Scott@orcl12c > START

    2 prc_open_search

    3 (i_OpenSearchText-online 1000345, 342345, laptop, 123, SDILK143',)

    4 o_result =>: g_ref);

    5 END;

    6.

    PL/SQL procedure successfully completed.

    Scott@orcl12c > g_ref PRINT

    ORDER_NUMBER CUSTOMER_NUM GENERIC_PRODUCT_NAME_EXT ENTITLEMENT_REF DEVICE_ASSET_ID S

    --------------- --------------- ------------------------- --------------- --------------- -

    1000345 342345 123 SDILK143 laptop

    1 selected line.

    Scott@orcl12c > START

    2 prc_open_search

    3 (i_OpenSearchText-online '1000345',

    4 o_result =>: g_ref);

    5 END;

    6.

    PL/SQL procedure successfully completed.

    Scott@orcl12c > g_ref PRINT

    ORDER_NUMBER CUSTOMER_NUM GENERIC_PRODUCT_NAME_EXT ENTITLEMENT_REF DEVICE_ASSET_ID S

    --------------- --------------- ------------------------- --------------- --------------- -

    1000345 342345 123 SDILK143 laptop

    1000345 543243 portable 321 341KLIDS

    2 selected lines.

Maybe you are looking for

  • How to reorganize the vertical tabs

    I have the Vertical of the add-on tabs. Several versions of Firefox back, I could reorder the tabs by grabbing and by simply moving. Now it will not work. Is there a way to move tabs now. I have a tab I use a lot at or near the top and I added severa

  • Why Firefox displays different information than IE on a Web site

    I went to this link and it is not the same on Firefox because IE (Firefox Pre-forclosure, IE off-market watch). What I am doing wrong? http://www.Zillow.com/HomeDetails/2458-Hopewell-Rd-Wentzville-Mo-63385/2574631_zpid/

  • Qosmio F30-112 - an error when you run the recovery disk, the error code is 4

    It appears whenever I put the toshiba recovery disc after loading of the VIRTUAL disk image "File\i386\System32\ntoskrnl.exe could not be loaded.The error code is 4Setup cannot continue. Press any key to exit. » Does anyone have a solution to this pr

  • Unable to stop

    original title: when I do a reboot or a judgment of my computer. He keeps Windows says that it disconnects and then it's there. I'm not computer. just a little. Same as above.

  • Forgotten username Windows Mail & password.

    We use Vista with Windows Mail. Suddenly we are invited for a user name and password. We have no idea of what they are; nothing don't we have tried works. How we solve this problem?