ORACLE intermedia/text

I'm trying to sync index
When in SQL*Plus I can type:
exec ctx_ddl.sync_index(<index name>);
But when I try to do this from APEX application by creating new PL/SQL process (afred submit)-> I'm not allowed
I treats ctx_ddl as variable and says not declared...?
I've tried also
exec immediate 'ALTER INDEX <index> REBUILD [online] parameters (''sync'')'
First online was not enabled so I removed it, and it was processed, but index was no rebuild???
Any ideas how this can be done??
Thanks

I'm able to create a PL/SQL procedure, but when I try to run it from APEX it does not work.
If I'm correct it says anonymus PL/SQL block
On page definiton i create new process
-> PL/SQL
--> on submit aftrer computetions an validations/Type      PL/SQL anonymous block
--> Then your script
--> afrer clicking next error message is:
ORA-06550: line 5, column 1: PLS-00103: Encountered the symbol "/" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "/" was ignored.
Message was edited by:
user525249
Tried adding it as trigger --> again error

Similar Messages

  • DRG-11513 with Oracle Intermedia Text on Oracle 8.1.7

    When I try to index a file on a network drive (z:\, for example), y get the error code DRG-11513 on table CTX_USER_INDEX_ERRORS.
    However, if the file beging indexed is on the local hardrive (c:\), it works fine.
    What can be the problem?
    Thanks,

    Please ask questions about Oracle Text (formerly intermedia text) in teh Oracle Text forum. You will get your question looked at by the experts in Oracle Text there.

  • How do I use XSLT & XML is stored in InterMedia Text.....

    I use interMedia Text to store XML document. How do I use the XSLT Processor API to transform the data which is searched by XML SQL Utility??
    //***Source Code
    public Document xmlquery(String tabName,String xslfilename)
    Document xmlDocToReturn = null;
    String xmlString;
    try
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //initiate a JDBC connection
    // initialize the OracleXMLQuery
    OracleXMLQuery qry = new OracleXMLQuery(conn,"select XML_TEXT from bookstore where contains (xml_text,'John WITHIN authorsec')>0");
    // structure the generated XML document
    qry.setMaxRows(2);
    // set the maximum number of rows to be returned
    // get the XML document in string format
    xmlString = qry.getXMLString();
    // print out the XML document
    System.out.println(" OUTPUT IS:\n"+xmlString);
    // get the XML document in string format
    xmlDocToReturn = qry.getXMLDOM();
    conn.close();
    catch (SQLException e) {
    return xmlDocToReturn;
    xml = (XMLDocument)query.xmlquery(args[1],args[0]);
    // Instantiate the stylesheet
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, xslURL);
    XSLProcessor processor = new XSLProcessor();
    // Display any warnings that may occur
    processor.showWarnings(true);
    processor.setErrorStream(System.err);
    // Process XSL
    DocumentFragment result = processor.processXSL(xsl, xml);
    Thank you.
    null

    Your problem here is that when you store an XML document in a CLOB and search it using intermedia, when you do a query like:
    SELECT xml_text
    FROM bookstore
    WHERE CONTAINS(xml_text,'John WITHIN authorsec')>0
    The output from the XML SQL Utility using getXMLDOM() looks like this:<ROWSET>
    <ROW>
    <XML_TEXT><![CDATA[
    <bookstuff>
    <authorsec>
    <name>Steve</name>
    </authorsec>
    etc.
    </bookstuff>
    ]]>
    </XML_TEXT>
    </ROW>
    </ROWSET>with the document as a single text value (it's actually just a text node, not a CDATA node) but the above illustrates conceptually that the whole XML document is one big text node.
    To transform this you'll need to parse that XML text into an XML document in memory by passing constructing a StringReader() on the text value and parsing that reader.
    null

  • InterMedia Text with USER_DATASTORE and ORA-03113

    Hi,
    I have problems using Oracle's InterMedia Text-index with a
    USER_DATASTORE. I'm using Oracle 8.1.7 on Windows NT 4.0.
    What I try to do is to create a context-index on multiple columns
    of multiple tables. I created a table containing the original
    tablenames and primary keys plus a char(1)-column to index, a
    user_datastore, a procedure in a user-schema, a
    wrapping-procedure in ctxsys' schema and finally the index. All
    works fine so far but I get an ORA-03113 "end-of-file on
    communication channel" error when querying the table with
    contains. The procedure itself works.
    Here's what I tried in detail:
    I created a table "alldocs" containing the tablename and
    primary-key-value of each line of each table plus a dummy-column
    for the index:
    create table alldocs(
    table varchar2(30) not null,
    id number not null,
    data char(1),
    primary key(tabelle, id)
    I filled this table:
    insert into alldocs (select 'MYDOCS', id, 'a' from mydocs);
    insert into alldocs (select 'OTHERDOCS', id, 'b' from otherdocs);
    The user's procedure - only dummy for testing - is:
    create procedure test.GetAllDocsData(row IN ROWID, data IN OUT
    NOCOPY CLOB) IS
         tabname varchar2(30);
         myid     number;
         tmpclob clob;
    begin
         dbms_lob.createtemporary(tmpclob, TRUE);
         dbms_lob.writeappend(tmpclob, 34, 'Ein Text mit ca. 20
    Zeichen Ldnge.');
         data := tmpclob;
    end;
    In ctxsys' schema I defined the following procedure and the
    datastore:
    create or replace procedure sysGetAllDocsData(rid in rowid, tlob
    in out clob) is
    begin
    test.GetAllDocsData(rid, tlob);
    end sysGetAllDocsData;
    grant execute on sysGetAllDocsData to test;
    call ctx_ddl.create_preference('MyUserDS', 'user_datastore');
    call ctx_ddl.set_attribute('MyUserDS', 'procedure',
    'sysGetAllDocsData');
    call ctx_ddl.set_attribute('MyUserDS', 'output_type', 'CLOB');
    Finally I defined the index:
    create index test.alldocs_ctx on test.alldocs(data)
         indextype is ctxsys.context
         parameters ('DATASTORE CTXSYS.MyUserDS FILTER
    CTXSYS.INSO_FILTER LEXER BASIC_LEXER');
    This all works without errors. But when querying like this:
    select * from test.alldocs where contains('data', 'Text')>0
    the answer is
    ORA-03113: end-of-file on communication channel
    I hope someone can help.
    Greetings
    Ralf

    Hi Ralf,
    please define first your own preferences like this:
    exec CTX_DDL.drop_preference('MY_LEXER');
    exec CTX_DDL.create_preference('MY_LEXER','BASIC_LEXER');
    exec CTX_DDL.set_attribute('MY_LEXER','ALTERNATE_SPELLING',
    'GERMAN');
    exec CTX_DDL.set_attribute('MY_LEXER','BASE_LETTER','YES');
    exec CTX_DDL.set_attribute('MY_LEXER','MIXED_CASE', 'NO');
    exec CTX_DDL.set_attribute('MY_LEXER','INDEX_THEMES','NO');
    exec CTX_DDL.set_attribute('MY_LEXER','INDEX_TEXT', 'YES');
    exec CTX_DDL.set_attribute('MY_LEXER','COMPOSITE', 'GERMAN');
    exec ctx_ddl.Drop_Preference ('MY_FILTER');
    exec ctx_ddl.Create_Preference ('MY_FILTER','NULL_FILTER');
    exec ctx_ddl.drop_section_group ('MY_SECTION');
    exec ctx_ddl.create_section_group
    ('MY_SECTION','NULL_SECTION_GROUP');
    and then create your index with this preferences. You only need
    an INSO filter if you want to index pdf,word,...
    create index test.alldocs_ctx on test.alldocs(data)
         indextype is ctxsys.context
         parameters ('DATASTORE CTXSYS.MyUserDS FILTER
    CTXSYS.INSO_FILTER LEXER BASIC_LEXER');create index test.alldocs_ctx on test.alldocs(data)
         indextype is ctxsys.context
         parameters ('
    DATASTORE CTXSYS.MyUserDS
    lexer MY_LEXER
    filter MY_FILTER
    section group MY_SECTION');
    Then see in the token table what tokens are in the index:
    select token_text from dr$alldocs_ctx$i;
    If you got also an ORA-3113 see in alert.log if there is a trace
    referenced with this error and have a look in this file to find a
    better error message.
    Good luck.
    Thomas

  • Announcing Oracle interMedia Clipboard release 2.0

    The Oracle interMedia team is pleased to announce the availability of
    the Oracle interMedia Clipboard release 2.0.
    Kits for release 2.0 can be found in the standard OTN location
    for Oracle interMedia Utility and Plugin Downloads. Look for the
    "Updated" image near the "Download the Kit..." text under the
    "interMedia Clipboard Utility..." heading.
    The latest README currently available is attached below.
    Please give the new Clipboard a try and let us know what you think!
    ====================================================================================
    interMedia Clipboard V2.0 README
    ====================================================================================
    Welcome to Oracle interMedia Clipboard Version 2.0. This provides
    a servlet and an Apache extension to mod_dav to manage interMedia
    content living in Oracle databases.
    With this kit one can build a customized and integrated content solution
    that supports the following:
    o A Clipboard servlet interface for uploading and downloading content from
    a user's schema in an Oracle database using Apache JServ.
    o Native HTTP access to interMedia content via Apache.
    o Native Apache support to lock, edit, read, and write interMedia
    content via WebDAV protocol.
    o Annotation engine for doing transparent metadata extraction
    of audio, video, or image content downloaded via the Servlet
    or WebDAV.
    o Mapping of content from arbitrary tables containing either LOBS,
    or interMedia objects for access by the Clipboard or by
    WebDAV clients such as Microsoft's WebFolders.
    With an installation you will be able to drag and drop a website
    of static content into an Oracle schema you own. You will also be able
    to serve the website out of Oracle and edit it using either the
    Clipboard servlet or standard WebDAV clients (e.g. WebFolders).
    You can also use the Clipboard to manage arbitrary URL hierarchies
    of content, not just websites. You will also be able to direct HTTP
    traffic to interMedia objects living in tables and schemas that have
    been already populated by other applications.
    See INSTALL in the top level directory of this kit for full
    installation instructions and software requirements.
    This kit has the following software requirements:
    o Apache (1.3.11 or 1.3.12 or 1.3.14)
    o mod_dav (1.0.2-1.3.6)
    o Apache JServ 1.1.2
    o Oracle 8.1.6 Client
    o Oracle Client access to an 8.1.6 or higher database
    Documentation and release notes are posted at our download site:
    http://technet.oracle.com/software/products/intermedia/software_index.htm
    Please use them as the primary reference of how to use this software
    and to do troubleshooting.
    Support is available via the interMedia Support email address:
    [email protected]
    Please specify "interMedia Clipboard V2.0" in the subject line.

    Minol,
    Yes, the oracle services are running, but I still get this error message.
    Thanks.....

  • Strange: Conditional Error in Intermedia Text Index Creation

    Hi All,
    I am facing a strange error while creating the Intermedia Text index on 8.1.6 release for NT 4.0.
    I have one database instance installed on the server. When i connect to Oracle through SQL plus as: connect username/password;
    The index creation works fine!
    But, if i connect using: username/password@servicename;
    The index creation does not work!
    The following error occurs.
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000:intermedia Text error:
    ORA-50704:Net8 listener is not running or cannot start external procedures
    ORA-28575:unable to open RPC connection to external procedure agent
    ORA-12154:TNS:could not resolve service name
    ORA-06512:at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 54
    ORA-06512:at line 1
    Could anyone please help as to why it works without when connected without the service name but not otherwise?
    Thanking you in advance!
    Thanks and Regards
    Anurag Agarwal

    Hi All,
    I am facing a strange error while creating the Intermedia Text index on 8.1.6 release for NT 4.0.
    I have one database instance installed on the server. When i connect to Oracle through SQL plus as: connect username/password;
    The index creation works fine!
    But, if i connect using: username/password@servicename;
    The index creation does not work!
    The following error occurs.
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000:intermedia Text error:
    ORA-50704:Net8 listener is not running or cannot start external procedures
    ORA-28575:unable to open RPC connection to external procedure agent
    ORA-12154:TNS:could not resolve service name
    ORA-06512:at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 54
    ORA-06512:at line 1
    Could anyone please help as to why it works without when connected without the service name but not otherwise?
    Thanking you in advance!
    Thanks and Regards
    Anurag Agarwal

  • Using intermedia text

    Hello,
    I'm working on a website at the moment which is cgi based and has an Oracle 8i backend.
    On this website users can upload word documents etc into an knowledge base. These documents are physically held on the file system
    What I want to do is to upload the documents to an Oracle table and then use intermedia text to search on these documents. I would like to avail of intermedia Themes & Gists and the "ranking" system it uses. In other words I would like the search to return something similar to the search results you find in Oracle Portal.
    Any information on how to incorporate oracle intermedia into an existing cgi based website would be much appreciated.
    thank you.
    aidan

    Hi,
    For documentation see here on technet: products -> Oracle Text.
    You don't have to load the documents into the database when they are already in the filesystem.
    You can create a table with an entry for each filename.
    Here is a sample script for FILE_DATASTORE with INSO FILTER (for filtering word and other documents).
    =========================================================
    -- Sample INSO Filter and FileDatastore
    drop table datastores;
    create table datastores(id number primary key, docs varchar2(2000));
    insert into datastores values(1,'whitepaper.pdf');
    commit;
    -- Create Preferences
    exec CTX_DDL.drop_preference('MY_LEXER');
    exec CTX_DDL.create_preference('MY_LEXER','BASIC_LEXER');
    exec CTX_DDL.set_attribute('MY_LEXER','BASE_LETTER','YES');
    exec CTX_DDL.set_attribute('MY_LEXER','MIXED_CASE', 'NO');
    exec CTX_DDL.set_attribute('MY_LEXER','INDEX_THEMES','NO');
    exec CTX_DDL.set_attribute('MY_LEXER','INDEX_TEXT', 'YES');
    exec ctx_ddl.drop_section_group ('MY_SECTION');
    exec ctx_ddl.create_section_group ('MY_SECTION','NULL_SECTION_GROUP');
    exec ctx_ddl.drop_preference('COMMON_DIR');
    exec ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
    exec ctx_ddl.set_attribute('COMMON_DIR','PATH','/tmp/pdf');
    exec Ctx_Ddl.Drop_Preference ('inso_filter_pref');
    exec Ctx_Ddl.Create_Preference ('INSO_FILTER_PREF', 'INSO_FILTER');
    -- Create Text Index
    -- drop index datastores_text;
    exec ctx_output.start_log('index.log');
    create index datastores_text on datastores (docs)
    indextype is ctxsys.context
    parameters ('datastore COMMON_DIR
    filter INSO_FILTER_PREF
    lexer MY_LEXER
    section group MY_SECTION
    memory 50M');
    exec ctx_output.end_log;
    select count(*) from dr$datastores_text$i;
    select token_text from dr$datastores_text$i;

  • InterMedia Text Search results

    We have interMedia Text enabled on our 3.0.9.8.2 install and, for Search Results, I need to understand how the percentage score is calculated and, if results have the same score, how the order is determined. Is it possible to reorder the results because it appears to be random? Can anyone point me to the relevant documentation?

    So Stephen, if I understand correctly, you have URL items, where the URL references the content in the IFS repository. This means that these items are being indexed by the WWSBR_URL_CTX_INDX. It'd be interesting to see if the results are returned as you would expect them to be using this index alone. This will tell you if there is a problem with Intermedia Text or if the problem lies with the way that Portal is using Intermedia Text and combining the scores from the multiple indexes.
    Try running a SQL query like
    select i.title, score(10) scr from wwv_things i, wwsbr_url$ u
    where i.id=u.object_id
    and contains (u.absolute_url,'${oracle}',10) > 0
    order by scr desc
    This will match your search term against only text which was indexed by the URL index and returns the display name of the corresponding item. Here I've searched for the term 'oracle'; change this to whatever you were using in your testcase. Note also that the $ implies the stem operator which is used by default in Portal.
    If this query doesn't return you the scores that you were expecting then the problem is to do with the way that Intermedia Text is indexing your PDF documents. If it does return what you'd expect then we need to look more closely at what Portal is doing with the scores.

  • Creating intermedia text index error

    Hello. I tried creating an index using the below command
    create index mydocs_text_index on
    mydocs(thefile) indextype is ctxsys.context;
    However, I received some error message as follows:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: file not found
    DRG-50704: file not found
    ORA-28575: unable to open RPC connection to external procedure agent
    ORA-06512: at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 54
    ORA-06512: at line 1
    What do you think is wrong?
    Thank you

    Is the listener up and running?
    Installation
    1.What are the steps to install interMedia Text manually, AFTER installing the code via the
    installer?
    A.
    cd $ORACLE_HOME/ctx/admin
    B. as SYS:
    @dr0csys.sql ctxsys system temp
    where ctxsys is the ctxsys password
    system is the default tablespace for ctxsys
    temp is the temporary tablespace for ctxsys
    C. as CTXSYS:
    @dr0inst.sql
    /oracle/db/dev118/ctx/lib/libctxx8.so
    (on Solaris)
    where /oracle/db/dev118 is $ORACLE_HOME
    D. as CTXSYS:
    @defaults/drdefus.sql
    Note: this is assuming you want U.S. to be your language default, otherwise run the
    corresponding drdef for your language.
    2.What are the steps to install interMedia Text manually, with a Net8 Configuration?
    A. Configure an IPC listener address.
    For example, change:
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=
    (PROTOCOL=tcp) (HOST=ap118sun.us.oracle.com) (PORT=1521)
    to:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = ap118sun) (PORT
    =1521))
    This shows the full LISTENER definition in your listener.ora. Note: EXTPROC0 ends in a
    zero.
    B. Add a system identifier (SID) name of PLSExtProc and a program name of EXTPROC in the server's LISTENER.ORA file.
    For example, in the SID_LIST_LISTENER definition, insert:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC = ...
    (SID_DESC =
    (SID_NAME=PLSExtProc)(ORACLE_HOME=/oracle/db/dev118)
    (PROGRAM=extproc)
    C. Add a net service name description entry for EXTPROC0 in the server's tnsnames.ora
    file, using SID rather than SERVICE_NAME in the CONNECT_DATA section.
    For example, add this to the end of tnsnames.ora:
    extproc_connection_data =
    (DESCRIPTION=
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0))
    (CONNECT_DATA=
    (SID=PLSExtProc)
    (PRESENTATION = RO)
    This entry should be added exactly as you see it here (do NOT substitute your SID
    anywhere, do NOT change the case of any text). Note: EXTPROC0 ends in a zero, RO
    ends in an Oh
    1.How do I check my interMedia Text installation and setup?
    A.
    lsnrct1status
    should give you the following:
    LSNRCTL for Solaris: Version
    8.1.5.0.0 - Production on 31-MAR-99 18:57:49
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Connecting to
    (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Solaris: Version 8.1.5.0.0 - Production
    Start Date 30-MAR-99 15:53:06
    Uptime 1 days 3 hr. 4 min. 42 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Parameter File
    /private7/oracle/oracle_home/network/admin/listener.ora
    Listener Log File
    /private7/oracle/oracle_home/network/log/listener.log
    Services Summary...
    PLSExtProc has 1 service handler(s)
    oco815 has 3 service handler(s)
    The command completed successfully
    The important information to understand here is the service handler for PLSExtProc.
    B. Create a user/table/index/query thus:
    As SYS or SYSTEM:
    create user ctxtest identified by ctxtest ;
    grant connect, resource, ctxapp to ctxtest ;
    Do any other grants, quotas, tablespace etc. for the new user. As CTXTEST:
    create table quick
    quick_id number primary key,
    text varchar(80)
    insert into quick ( quick_id, text )
    values ( 1, 'The cat sat on the mat' );
    insert into quick ( quick_id, text )
    values ( 2, 'The quick brown fox jumped over the lazy dog' );
    commit;
    create index quick_text on quick ( text )
    indextype is ctxsys.context;
    At this point, if your Net8 setup is NOT correct you will get:
    create index quick_text on quick ( text )
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: ConText error:
    DRG-50704: Net8 listener is not running or cannot start external procedures
    ORA-28575: unable to open RPC connection to external procedure agent
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
    ORA-06512: at line 1
    If everything is OK, you will get:
    Index created.
    Now try some queries:
    SQL> select quick_id from quick where contains(text, 'cat')>0;
    QUICK_ID
    1
    SQL> select quick_id from quick where contains(text, 'fox')>0;
    QUICK_ID
    2
    Congratulations !! You now have a successful interMedia Text V8.1 installation.
    null

  • Oracle intermedia on the Web

    Hi
    We have various Oracle intermedia things in bits n peices
    But there are some pzzles
    Like
    1. If all HTML files are stored in Oracle8i table and Intermedia text is created on the column in the table.
    How can we extract the document from the database and publish it on the WEB?
    We tried Web Agent but if there are multiple requests it fails!!! Infact if 5 machines make a request it fails
    Can some let me know how we go about
    Also there are some missing files in Intermedia Web Site crawling example.
    Has anyone suceessfully tried that example?
    Hope someone can provide with answers ASAP
    thanks
    null

    Hi
    We have various Oracle intermedia things in bits n peices
    But there are some pzzles
    Like
    1. If all HTML files are stored in Oracle8i table and Intermedia text is created on the column in the table.
    How can we extract the document from the database and publish it on the WEB?
    We tried Web Agent but if there are multiple requests it fails!!! Infact if 5 machines make a request it fails
    Can some let me know how we go about
    Also there are some missing files in Intermedia Web Site crawling example.
    Has anyone suceessfully tried that example?
    Hope someone can provide with answers ASAP
    thanks
    null

  • INTERMEDIA TEXT INDEX를 사용하는 QUERY의 TUNING

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-12
    INTERMEDIA TEXT INDEX를 사용하는 QUERY의 TUNING
    ===============================================
    Purpose
    Intermedia text를 사용하는 query의 속도를 향상시킬 수 있는 방안을
    알아보자.
    Explanation
    1. Make analyze all the table in the query
    text index를 이용하는 Query 안의 모든 Table을 analyze 해 주십시요.
    예를 들어 다음의 command를 이용할 수 있습니다.
    ANALYZE TABLE <table_name> COMPUTE STATISTICS;
    or
    ANALYZE TABLE <table_name> ESTIMATE STATISTICS 1000 ROWS;
    or
    ANALYZE TABLE <table_name> ESTIMATE STATISTICS 50 PERCENT;
    2. Using FIRST_ROWS hint
    더 좋은 response time 을 위해서 first_rows hint 를 사용해 보십시요.
    database에 기본적으로 설정된 optimizer mode는 choose mode입니다.
    이것은 전체 처리시간(throughput)을 가장 빠르게 하기 위한(all_rows mode)
    plan을 따르기 때문에 user의 입장에서는 first_rows 보다는 늦다고 느낄 수
    있습니다.
    Query에 다음과 같이 hint를 주고 performance를 확인해 보십시요.
    select /*+ FIRST_ROWS */ pk, col from ctx_tab
    where contains(txt_col, 'test', 1) > 0;
    단, first_rows hint를 이용하는 경우 자동으로 score 순서대로
    ordering 되지 않습니다. 왜냐하면 단어에 부합하는 문서를 찾는대로
    즉시 결과로 나타내 주기 때문입니다.
    3. Make sure text index is not fragmented
    insert, delete 가 많이 되는 table의 경우 index fragment를 제거해 주어야
    합니다. Index fragmentation 은 다음과 같이 확인할 수 있습니다.
    select count(*) from dr$<indexname>$i; -> A
    select count(*) from (select distinct(token_text) from dr$<indexname>$i); -> B
    위의 결과가 A/B 의 값이 3:1 보다 크면 optimize_index 를 실행해 주시는
    것이 좋습니다. 다음과 같은 command로 index optimization을 할 수 있습니다.
    alter index <index_name> rebuild online
    parameters('optimize full unlimited');
    index rebuild중에 online option을 주면 rebuild하는 중에도 계속 index를
    사용할 수 있게 됩니다. 하지만, 가능하면 사용자가 없을 때 rebuild하는 것이
    좋습니다.
    4. Check execution plan and sql trace.
    기본적인 여러 가지 작업들에도 속도가 별로 향상되지 않는다면, 직접
    sql trace를 떠서 Execution plan등을 확인해 보는 것이 필요합니다.
    예를 들어 SQL*PLUS에서 다음과 같이 sql trace를 뜹니다.
    alter session set timed_statistics=true;
    alter session set sql_trace=true;
    select ..... -> execute the query
    실행 후,
    exit
    user_dump_dest 에 지정된 directory에 trace 가 떨어지면 다음과 같은
    command로 tkprof 를 떠서 내용을 확인합니다.
    $ tkprof <tracefilename> <outputfilename> explain=username/password
    Referenc Documents
    Bulletin#10134 : SQL trace와 tkprof 사용 방법

  • INTERMEDIA TEXT - INSO FILTER의 사용방법과 한글 설정

    제품 : ORACLE SERVER
    작성날짜 : 2003-02-05
    INTERMEDIA TEXT - INSO FILTER의 사용방법과 한글 설정
    ====================================================
    Purpose
    Intermedia text에서 INSO filter를 사용할 때 한글을 설정하여 이용하는
    방법을 알아보자.
    Explanation
    INSO Filter 에는 자체적인 속성이 없기 때문에, 한글 환경을 설정하기
    위해서는 ‘ctxhx’에 적절한 입력 값을 제공하는 새로운 script 를 만
    들어야 한다. 그 방법은 다음 두 과정을 거쳐야 한다.
    첫번째, 새로운 shell script 작성 : ctxhx 에 원하는 매개 변수 설정
    두번째, INSO_FILTER 대신 USER_FILTER 를 사용하여 작성한 script 를
    command로 설정
    다음은 INSO filter 를 이용하여 한글 문서를 검색하는 과정을 보여준다 .
    데모 환경은 다음과 같다 .
    * KOREAN_LEXER 사용
    * Acrobab PDF, Word97, PPT97, Excel, Html 문서 검색
    * 한글 검색을 위해 , INSO Filter 를 변형한 USER_FILTER 사용
    1. 한글 검색 용 INSO Filter 생성
    다음은 INSO Filter‘ctxhx’를 이용하여 한글 문서를 필터링하도록
    'autofilt'의 내용이다. 이 파일은 실행 권한이 주어져야 한다.
    $ cd $ORACLE_HOME/ctx/bin
    $ vi autofilt
    #!/bin/sh
    $ORACLE_HOME/ctx/bin/ctxhx $1 $2 hangeul koreanhangul T
    $ chmod 777 autofilt
    * NT의 경우
    메모장 등으로 oracle_home\ctx\bin directory에 autofilt.bat 라는
    이름의 화일을 다음과 같이 생성한다.
    oracle_home 이 E:\ora815 인 경우
    set oracle_home=E:\ORA815
    E:\ora815\ctx\bin\ctxhx.exe %1 %2 hangeul koreanhangul T
    2. 테이블 생성
    SQL> create table mydocs (
    2 docid number primary key,
    3 title varchar2(256),
    4 fname varchar2(30),
    5 document blob );
    3. Pro*c 나 sql*loader등을 이용하여 long raw 또는 blob type에
    file을 입력한다.
    [예제] sql*loader를 이용한 방법
    sql*loader를 이용하여 , ‘mydocs’ 테이블에 있는 BLOB 에 5개의 문서를
    입력하기 위한 과정을 위해 쓰이는 file들은 다음과 같다.
    * controlfile : mydocs.ctl
    INFILE 'mydocs.dat'
    FIELDS TERMINATED BY ";"
    optionally enclosed by '"'
    (docid, title, fname,
    ext_fname filler char(40),
    document lobfile(ext_fname)
    terminated by eof )
    * datafile : mydocs.dat
    0; ConText Cartridge Datasheet ; context.pdf ; context.pdf
    1; Image/Vir Cartridge 소개 ; img_vir.ppt ; img_vir.ppt
    2; Oracle Video Server 소개 ; ovs 소개 .doc ; ovs 소개 .doc
    관리 시스템 ; kms.html ; kms.html
    4; Oracle8i New Feature ; oracle8i.xls ; oracle8i.xls
    * sql*loader의 실행
    $ sqlldr userid=ctxdemo/ctxdemo control=mydocs.ctl data=mydocs.dat direct=no
    4. Indexing Object 의 생성
    * 한글 검색을 위해 KOREAN_LEXER preference 를 사용
    * autofilt 를 필터링에 쓰이는 명령어로 하는 USER_FILTER preference 사용
    SQL> begin
    2 ctx_ddl.create_preference('MYDOCS_LEXER', 'KOREAN_LEXER');
    3 ctx_ddl.create_preference('MYDOCS_FILTER', 'USER_FILTER');
    4 ctx_ddl.set_attribute('MYDOCS_FILTER', 'command', 'autofilt');
    5 end;
    6 /
    PL/SQL procedure successfully completed.
    * NT인 경우 아래와 같이 attribute를 지정해야 한다.
    ctx_ddl.set_attribute('MYDOCS_FILTER', 'command', 'autofilt.bat');
    이제 위에서 정의된 indexing object 들을 이용하여 ,
    mydocs 의 document field 에 Text index를 생성하는 과정을 보여준다 .
    SQL> create index mydocs_document_index
    2 on mydocs(document) indextype is ctxsys.context
    3 parameters('lexer mydocs_lexer
    4 filter mydocs_filter');
    Index created.
    5. 데이타 조회
    * '비디오'와 '서버'를 포함한 문서의 검색 결과를 보여 준다 .
    SQL> select ctxsys.score(0) scr, docid, title, fname
    2 from mydocs
    3 where ctxsys.contains(mydocs.document, '비디오 and 서버 ',0) > 0 ;
    SCR DOCID TITLE FNAME
    38 2 Oracle Video Server ovs소개.doc
    1 row selected.
    * BLOB 에 들어 있는 Word97 문서를 필터링한 결과를 출력하는 과정을 보여준다.
    SQL> create table
    2 query_id number,
    3 document clob);
    Table created.
    SQL> exec CTX_DOC.FILTER('mydocs_document_index', 2, 'filtertab', 0);
    PL/SQL procedure successfully completed.
    SQL> select document from filtertab;
    DOCUMENT
    Oracle Video Server 소개
    .....

  • Intermedia text problem setup

    Hi,
    I've got a problem with creating a certain index. I have created a table an filled it with data:
    create table ctxsys.quick
    quick_id number
    constraint quick_pk primary key,
    text varchar(80)
    I tried to create and index but I am getting the following "group of errors":
    create index quick_text on ctxsys.quick ( text )
    indextype is ctxsys.context;
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    DRG-11422 linguistic initialization failed
    DRG-00100: internal error, arguments : [52100],[drxs.c],[553],[gxtopen],[1]
    DRG-11208: ORACLE_HOME is not set.
    ORA-06512: at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 78
    ORA-06512: at line 1
    I have also defined the enviromental variables:
    LD_LIBRARY_PATH = C:\oracle\ora81\ctx\lib
    and add to PATH = C:\oracle\ora81\ctx\lib
    I am using win2k with oracle personal 8.1.7.
    Any ideas what might have been setup wrongly?!
    Thanks,
    Kostas.

    Well,
    By using:
    PARAMETERS ('NOPOPULATE')
    was the only way so far, that I managed to create an indexer.
    An indexer creation with different parameters would create the following errors:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    DRG-11422 linguistic initialization failed
    DRG-00100: internal error, arguments : [52100],[drxs.c],[553],[gxtopen],[1]
    DRG-11208: ORACLE_HOME is not set.
    ORA-06512: at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 78
    ORA-06512: at line 1
    Looking ways to overcome this problem...
    Regards,
    Kostas.

  • How to user oracle intermedia and plpdf to display image

    Hi all,
    AS i know plpdf is very retriction to display images and i think it only valid for jpep and may be gif file extension. Can i display any kind of different file of format if i've both oracle intermedia and plpdf in my database. If yes, can you give me an exampe how to work that this.
    Thank you very much,
    Kevin

    Best way,
    1. I belive you have a JPEG Image.
    2. Accept the text from user. Create an Image from it.
    3. Add the two Images.
    4. All this operations can be done using JAI (Java Advanced Imaging API). It is simple and straight forward.

  • Post Installation of interMedia Text

    What scripts do you need to run if interMedia Text was installed after Portal was installed? The client now wants to use interMedia type searches.
    Thanks.

    Intermedia text is now Oracle text. Oracle text has it's own forum. The text people do not monitor this forum. Please ask your question in the Oracle Text Forum. You will get a quicker, more expert answer there.
    Thanks,
    Larry

Maybe you are looking for

  • Unable to connect to VM's in new cloud service via express route

    We have changed our express route setup, initially we had an express route via London, but we have added a second one via Amsterdam and removed the one via London. All existing and new vm's in the different vnet's have connection to our local datacen

  • Program should execute both for F8 and F9

    Hi All, I have a requirement that my program should execute both for F8 and F9. I have developed it as a report as the selection-screen contains 'Select-Options' and they want the Multiple Selection Button. I know that if I develop it as a Module poo

  • CreateQueueConnection produce null

    Hi all, I've been having trouble with my codes. The codes is like below. The purpose of this code is to established a connection with a JMS server, so I can retrieve messages in the queue. The problem is, createQueueConnection always produce null. I

  • Type Perspective Movement

    Hi everyone, I was wondering if anyone could please help me out with this issue I'm having. I have this type with a single point perspective on it and I wanted to add motion to the perspective. In other words, I want the perspective point to move aro

  • Merging slowed audio and video.

    So I am currently editing a music video that was shot at 60fps. Each clip needs to be slowed 50 percent. We goofed on set and our slating was all out of wack, so now we need to go through and sync each slowed down clip to normal speed audio. So my qu