Oracle Text : type of the results.

In v2, in the "custom search" portlet, I chose to display the results of "elements" type.
But it returns both elements and portlets. Portlets are not compulsory viewable if one clik on in in the result page.
How can I only return "true" elements (documents) and not portlets ?

These are two slightly different issues
In v2, in the "custom search" portlet, I chose to display the results of "elements" type.
But it returns both elements and portlets. Portlets are not compulsory viewable if one clik on in in the result page.
How can I only return "true" elements (documents) and not portlets ? I am not too clear on what you are refering to when you say you chose to display the results of 'Elements' types.
If you wish a search to only return documents (in this sence i mean files) you can add the 'Base Item Type' attribute as search criteria and chose the 'File' value from the LOV. If you do not wish the end users of the search form to know you are restricting the search to just files you can hide this attribute and not display it on the submission form.
I have the same issue. the release 2 custom search portal has an option
to limit the result type to page. But, if I have a simple text item with some content containing the words
"jey is testing" and If I search for "jey" it doesn't return any pages. But, if I change the result type to
item it returns the item. I want to mimick a std web search where users search on content and get links to
pages with content.
pls help,
jey If you set a portlet to return 'Items' then the search will return the actual items which match the search terms as the search results.
If you set a portlet to return 'Pages' then the search will return any pages whose title, description etc which match the search terms not those pages whose content contains the search terms.
However you can customize the attributes displayed with search results to get the list similar to what you require. Set a results portlet to return items (as its the items which will match the search criteria) and select 'Page' and 'Blank Line' attributes as the 'Search Results Attributes'. When you perform a search the results will be a list of pages on which the search result items reside.
Note: The listed pages may not be distinct. If more that one item resides on the same page which match the search criteria, you will get multiple lines displaying the same page. This is because the search actually returns 2 hits and as you are just displaying the page name it will appear as if they are duplicate results. Therefore you may want to include the attribute 'Display Name' in order to clarify that these are different items on the same page.

Similar Messages

  • Oracle Text search returning no results

    Hi,
    I have created an oracle text (ctxsys.context) on a BLOB column which has various documents of .doc,.docx,.pdf, types.
    CREATE INDEX IND_RESUME_DETAILS ON RESUME_DETAILS (RESUME)
       INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('datastore ctxsys.default_datastore filter ctxsys.inso_filter sync (on commit)')
    However, the query using 'Contains' does not return any search results.
    select employee_number,Score(1) from resume_details where CONTAINS(RESUME,'JAVA',1)>0 order by score(1) desc
    On checking the  'ctx_user_index_errors' view , it has an entry for every row in the table. However, it does not show any error in the err_text column
    ERR_INDEX_NAME
    ERR_TIMESTAMP
    ERR_TEXTKEY
    ERR_TEXT
    IND_RESUME_DETAILS
    5/8/2014 18:27
    AAAl0GAAGAAEFoWAAC
    IND_RESUME_DETAILS
    5/8/2014 18:27
    AAAl0GAAGAAEFoWAAD
    IND_RESUME_DETAILS
    5/8/2014 18:27
    AAAl0GAAGAAEFoWAAE
    Even the index status shows 'VALID'.
    I tried dropping and recreating indexes, dropping and recreating the table.. However, it's not working at all.
    What's surprising is,it used to work earlier without any problems.
    I also have another context index on  another column on the same  table which is a varchar2 column. The search on that column works absolutely fine.
    The database version is
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Request someone in helping  me root cause this issue. Any help is appreciated.
    Thanks

    Hi Barbara,
    Still the same issue.
    Its putting an entry into 'ctx_user_index_errors' but with nothing in the err_text column..Hence, difficult to track what or where the problem lies.
    And moreover, the same index was working earlier. Just stopped working all of a sudden.

  • Text types along the horizontal border of the text box instead of being written inside of it. What's wrong?

    I created a text box by dragging the horizontal text tool.
    But when I start typing, the text aligns along the upper border of the box instead of being written inside of it.
    It looks like this.
    How can I fix this, so that the text is inserted inside the defined box?
    Much thanks in advance!

    I just figured it out! Can't believe I was this clueless.
    I just had to change the font height back to 100%. Haha

  • Bex report displays text Error in the result

    Hello,
    In my bex query result the text ERROR is displayed beside the value of a keyfigure.
    I'm not able to figure why this appears and how to find the error.
    Thanks.

    This is due to the absense of unit/currency against the key figure in the info provider.
    Maitain the currency/unit and then run the report. This should rectify the report error.
    Naveen.A

  • Oracle Text does not return results when String starts with two consecutive vowels

    Hi,
    I hope someone can shed some light on a strange problem we're facing.
    Oracle Database 11g R2 (11.2.0.4) EE 64-bit running on Windows 2008 Server R2.
    When I create a context index on a varchar2 column (surname) it works fine when the surname starts with either a consonant or one vowel. But when the surname starts with two vowels it fails to return the record?
    Please see worked example below:
    create table t1 (surname varchar2(50));
    insert into t1 values ('OURS');
    insert into t1 values ('JOURS');
    insert into t1 values ('ONES');
    commit;
    -- sync every 10 mins
    CREATE INDEX PERSON_SURNAME_IDX ON t1
    (SURNAME)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('MEMORY 50M sync (every "SYSDATE+10/1440")')
    NOPARALLEL;
    -- no rows
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'OURS') > 0;
    -- 1 row
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'JOURS') > 0;
    -- 1 row
    SELECT surname
    FROM t1
    WHERE CONTAINS(surname, 'ONES') > 0;
    Any help or guidance greatly appreciated.
    Thanks,

    Wtf?
    https://docs.oracle.com/database/121/CCREF/astopsup.htm#i634475
    only     then     where
    all     do     into     onto     there     whether
    almost     does     is     or     therefore     which
    also     either     it     our     these     while
    although     for     its     ours
    select
    from v$version
    Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production    0
    PL/SQL Release 12.1.0.2.0 - Production
    CORE 12.1.0.2.0 Production
    TNS for Linux: Version 12.1.0.2.0 - Production
    NLSRTL Version 12.1.0.2.0 - Production
    SELECT spw_stoplist, spw_word FROM ctx_stopwords
    WHERE spw_stoplist ='DEFAULT_STOPLIST'
    order by nlssort(spw_word, 'NLS_SORT=LATIN')
    ---- snip ----
    DEFAULT_STOPLIST    not
    DEFAULT_STOPLIST    of
    DEFAULT_STOPLIST    on
    DEFAULT_STOPLIST    one
    DEFAULT_STOPLIST    only
    DEFAULT_STOPLIST    or
    DEFAULT_STOPLIST    other
    DEFAULT_STOPLIST    out
    DEFAULT_STOPLIST    over
    DEFAULT_STOPLIST    s
    ---- snip ----

  • Highlight in Oracle Text

    Hi!!
    I followed the steps described in the reference guide of Oracle Text to highlights the result of a search in a text, but I can't show the text whit these words highlighting.
    I copy the code I ran:
    create table hightab(query_id number,
    offset number,
    length number);
    Table created
    begin
    ctx_doc.highlight('sentencias', '4', 'redactor', 'hightab', 0, TRUE);
    end;
    PL/SQL procedure successfully completed
    select * from hightab
    QUERY_ID OFFSET LENGTH
    0 89 8
    Thanks a lot!
    Regards,
    Fabiana.

    It works for me, so in must be due to some differences in settings.
    scott@ORA92> CREATE TABLE sentencias_ws
      2    (id  NUMBER PRIMARY KEY,
      3       doc XMLTYPE)
      4  /
    Table created.
    scott@ORA92> INSERT INTO sentencias_ws VALUES
      2  (189, XMLTYPE ('<EST>
      3  <JUR>
      4  <SENT>
      5  <NUMERO>2/04</NUMERO>
      6  </SENT>
      7  </JUR>
      8  <NUMERO>1/2005</NUMERO>
      9  </EST>
    10  '))
    11  /
    1 row created.
    scott@ORA92> begin
      2    ctx_ddl.create_section_group('XMLGroup', 'XML_SECTION_GROUP');
      3    ctx_ddl.ADD_ZONE_SECTION( 'XMLGroup', 'EST', 'EST' );
      4    ctx_ddl.ADD_ZONE_SECTION('XMLGroup', 'JUR', 'JUR' );
      5    ctx_ddl.ADD_ZONE_SECTION( 'XMLGroup', 'SENT', 'SENT' );
      6    ctx_ddl.ADD_ZONE_SECTION( 'XMLGroup', 'NUMERO', 'NUMERO' );
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    scott@ORA92> begin
      2    ctx_ddl.create_preference('MYLEX','BASIC_LEXER');
      3    ctx_ddl.set_attribute('MYLEX','SKIPJOINS','.');
      4    ctx_ddl.set_attribute('MYLEX','NUMJOIN',',');
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    scott@ORA92> CREATE INDEX busquedaXML ON sentencias_ws(doc)
      2  INDEXTYPE IS ctxsys.context
      3  PARAMETERS
      4    ('datastore ctxsys.default_datastore
      5        filter ctxsys.null_filter
      6        section group XMLGroup
      7        lexer mylex')
      8  /
    Index created.
    scott@ORA92> Select * from sentencias_ws
      2  where contains(doc, '(((2/04 within NUMERO) WITHIN SENT) WITHIN JUR) WITHIN EST')>0
      3  /
            ID
    DOC
           189
    <EST>
      <JUR>
        <SENT>
          <NUMERO>2/04</NUMERO>
        </SENT>
      </JUR>
      <NUMERO>1/2005</NUMERO>
    </EST>
    scott@ORA92>

  • Weighting the results of a text search

    I have an application that is using Oracle Text to search the database for similar customer names. What I am trying to do is give the developers a result-set with the most relavent matches listed first, but I cannot figure out how to score/weight the results.
    Example:
    Here is my query:
    select * from operator z
    where contains
    (concat,'hilton hotel within {the_operator_name}',1 ) > 0
    It returns the following records in order:
    OPERATOR_ID OPERATOR_NAME
    1000084 Hilton Hotel
    1001397 HILTON HOTEL AIRPORT
    1001472 Hilton Hotel & Conference Ctr.
    1004356 Hilton Hotel/Avendra Eugene
    1005660 Hilton Hotel
    I would like both "Hilton Hotel" results (the first and last in the list) to return before any of the other results, as these are a perfect match and are most likely to be picked by the user.
    Thanks in advance.

    I can't tell from what you provided, what type of datastore or section group you have. So, here is another example that uses a different type of datastore and different type of section group, but it really doesn't matter what you are using as the ordering by utl_match.edit_distance is the same.
    SCOTT@orcl_11g> CREATE TABLE operator
      2    (operator_id   NUMBER,
      3       operator_name VARCHAR2 (60),
      4       concat           VARCHAR2 (1))
      5  /
    Table created.
    SCOTT@orcl_11g> SET DEFINE OFF SCAN OFF
    SCOTT@orcl_11g> INSERT ALL
      2  INTO operator VALUES (1000084, 'Hilton Hotel', NULL)
      3  INTO operator VALUES (1001397, 'HILTON HOTEL AIRPORT', NULL)
      4  INTO operator VALUES (1001472, 'Hilton Hotel & Conference Ctr.', NULL)
      5  INTO operator VALUES (1004356, 'Hilton Hotel/Avendra Eugene', NULL)
      6  INTO operator VALUES (1005660, 'Hilton Hotel', NULL)
      7  INTO operator VALUES (9999999, 'some other operator name', NULL)
      8  SELECT * FROM DUAL
      9  /
    6 rows created.
    SCOTT@orcl_11g> CREATE OR REPLACE PROCEDURE concat_proc
      2    (p_rowid IN           ROWID,
      3       p_clob     IN OUT NOCOPY CLOB)
      4  AS
      5  BEGIN
      6    FOR r IN (SELECT * FROM operator WHERE ROWID = p_rowid) LOOP
      7        DBMS_LOB.WRITEAPPEND (p_clob, 17, '<the_operator_id>');
      8        DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r.operator_id), r.operator_id);
      9        DBMS_LOB.WRITEAPPEND (p_clob, 18, '</the_operator_id>');
    10        DBMS_LOB.WRITEAPPEND (p_clob, 19, '<the_operator_name>');
    11        DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r.operator_name), r.operator_name);
    12        DBMS_LOB.WRITEAPPEND (p_clob, 20, '</the_operator_name>');
    13    END LOOP;
    14  END concat_proc;
    15  /
    Procedure created.
    SCOTT@orcl_11g> SHOW ERRORS
    No errors.
    SCOTT@orcl_11g> EXEC CTX_DDL.CREATE_PREFERENCE ('your_datastore', 'USER_DATASTORE')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> EXEC CTX_DDL.SET_ATTRIBUTE ('your_datastore', 'PROCEDURE', 'concat_proc')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE INDEX your_index ON operator (concat)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE     your_datastore
      5        SECTION GROUP CTXSYS.AUTO_SECTION_GROUP')
      6  /
    Index created.
    SCOTT@orcl_11g> COLUMN concat NOPRINT
    SCOTT@orcl_11g> COLUMN operator_name FORMAT A30
    SCOTT@orcl_11g> -- original query:
    SCOTT@orcl_11g> select * from operator z
      2  where contains
      3  (concat,'hilton hotel within {the_operator_name}',1 ) > 0
      4  /
    OPERATOR_ID OPERATOR_NAME
        1000084 Hilton Hotel
        1001397 HILTON HOTEL AIRPORT
        1001472 Hilton Hotel & Conference Ctr.
        1004356 Hilton Hotel/Avendra Eugene
        1005660 Hilton Hotel
    SCOTT@orcl_11g> -- ordering by utl_match.edit_distance:
    SCOTT@orcl_11g> select z.*,  UTL_MATCH.EDIT_DISTANCE ('hilton hotel', LOWER (operator_name)) edit_dist
      2  from   operator z
      3  where contains (concat,'hilton hotel within {the_operator_name}',1 ) > 0
      4  ORDER BY edit_dist
      5  /
    OPERATOR_ID OPERATOR_NAME                   EDIT_DIST
        1000084 Hilton Hotel                            0
        1005660 Hilton Hotel                            0
        1001397 HILTON HOTEL AIRPORT                    8
        1004356 Hilton Hotel/Avendra Eugene            15
        1001472 Hilton Hotel & Conference Ctr.         18
    SCOTT@orcl_11g> -- ordering by utl_match.edit_distance_similarity:
    SCOTT@orcl_11g> select z.*,  UTL_MATCH.EDIT_DISTANCE_SIMILARITY ('hilton hotel', LOWER (operator_name)) edit_dist_sim
      2  from   operator z
      3  where contains (concat,'hilton hotel within {the_operator_name}',1 ) > 0
      4  ORDER BY edit_dist_sim DESC
      5  /
    OPERATOR_ID OPERATOR_NAME                  EDIT_DIST_SIM
        1000084 Hilton Hotel                             100
        1005660 Hilton Hotel                             100
        1001397 HILTON HOTEL AIRPORT                      60
        1004356 Hilton Hotel/Avendra Eugene               45
        1001472 Hilton Hotel & Conference Ctr.            40
    SCOTT@orcl_11g> -- ordering without selecting the column:
    SCOTT@orcl_11g> select * from operator z
      2  where contains (concat,'hilton hotel within {the_operator_name}',1 ) > 0
      3  ORDER BY UTL_MATCH.EDIT_DISTANCE ('hilton hotel', LOWER (operator_name))
      4  /
    OPERATOR_ID OPERATOR_NAME
        1000084 Hilton Hotel
        1005660 Hilton Hotel
        1001397 HILTON HOTEL AIRPORT
        1004356 Hilton Hotel/Avendra Eugene
        1001472 Hilton Hotel & Conference Ctr.
    SCOTT@orcl_11g> select * from operator z
      2  where contains (concat,'hilton hotel within {the_operator_name}',1 ) > 0
      3  ORDER BY UTL_MATCH.EDIT_DISTANCE_SIMILARITY ('hilton hotel', LOWER (operator_name)) DESC
      4  /
    OPERATOR_ID OPERATOR_NAME
        1000084 Hilton Hotel
        1005660 Hilton Hotel
        1001397 HILTON HOTEL AIRPORT
        1004356 Hilton Hotel/Avendra Eugene
        1001472 Hilton Hotel & Conference Ctr.
    SCOTT@orcl_11g>

  • Oracle Text and Custom item type

    I have a custom item type defined that has custom attributes. With Oracle Text disabled, I can use a custom search to find these items either by their standard attributes (name,description, etc.) or their custom attributes. However, as soon as I enable Oracle Text (and allow the indexing process to complete), I can no longer locate these items in a search.
    I assume that I need to do something to tell Oracle Text to index these types of items, but could not find anything in documentation. Any assistance would be appreciated.
    Also, assuming we get around the above issue, if I have Oracle Text enabled, does this mean I will not be able to find these items after they are created until the next scheduled index update? Is there away around this besides killing Oracle Text?
    Rgds/Mark M.
    Portal 9.0.2.6

    The indexes need to be synchronised for the items to be searched and returned. Hence until the next scheduled index update, the item will not be returned. To explicitly udpate the indexes, run the procedure in the portal database connected as the schema owner.
    SQL> exec wwv_context.sync();

  • Creating of the word-frequency histogram from the Oracle Text

    I need make from the Oracle Text index of the "word-frequency histogram", this is list of the tokens in this index, where each token contains the list of documents that contain that token and frequency this token in the every document. Don´t anybody know how to get this data from Oracle Text index so that result will save to the table or to the text file?

    You can use ctx_report.token_info to decipher the token_info column, but I don't think the report format that it produces is what you want. You can use a query template and specify algorithm=count to obtain the number of times a token appears in the indexed column. You can do that for every token by using the dr$...$i table, as shown below. Formatting is preserved by prefacing the code with pre enclosed in square brackets on the line above all of the code and /pre in square brackets on the line below all of the code.
    SCOTT@10gXE> create table otntest
      2    (doc_id       number primary key,
      3       document  varchar2(100))
      4  /
    Table created.
    SCOTT@10gXE> insert all
      2  into otntest values (1, 'This is a test for generating a histogram')
      3  into otntest values (2, 'Histogram shows the list of documents that contain that token and frequency')
      4  into otntest values (3, 'frequency histogram frequency histogram frequency')
      5  select * from dual
      6  /
    3 rows created.
    SCOTT@10gXE> create index otntest_ctx_idx
      2  on otntest(document)
      3  indextype is ctxsys.context
      4  /
    Index created.
    SCOTT@10gXE> column token_text format a30
    SCOTT@10gXE> select t.doc_id, i.token_text, score (1) as token_count
      2  from   otntest t,
      3           (select distinct token_text
      4            from   dr$otntest_ctx_idx$i) i
      5            where  contains
      6                  (document,
      7                   '<query>
      8                   <textquery grammar="CONTEXT">'
      9                   || i.token_text ||
    10                   '</textquery>
    11                   <score datatype="INTEGER" algorithm="COUNT"/>
    12                   </query>',
    13                   1) > 0
    14  order  by doc_id, token_text
    15  /
        DOC_ID TOKEN_TEXT                     TOKEN_COUNT
             1 GENERATING                               1
             1 HISTOGRAM                                1
             1 TEST                                     1
             2 CONTAIN                                  1
             2 DOCUMENTS                                1
             2 FREQUENCY                                1
             2 HISTOGRAM                                1
             2 LIST                                     1
             2 SHOWS                                    1
             2 TOKEN                                    1
             3 FREQUENCY                                3
             3 HISTOGRAM                                2
    12 rows selected.
    SCOTT@10gXE>

  • Executing Procedure in SQL SERVER and Storing the results in Oracle 10g

    Hello,
    I am trying execute SQL SERVER procedure from Oracle 10g and store the results in a oracle table. When I tried executing the procedure i am getting errors.
    I am using Oracle Heteroeneous Services.
    Steps I followed.
    1. Created ODBC DSN on Oracle Server connecting to SQL SERVER database.
    2. Created Listner entry and TNSNAMES entries.
    3. Created Database link and able to select the data from the SQL SERVER tables.
    Here is the code i tried to execute the procedure.
    BEGIN
    "META"."extract"@abc;
    END;
    "META"."extract"@abc;
    ERROR at line 2:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'META.extract@ABC' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Please help me.
    Thank You,
    Seshadri Thope

    Hi thopevs,
    Can you please tell me the right syntax of calling procedures(on sql server) from oracle?
    I am getting following error:
    SQL> execute "GetdateSys"@oratosql;
    begin "GetdateSys"@oratosql; end;
    ORA-06550: line 2, column 7:
    PLS-00201: identifier 'GetdateSys@ORATOSQL' must be declared
    ORA-06550: line 2, column 7:
    PL/SQL: Statement ignored
    SQL>
    Your help will be highly appreciated.
    Thanks & Regards,
    M.U.N.A

  • Index document with Oracle Text from an ECM without saving the content

    Hi,
    I have documents in a ECM (Alfresco, UCM and more) and I would like Oracle Text to index the document without saving the content. I want to save space and not have redundant information. I would use Oracle Text to search for document's identification (ID) and fetch the document from the ECM using the ID.
    Is it possible ?
    Do I have to use Secure Enterprise Search ?
    Thanks
    Simon

    I want to save space and not have redundant information.The database space or the disk space (in OS)?
    If it the database space, it is not possible to index/serach without storing the file conetents.
    using , FILE_DATASTORE you can save the file in the disk (OS) and index them.
    When you remove the file, you need to re-index it.
    I donot see any other ways.
    Do I have to use Secure Enterprise Search ?SES also uses Oracle Text as its base. It also uses FILE_DATASTORE. But the re-indexing part is automated using crawlers.

  • Oracle Text - Problem with filtering binary documents (.doc, .pdf, etc...)

    Hi, I have a problem with filtering binary documents (.doc, .pdf, etc...). I use SQL*PLUS for remote access to Oracle 10.2 on Linux and I create table:
    CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    I insert to this table:
    INSERT into test values(1, 'PATH/text1.doc‘);
    INSERT into test values(2,'PATH/text2.doc‘);
    and then:
    CREATE INDEX test_index ON test(text) indextype is ctxsys.context
    parameters (’datastore ctxsys.file_datastore
    filter ctxsys.auto_filter’);
    Message "Index created" is displayed, but objects: DR$test_index$I, DR$test_index$K, DR$test_index$N, DR$test_index$R and DR$test_index$P are empty => index wasn´t created probably.
    I don´t know, where is bug, either bug is somewhere in this code or on the server (wrong installation oracle or constraint privileges). Do you know in what is bug?

    The following is an excerpt from the 10g online documentation. Note the items that I have put in bold.
    "FILE_DATASTORE
    The FILE_DATASTORE type is used for text stored in files accessed through the local file system.
    Note:
    FILE_DATASTORE may not work with certain types of remote mounted file systems.
    FILE_DATASTORE has the following attribute(s):
    Table 2-4 FILE_DATASTORE Attributes
    Attribute Attribute Value
    path path1:path2:pathn
    path
    Specify the full directory path name of the files stored externally in a file system. When you specify the full directory path as such, you need only include file names in your text column.
    You can specify multiple paths for path, with each path separated by a colon (:) on UNIX and semicolon(;) on Windows. File names are stored in the text column in the text table.
    If you do not specify a path for external files with this attribute, Oracle Text requires that the path be included in the file names stored in the text column.
    PATH Attribute Limitations
    The PATH attribute has the following limitations:
    If you specify a PATH attribute, you can only use a simple filename in the indexed column. You cannot combine the PATH attribute with a path as part of the filename. If the files exist in multiple folders or directories, you must leave the PATH attribute unset, and include the full file name, with PATH, in the indexed column.
    On Windows systems, the files must be located on a local drive. They cannot be on a remote drive, whether the remote drive is mapped to a local drive letter."
    With accessible paths and files, you get something like:
    SCOTT@orcl_11g> CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    Table created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> INSERT into test values(1,'c:\oracle11g\banana.pdf');
    1 row created.
    SCOTT@orcl_11g> INSERT into test values(2,'c:\oracle11g\cranberry.pdf');
    1 row created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> CREATE INDEX test_index ON test(text) indextype is ctxsys.context
      2  parameters ('datastore ctxsys.file_datastore
      3  filter ctxsys.auto_filter');
    Index created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> select count(*) from dr$test_index$i
      2  /
      COUNT(*)
           608
    SCOTT@orcl_11g> In the following, I used a non-existent path and non-existent file name, which produces the same results as when you use a remote path that does not exist locally.
    SCOTT@orcl_11g> CREATE TABLE test (id NUMBER PRIMARY KEY, text VARCHAR2(100));
    Table created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> INSERT into test values(3,'c:\nosuchpath\nosuchfile.pdf');
    1 row created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> CREATE INDEX test_index ON test(text) indextype is ctxsys.context
      2  parameters ('datastore ctxsys.file_datastore
      3  filter ctxsys.auto_filter');
    Index created.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> select count(*) from dr$test_index$i
      2  /
      COUNT(*)
             0
    SCOTT@orcl_11g>

  • How to return Values from Oracle Object Type to Java Class Object

    Hello,
    i have created an Oracle Object Types in the Database. Then i created Java classes with "jpub" of these types. Here is an example of the type.
    CREATE OR REPLACE TYPE person_type AS OBJECT
    ID NUMBER,
    vorname VARCHAR2(30),
    nachname VARCHAR2(30),
    geburtstag DATE,
    CONSTRUCTOR FUNCTION person_type RETURN SELF AS RESULT,
    CONSTRUCTOR FUNCTION person_type(p_id NUMBER) RETURN SELF AS RESULT,
    CONSTRUCTOR FUNCTION person_type(p_vorname VARCHAR2,
    p_nachname VARCHAR2,
    p_geburtstag DATE) RETURN SELF AS RESULT,
    MEMBER FUNCTION object_exists(p_id NUMBER) RETURN BOOLEAN,
    MEMBER PROCEDURE load_object(p_id NUMBER),
    MEMBER PROCEDURE save_object,
    MEMBER PROCEDURE insert_object,
    MEMBER PROCEDURE update_object,
    MEMBER PROCEDURE delete_object
    MEMBER PROCEDURE load_object(p_id NUMBER) IS
    BEGIN
    SELECT p.id, p.vorname, p.nachname, p.geburtstag
    INTO SELF.ID, SELF.vorname, self.nachname, SELF.geburtstag
    FROM person p
    WHERE p.id = p_id;
    END;
    My problem is, that if i use the member function "load_object" from my java app it doesnt return the selected values to the java class and i dont know why. I use the java class like this:
    PersonObjectType p = new PersonObjectType();
    p.load_object(4);
    There is a reocrd in the database with id = 4 and the function will execute successful. But if i try to use "p.getVorname()" i always get "NULL". Can someone tell me how to do that?
    Thanks a lot.
    Edited by: NTbc on 13.07.2010 15:36
    Edited by: NTbc on 13.07.2010 15:36

    CallableStatement =
    "DECLARE
    a person_type;
    BEGIN
    a.load_object(4);
    ? := a;
    END;"
    And register as an out parameter.
    Edited by: michael76 on 14.07.2010 05:01

  • Oracle Text in installing Oracle 10g without licence!!

    Hi. Everyone.
    I've read some thread , but I am still confused about "oracle text".
    Now, I am testing oracle10g database.
    I downloaded 10g software from www.oracle.com, and installed it sucessfully
    on windows xp.
    When I was trying to import a dump file from oracle9i to
    the unlicenced oracle10g database, I got the error , IMP-00017, which
    is related to "Oracle Text".
    I checked "dba_users" dictionary, but ctxsys user is locked and expired.
    I read some thread on this site, and according to the advice, I tried to
    enable oracle text, using "DBCA".
    However, every database option on DBCA is disabled, I was not able to
    check oracle text.
    Lastly, how can I enable "Oracle Text" with unlicenced oracle 10g ?
    Is this possible without licence?
    I am very confused about this.
    I am looking forward to hear your experience and advices.
    Have a nice day.
    Best Regards.
    Ho.

    Well, instead of being confused, you could go to http://www.oracle.com/pls/db102/portal.portal_db?selected=1 and look at
    1) the licensing document, which would tell you whether you need a separate license, and
    2) under the 'Books' tab, look at the Text Application Developer's Guide or the Text Reference manuals for details.
    You could also look for the Oracle Text forum (from the http://forums.oracle.com page, under Database - More, or Text and ask the people who concentrate on that set of features.
    In general, Oracle Text is a set of extensions, the definitions for which are stored under user ctxsys. You would use these extensions by creating your own objects that are based on the extensions.
    For example, suppose your tables contain varchar2 columns. Create indexes that are based on ctxsys's 'context index type' and your application can then use the 'CONTAINS' keyword search capability (which is effectively a ctxsys-owned extension to the select)
    However, you would never log on to ctxsys and do anythibng with that as you risk changing the template code that Oracle has supplied.
    Message was edited by:
    Hans Forbrich
    PS: Yes, Oracle Text is included as part of the base database. Most of it is even included in the free Oracle XE database.

  • Creating a DataTable from the results of SQL statement

    I am relatively new to VB 2005, ADO and Oracle db. I have perfected an SQL statement that joins 6 tables in an Oracle 10i database and the resulting set retunrs the correct data. I am having difficulty creating and inserting this resulting set into a datatable that could be used in my application. Could someone detail the steps needed to create and fill this table

    http://download.oracle.com/docs/cd/A91202_01/901_doc/appdev.901/a89856/06_ora.htm#1604
    The link above points to Oracle's documentation on using cursor variables. In a nutshell, you want to create a package that defines the cursor type and contains the procedure to open the cursor.
    create package my_package as
    type my_cursor_type is ref cursor;
    procedure my_procedure (out_cursor out my_cursor_type);
    end;
    create package body my_package as
    procedure my_procedure (out_cursor out my_cursor_type) is
    begin
         open my_cursor for
              select ...;
    end;
    end;Now you need to set up your .NET application to read the data.
    OracleConnection con = new OracleConnection("User Id=myuser;Password=mypassword;Data Source=mydatabase");
    OracleParameter[] parms = new OracleParameter[1];
    parms[0] = new OracleParameter("table1_cursor", OracleDbType.RefCursor, ParameterDirection.Output);
    OracleCommand cmd = new OracleCommand("my_package.my_procedure", con);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.Parameters.AddRange(parms);
    DataTable myTable = new DataTable();
    OracleDataAdapter da = new OracleDataAdapter(cmd);
    da.Fill(myTable);

Maybe you are looking for

  • I just downloaded After Effects CS5.5 Trial and can't save my project

    Everything appers to work fine. I can add video, images, sound, but when i click save-save as, nothing happens. When I close the project it asks, do you wish to save "untiled project.aep" before closing and I click yes. Nothing happens, AE closes and

  • Why Can't I Copy Files from an External Hard Drive or SD Card?

    Major problem here... Why when I try copying files from an external hard drive or an SD card onto my internal iMac hard drive, it doesn't work?  The status bar that pops up, shows that it completes the transfer of the files to 100%; however, when it

  • Unable to delete queries from POV Manager

    I have Smart View cells in a word document. I would like to clear the word document of its connectivity, so I connect to Hyperion, choose POV Manager, highlight the query. However the delete icon is not available for me to delete the pre-existing POV

  • Import RFC Model

    All,   I'm using Sneak preview full java version. When I try to call SAP Function module from webdynpro Java via RFC Model, it's asking me to specify the SAP Server detail logon information. Can anyone help me what information i should give becos im

  • How can I delete lots of duplicates, easily?

    I've already invested too much time deleting duplicates.  Now they have reappeared in my library.  How can I delete them quickly and easily?