Limitations of Path Section Group Indexing with alphabet I

Hi,
I created oracle text context indexing with Path section group and was trying to retrieve an element using the below query but it was not giving me any output
select /*+FIRST_ROWS*/rowid,abccolumn,xyz column, efgcolumn,
from xyz table
where contains(xyzcolumn, 'I INPATH (/a:xyz/b:abc/c:efg/d:hij)',1)>0 )
but with the same query instead of I if i am replacing with O i am getting the output.
I wanted to know the significance of I as i was to retrieve all the other columns based on the search criteria .
There are only 2 elements I or O in that node.
with O i am able to retrieve so wanted to know how i can retrieve with I

begin
ctx_ddl.drop_section_group('xyz_path_group');
end;
begin
ctx_ddl.drop_preference('xyz_wildcard_pref1');
end;
begin
ctx_ddl.drop_preference('xyz_word_PREF');
end;
begin
ctx_ddl.drop_preference('xyz_lexer_PREF1');
end;
begin
ctx_ddl.create_section_group('xyz_path_group','PATH_SECTION_GROUP');
end;
begin
ctx_ddl.create_preference('xyz_word_PREF','BASIC_WORDLIST');
ctx_ddl.set_attribute('xyz_word_PREF','SUBSTRING_INDEX','TRUE');
ctx_ddl.set_attribute('xyz_word_PREF','PREFIX_INDEX','YES');
end;
begin
ctx_ddl.create_preference('xyz_lexer_pref1','BASIC_LEXER');
ctx_ddl.set_attribute('xyz_word_PREF','WILDCARD_MAXTERMS','15000');
end;
drop index xyz;
create index xyz on abc(pqr) indextype is ctxsys.context parameters
('datastore ctxsys.direct_datastore wordlist xyz_word_PREF FILTER ctxsys.null_filter lexer xyz_lexer_pref1
sync(on commit)SECTION GROUP xyz_path_group MEMORY 500M ');
This is how i created index and the table i have several column but the column pqr i am indexing has XML (Large) xml with 15 namespaces and with 3 prefixes

Similar Messages

  • OTI index with documents

    Hi,
    Could you please guide me whether the following approch is right way to implement my requirment, I'm working for one of the fuzzy search requiremnet, My table contains 100 million rows with varchar2 datatype, for this i have been created the following steps,
    1. Convert the table data in to XML documents with help of following pl/sql procedure
    CREATE OR REPLACE PACKAGE Chrdscr IS
    p_dir_name varchar2(13) := '/opt/app/log/';
    procedure OpenXmlFile(p_dir_name varchar2);
    END Chrdscr;
    CREATE OR REPLACE PACKAGE Chrdscr IS
    p_dir_name varchar2(13) := '/opt/app/log/';
    procedure OpenXmlFile(p_dir_name varchar2);
    END Chrdscr;
    create or replace package body Chrdscr is
    v_FILENAME varchar2(30);
    f_XML_FILE UTL_FILE.file_type;
    procedure OpenXmlFile(p_dir_name varchar2) is
    v_record_data varchar2(4000) := null;
    v_DSCR varchar2(4000) := null;
    cursor orders_cursor is
    select t.dscr
    from CHR_DSCR_T t;
    begin
    --v_FILENAME := TO_CHAR(SYSDATE, 'DDMMYYYYHH24MI') || '.xml';
    v_FILENAME := 'chrdscr.xml';
    f_XML_FILE := UTL_FILE.fopen('DATA_PUMP_DIR', v_FILENAME, 'W');
    v_RECORD_DATA := '<?xml version="1.0" encoding="UTF-8"?>';
    UTL_FILE.put_line(f_XML_FILE, v_RECORD_DATA);
    open orders_cursor;
    loop
    fetch orders_cursor
    into v_DSCR;
    EXIT WHEN orders_cursor%NOTFOUND;
    UTL_FILE.put_line(f_XML_FILE,
    ' <DSCR>' || v_DSCR || '</DSCR>');
    end loop;
    close orders_cursor;
    UTL_FILE.FCLOSE(f_XML_FILE);
    EXCEPTION
    WHEN UTL_FILE.INTERNAL_ERROR THEN
    raise_application_error(-20500,
    'Cannot open file :' || v_FILENAME ||
    ', internal error; code:' || sqlcode ||
    ',message:' || sqlerrm);
    WHEN UTL_FILE.INVALID_OPERATION THEN
    raise_application_error(-20501,
    'Cannot open file :' || v_FILENAME ||
    ', invalid operation; code:' || sqlcode ||
    ',message:' || sqlerrm);
    WHEN UTL_FILE.INVALID_PATH THEN
    raise_application_error(-20502,
    'Cannot open file :' || v_FILENAME ||
    ', invalid path; code:' || sqlcode ||
    ',message:' || sqlerrm);
    WHEN UTL_FILE.WRITE_ERROR THEN
    raise_application_error(-20503,
    'Cannot write to file :' || v_FILENAME ||
    ', write error; code:' || sqlcode ||
    ',message:' || sqlerrm);
    end;
    end Chrdscr;
    PL/SQL procedure successfully completed.
    2. The XML document created in the directory, after that i have created one table
    CREATE TABLE testtab
    (id NUMBER,
         docs VARCHAR2 (30))
    Table created.
    INSERT INTO testtab     VALUES (1, 'chrdscr.xml')
    1 row created.
    3. Context type index also created for the XML document
    CREATE INDEX otiind ON testtab (docs)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('DATASTORE otipref')
    Index created.
    SQL> SELECT token_text FROM dr$otiind$i
    2 ;
    TOKEN_TEXT
    1.0
    1888
    13654
    125678.6
    888
    999999
    DATA
    DIRECT
    ENCODING
    UTF
    VERSION
    TOKEN_TEXT
    XML
    12 rows selected.
    5. then i executed the follwing step
    begin
    chrdscr.OpenXmlFile('opt/app/log/');
    end;
    SELECT id FROM mytab
    2 WHERE CONTAINS (docs, 'data') > 0
    3 /
    ID
    1
    Could you please advice me whether this approch will satify the fuzzy search requirment? your help is very much helpful to implement this.

    I don't know why you insist on adding the extra unnecessary step of xml. What do you expect to gain by using xml? There are various ways to create and index your xml. The example below is just one of many. You can find other methods and examples in the online documentation. As you can see below, there is nothing gained by adding the xml. If you want sections, you can create a multi_column_datastore without the xml, but still have your separate columns to select from.
    SCOTT@orcl_11gR2> CREATE TABLE chr_dscr_t
      2    (CHR_DSCR_ID  NUMBER           NOT NULL,
      3       CHR_ID          NUMBER           NOT NULL,
      4       LANG_ID      NUMBER           NOT NULL,
      5       DSCR_ID      NUMBER           NOT NULL,
      6       DSCR          VARCHAR2(4000 CHAR),
      7       TRANS_ST     VARCHAR2(1 CHAR)      NOT NULL,
      8       CRTD_BY      VARCHAR2(50 CHAR)      NOT NULL,
      9       CRTD_DTTM    DATE           NOT NULL,
    10       UPD_BY          VARCHAR2(50 CHAR)      NOT NULL,
    11       UPD_DTTM     DATE           NOT NULL,
    12       LCK_NUM      NUMBER           NOT NULL)
    13  /
    Table created.
    SCOTT@orcl_11gR2> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('chr_dscr_wordlist', 'BASIC_WORDLIST');
      3    CTX_DDL.SET_ATTRIBUTE ('chr_dscr_wordlist', 'FUZZY_MATCH', 'AUTO');
      4    CTX_DDL.SET_ATTRIBUTE ('chr_dscr_wordlist', 'FUZZY_SCORE', 0);
      5    CTX_DDL.SET_ATTRIBUTE ('chr_dscr_wordlist', 'FUZZY_NUMRESULTS', 5000);
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> INSERT INTO chr_dscr_t VALUES
      2    (1, 2, 3, 4, 'This is a test record.', 'a', 'b', SYSDATE, 'c', SYSDATE, 5)
      3  /
    1 row created.
    SCOTT@orcl_11gR2> INSERT INTO chr_dscr_t VALUES
      2    (2, 3, 4, 5, 'tests tests tests', 'c', 'd', SYSDATE, 'e', SYSDATE, 6)
      3  /
    1 row created.
    SCOTT@orcl_11gR2> COMMIT
      2  /
    Commit complete.
    SCOTT@orcl_11gR2> CREATE TABLE testtab
      2    (id   NUMBER,
      3       docs CLOB)
      4  /
    Table created.
    SCOTT@orcl_11gR2> INSERT INTO testtab (id, docs)
      2  SELECT chr_dscr_id,
      3           DBMS_XMLGEN.GETXML
      4             ('SELECT *
      5            FROM   chr_dscr_t
      6            WHERE  chr_dscr_id = ' || chr_dscr_id)
      7  FROM   chr_dscr_t
      8  /
    2 rows created.
    SCOTT@orcl_11gR2> SELECT * FROM testtab
      2  /
            ID
    DOCS
             1
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
      <CHR_DSCR_ID>1</CHR_DSCR_ID>
      <CHR_ID>2</CHR_ID>
      <LANG_ID>3</LANG_ID>
      <DSCR_ID>4</DSCR_ID>
      <DSCR>This is a test record.</DSCR>
      <TRANS_ST>a</TRANS_ST>
      <CRTD_BY>b</CRTD_BY>
      <CRTD_DTTM>21-DEC-10</CRTD_DTTM>
      <UPD_BY>c</UPD_BY>
      <UPD_DTTM>21-DEC-10</UPD_DTTM>
      <LCK_NUM>5</LCK_NUM>
    </ROW>
    </ROWSET>
             2
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
      <CHR_DSCR_ID>2</CHR_DSCR_ID>
      <CHR_ID>3</CHR_ID>
      <LANG_ID>4</LANG_ID>
      <DSCR_ID>5</DSCR_ID>
      <DSCR>tests tests tests</DSCR>
      <TRANS_ST>c</TRANS_ST>
      <CRTD_BY>d</CRTD_BY>
      <CRTD_DTTM>21-DEC-10</CRTD_DTTM>
      <UPD_BY>e</UPD_BY>
      <UPD_DTTM>21-DEC-10</UPD_DTTM>
      <LCK_NUM>6</LCK_NUM>
    </ROW>
    </ROWSET>
    2 rows selected.
    SCOTT@orcl_11gR2> CREATE INDEX chr_dscr_t_dscr_idx
      2  ON testtab (docs)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  PARAMETERS
      5    ('WORDLIST     chr_dscr_wordlist
      6        SYNC          (ON COMMIT)
      7        SECTION GROUP     CTXSYS.AUTO_SECTION_GROUP')
      8  /
    Index created.
    SCOTT@orcl_11gR2> VARIABLE criteria VARCHAR2(100)
    SCOTT@orcl_11gR2> VARIABLE page NUMBER
    SCOTT@orcl_11gR2> EXEC :criteria := 'tests'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> EXEC :page := 1
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> COLUMN criteria_in_context FORMAT A45 WORD_WRAPPED
    SCOTT@orcl_11gR2> SELECT rank, criteria_in_context
      2  FROM   (SELECT SCORE (1) rank,
      3                CTX_DOC.SNIPPET
      4                  ('chr_dscr_t_dscr_idx',
      5                   ROWID,
      6                   'FUZZY (' || :criteria || ') WITHIN dscr')
      7                  AS criteria_in_context,
      8                ROW_NUMBER () OVER (ORDER BY SCORE (1) DESC) rn
      9            FROM   testtab
    10            WHERE  CONTAINS (docs, 'FUZZY (' || :criteria || ') WITHIN dscr', 1) > 0
    11            ORDER  BY SCORE (1) DESC)
    12  WHERE  rn BETWEEN ((:page - 1) * 20) + 1 AND :page * 20
    13  /
          RANK CRITERIA_IN_CONTEXT
            12 2
               3
               4
               5
               <b>tests</b> <b>tests</b> <b>tests</b>
               c
               d
               21-DEC-10
               e
               21-DEC
             4 1
               2
               3
               4
               This is a <b>test</b> record.
               a
               b
               21-DEC-10
               c
               21
    2 rows selected.
    SCOTT@orcl_11gR2>

  • Problem in creating xml section group

    I have created xml section group with some sections defined in the field.Now my attributes are repeated with different root nodes.so i have put braces for differentiation and created context index.
    drop index abc_indexes_idx;
    begin
    ctx_ddl.remove_section('xyz_xml_group','abLName');
    ctx_ddl.remove_section('xyz_xml_group','abFName');
    ctx_ddl.remove_section('xyz_xml_group','cdLName');
    ctx_ddl.remove_section('xyz_xml_group','cdFName');
    ctx_ddl.remove_section('xyz_xml_group','efLName');
    ctx_ddl.remove_section('xyz_xml_group','efFName');
    ctx_ddl.remove_section('xyz_xml_group','ghLName');
    ctx_ddl.remove_section('xyz_xml_group','ghFName');
    end;
    begin
    ctx_ddl.drop_section_group('xyz_xml_group');
    end;
    begin
    ctx_ddl.drop_preference('xyz_wildcard_pref1');
    end;
    begin
    ctx_ddl.drop_preference('xyz_lexer_pref1');
    end;
    begin
    ctx_ddl.drop_preference('STEM_FUZZY_PREF');
    end;
    begin
    ctx_ddl.create_section_group('xyz_xml_group','XML_SECTION_GROUP');
    ctx_ddl.add_field_section('xyz_xml_group','abLName','IncidentSubject(PersonGivenName');
    ctx_ddl.add_field_section('xyz_xml_group','abFName','IncidentSubject(PersonSurName');
    ctx_ddl.add_field_section('xyz_xml_group','cdLName','ActivityVictim(PersonGivenName');
    ctx_ddl.add_field_section('xyz_xml_group','cdFName','ActivityVictim(PersonSurName');
    ctx_ddl.add_field_section('xyz_xml_group','efLName','ActivityComplainantPerson(PersonGivenName');
    ctx_ddl.add_field_section('xyz_xml_group','efFName','ActivityComplainantPerson(PersonSurName');
    ctx_ddl.add_field_section('xyz_xml_group','ghLName','ActivityWitness(PersonGivenName');
    ctx_ddl.add_field_section('xyz_xml_group','ghFName','ActivityWitness(PersonSurName');
    end;
    begin
    ctx_ddl.create_preference('STEM_FUZZY_PREF','BASIC_WORDLIST');
    ctx_ddl.set_attribute('STEM_FUZZY_PREF','SUBSTRING_INDEX','TRUE');
    end;
    begin
    ctx_ddl.set_attribute('STEM_FUZZY_PREF','PREFIX_INDEX','YES');
    end;
    begin
    ctx_ddl.create_preference('njdex_lexer_pref1','BASIC_LEXER');
    ctx_ddl.set_attribute('STEM_FUZZY_PREF','WILDCARD_MAXTERMS','15000');
    end;
    drop index xyz_indexes_idx
    create index xyz_indexes_idx on xyz_INDEXES(abc column) indextype is ctxsys.context parameters
    ('datastore ctxsys.direct_datastore wordlist STEM_FUZZY_PREF FILTER ctxsys.null_filter lexer xyz_lexer_pref1
    sync(on commit)SECTION GROUP xyz_xml_group MEMORY 500M ');
    My XML document is as follows whichi stored in a column of abc and it is of xmltype datatype
    <?xml version="1.0" encoding="utf-8"?>
    <ab:IncidentReportGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:j="http://www.it.ojp.gov/jxdm/3.0.3" xmlns:ext="http://xml.abc.com/jxdm/3.0.3/extension" xmlns:ab="http://xml.abc.com/jxdm/3.0.3">
    <ab:IncidentReport>
    <ext:IncidentSubject>
    <j:PersonName>
    <j:PersonGivenName>abc</j:PersonGivenName>
    <j:PersonMiddleName />
    <j:PersonSurName>xyz</j:PersonSurName>
    <j:PersonSuffixName />
    <j:PersonFullName>abc, xyz </j:PersonFullName>
    </j:PersonName>
    </ext:IncidentSubject>
    <ext:ActivityComplainantPerson>
    <j:PersonName>
    <j:PersonGivenName>abc</j:PersonGivenName>
    <j:PersonMiddleName />
    <j:PersonSurName>xyz</j:PersonSurName>
    <j:PersonSuffixName />
    <j:PersonFullName>abc, xyz </j:PersonFullName>
    </j:PersonName>
    </ext:ActivityComplainantPerson>
    <ext:ActivityWitness>
    <j:PersonName>
    <j:PersonGivenName>abc</j:PersonGivenName>
    <j:PersonMiddleName />
    <j:PersonSurName>xyz</j:PersonSurName>
    <j:PersonSuffixName />
    <j:PersonFullName>abc, xyz </j:PersonFullName>
    </j:PersonName>
    </ext:ActivityWitness>
    <ext:ActivityVictim>
    <j:PersonName>
    <j:PersonGivenName>abc</j:PersonGivenName>
    <j:PersonMiddleName />
    <j:PersonSurName>xyz</j:PersonSurName>
    <j:PersonSuffixName />
    <j:PersonFullName>abc, xyz </j:PersonFullName>
    </j:PersonName>
    </ext:ActivityVictim>
    <ext:ActivityWitness>
    </ab:IncidentReport>
    </ab:IncidentReportGroup>
    now when i am trying to run the query
    select * from xyz_indexes where contains(xyzcolumn,'(LORI WITHIN abLName)
    & ("BELAND" WITHIN abFName)')>0
    It is not returning anything.
    Can anyone provide me some help on it.

    I changed your data to match what you were searching for, then I noticed that your third parameters for add_field_section were wrong, so I changed that. The query then returns rows, as demonstrated below. However, I suspect that add_field_section is not what you want to use with your XML data since you have tags with the same names within different categories.
    SCOTT@orcl_11g> SET DEFINE OFF
    SCOTT@orcl_11g> begin
      2    ctx_ddl.drop_section_group('xyz_xml_group');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> begin
      2    ctx_ddl.drop_preference('xyz_lexer_pref1');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> begin
      2    ctx_ddl.drop_preference('STEM_FUZZY_PREF');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> begin
      2    ctx_ddl.create_section_group('xyz_xml_group','XML_SECTION_GROUP');
      3    ctx_ddl.add_field_section('xyz_xml_group','abLName','j:PersonGivenName');
      4    ctx_ddl.add_field_section('xyz_xml_group','abFName','j:PersonSurName');
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> begin
      2    ctx_ddl.create_preference('STEM_FUZZY_PREF','BASIC_WORDLIST');
      3    ctx_ddl.set_attribute('STEM_FUZZY_PREF','SUBSTRING_INDEX','TRUE');
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> begin
      2    ctx_ddl.set_attribute('STEM_FUZZY_PREF','PREFIX_INDEX','YES');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> begin
      2    ctx_ddl.create_preference('xyz_lexer_pref1','BASIC_LEXER');
      3    ctx_ddl.set_attribute('STEM_FUZZY_PREF','WILDCARD_MAXTERMS','15000');
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> drop index xyz_indexes_idx
      2  /
    Index dropped.
    SCOTT@orcl_11g> DROP TABLE xyz_indexes
      2  /
    Table dropped.
    SCOTT@orcl_11g> CREATE TABLE xyz_indexes
      2    (xyzcolumn  XMLTYPE)
      3  /
    Table created.
    SCOTT@orcl_11g> INSERT INTO xyz_indexes VALUES
      2  (XMLTYPE (
      3  '<?xml version="1.0" encoding="utf-8"?>
      4  <ab:IncidentReportGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:j="http://www.it.ojp.gov/jxdm/3.0.3" xmlns:ext="http://xml.abc.com/jxdm/3.0.3/extension" xmlns:ab="http://xml.abc.com/jxdm/3.0.3">
      5    <ab:IncidentReport>
      6        <ext:IncidentSubject>
      7          <j:PersonName>
      8            <j:PersonGivenName>LORI</j:PersonGivenName>
      9            <j:PersonMiddleName />
    10            <j:PersonSurName>"BELAND"</j:PersonSurName>
    11            <j:PersonSuffixName />
    12            <j:PersonFullName>abc, xyz </j:PersonFullName>
    13          </j:PersonName>
    14        </ext:IncidentSubject>
    15        <ext:ActivityComplainantPerson>
    16          <j:PersonName>
    17            <j:PersonGivenName>abc</j:PersonGivenName>
    18            <j:PersonMiddleName />
    19            <j:PersonSurName>xyz</j:PersonSurName>
    20            <j:PersonSuffixName />
    21            <j:PersonFullName>abc, xyz </j:PersonFullName>
    22          </j:PersonName>
    23        </ext:ActivityComplainantPerson>
    24        <ext:ActivityWitness>
    25          <j:PersonName>
    26            <j:PersonGivenName>abc</j:PersonGivenName>
    27            <j:PersonMiddleName />
    28            <j:PersonSurName>xyz</j:PersonSurName>
    29            <j:PersonSuffixName />
    30            <j:PersonFullName>abc, xyz </j:PersonFullName>
    31          </j:PersonName>
    32        </ext:ActivityWitness>
    33        <ext:ActivityVictim>
    34          <j:PersonName>
    35            <j:PersonGivenName>abc</j:PersonGivenName>
    36            <j:PersonMiddleName />
    37            <j:PersonSurName>xyz</j:PersonSurName>
    38            <j:PersonSuffixName />
    39            <j:PersonFullName>abc, xyz </j:PersonFullName>
    40          </j:PersonName>
    41        </ext:ActivityVictim>
    42    </ab:IncidentReport>
    43  </ab:IncidentReportGroup>'
    44  ))
    45  /
    1 row created.
    SCOTT@orcl_11g> create index xyz_indexes_idx on xyz_INDEXES(xyzcolumn) indextype is ctxsys.context parameters
      2  ('datastore ctxsys.direct_datastore wordlist STEM_FUZZY_PREF FILTER ctxsys.null_filter lexer xyz_lexer_pref1
      3  sync(on commit)SECTION GROUP xyz_xml_group MEMORY 500M ')
      4  /
    Index created.
    SCOTT@orcl_11g> select * from xyz_indexes where contains(xyzcolumn,'(LORI WITHIN abLName)
      2  & ("BELAND" WITHIN abFName)')>0
      3  /
    XYZCOLUMN
    <?xml version="1.0" encoding="utf-8"?>
    <ab:IncidentReportGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xm
    lns:j="http://www.it.ojp.gov/jxdm/3.0.3" xmlns:ext="http://xml.abc.com/jxdm/3.0.
    3/extension" xmlns:ab="http://xml.abc.com/jxdm/3.0.3">
      <ab:IncidentReport>
        <ext:IncidentSubject>
          <j:PersonName>
            <j:PersonGivenName>LORI</j:PersonGivenName>
            <j:PersonMiddleName />
            <j:PersonSurName>"BELAND"</j:PersonSurName>
            <j:PersonSuffixName />
            <j:PersonFullName>abc, xyz </j:PersonFullName>
          </j:PersonName>
        </ext:IncidentSubject>
        <ext:ActivityComplainantPerson>
          <j:PersonName>
            <j:PersonGivenName>abc</j:PersonGivenName>
            <j:PersonMiddleName />
            <j:PersonSurName>xyz</j:PersonSurName>
            <j:PersonSuffixName />
            <j:PersonFullName>abc, xyz </j:PersonFullName>
          </j:PersonName>
        </ext:ActivityComplainantPerson>
        <ext:ActivityWitness>
          <j:PersonName>
            <j:PersonGivenName>abc</j:PersonGivenName>
            <j:PersonMiddleName />
            <j:PersonSurName>xyz</j:PersonSurName>
            <j:PersonSuffixName />
            <j:PersonFullName>abc, xyz </j:PersonFullName>
          </j:PersonName>
        </ext:ActivityWitness>
        <ext:ActivityVictim>
          <j:PersonName>
            <j:PersonGivenName>abc</j:PersonGivenName>
            <j:PersonMiddleName />
            <j:PersonSurName>xyz</j:PersonSurName>
            <j:PersonSuffixName />
            <j:PersonFullName>abc, xyz </j:PersonFullName>
          </j:PersonName>
        </ext:ActivityVictim>
      </ab:IncidentReport>
    </ab:IncidentReportGroup>
    SCOTT@orcl_11g>

  • Detail sections not displayed with Crystal Reports 2010 Runtime (SP1 also)

    I have migrated a VB app from RDC 9 to Crystal Reports 2010 and I'm experiencing a very strange issue.
    In a report with 6 nested groups, the detail part is splitted in 7 section, and the whole detail has the "keep together" flag activated. At runtime, some detail sections are not displayed. There is no suppress condition on the detail section. The missed sections are those near bottom of the page. I suppose that when there is no room to print the section on the page and it should go on the next page, Crystal forget to display it.
    I exported the report in Crystal format and reopened with Crystal Reports designer and the missed section are displayed.
    The same report is displayed correctly using RDC 9.
    If I show the group tree and select the missed section group, the section is correctly displayed on a separate preview page.
    I've some screenshot to better demonstrate the problem.
    I hoped SP1 will resolve the issue but unfortunately it didn't.
    Pier Alberto Guidotti

    This issue has been escalated for a fix. tracking number is TE5000325237. For anyone wanting to attach to this thread with a similar issue, please note the behavior as decribed in the TE below. If the description does not match your issue exactly, please create a new thread.
    Description - Steps to Reproduce;
    1) Run the report in the CR 2008 designer - note the second page
    2) Run the report in VS2010 app using CRVS2010 SP1:
    CrystalReportViewer1.ReportSource = <path to report>
    3) Look at page 2 and compare to page 2 from the CR2008 designer (also, see attached compare.jpg file which is a screen shot of both views) - note missing group on page 2
    4) Export to PDF, DO, RTF - same issue
    5) Print to printer using the viewer print button - same issue
    6) Same issue print to printer using code:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    crReportDocument.Load("C:\Crystal\Test\Forum tests\Alberto missing detail section\Crystal Issue\Distinta di Taglio CR 2010.rpt")
    crReportDocument.PrintToPrinter(1, 1, 1, 2)
            MsgBox("Done")
    7) Same issue print to printer using code:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    crReportDocument.Load("C:\Crystal\Test\Forum tests\Alberto missing detail section\Crystal Issue\Distinta di Taglio CR 2010.rpt")
    Dim rcd As ISCDReportClientDocument
            rcd = crReportDocument.ReportClientDocument
            rcd.PrintOutputController.PrintReport()
            MsgBox("Done")
    8) Export to RPT file format - view this export in the CR2008 Designer - report looks as it should
    9) Add report to the .NET2010 project. trying to view the repor tin the .NET2010 IDE results in .NET crashing.
    - Ludek

  • Path does not chain with any of the trust anchors, but included in cacerts?

    I have implemented a CA that has a self-signed certificate:<CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE>
    I have a cert from this CA: <CN=realAnonym>
    With this cert, I want to make a SSL connection to some server with client authentication.
    <CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> is included in the cacerts-file of the server.
    <CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> (Part of trusted CA's) in my opinion match with <CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> (second certificate in certificatechain of <CN=realAnonym>).
    But it doesn't ???
    execute the server with -Djavax.net.debug=ssl,handshake gives:
    <CN=GeoTrust Global CA, O=GeoTrust Inc., C=US>
    <CN=Entrust.net Certification Authority (2048), OU=(c) 1999 Entrust.net Limited,
    OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.), O=Entrust.net>
    <CN=Equifax Secure Global eBusiness CA-1, O=Equifax Secure Inc., C=US>
    <OU=Go Daddy Class 2 Certification Authority, O="The Go Daddy Group, Inc.", C=US
    >
    <CN=VeriSign Class 1 Public Primary Certification Authority - G3, OU="(c) 1999 V
    eriSign, Inc. - For authorized use only", OU=VeriSign Trust Network, O="VeriSign
    , Inc.", C=US>
    <CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE> (Part of trusted CA's)<OU=VeriSign Trust Network, OU="(c) 1998 VeriSign, Inc. - For authorized use only", OU=Class 2 Public Primary Certification Authority - G2, O="VeriSign, Inc.",
    C=US>
    <OU=VeriSign Trust Network, OU="(c) 1998 VeriSign, Inc. - For authorized use onl
    y", OU=Class 1 Public Primary Certification Authority - G2, O="VeriSign, Inc.",
    C=US>
    *** ServerHelloDone
    main, WRITE: TLSv1 Handshake, length = 7383
    main, READ: TLSv1 Handshake, length = 3784
    *** Certificate chain
    chain [0] = [
    Version: V3
      Subject: CN=realAnonym (client certificate)Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: Sun RSA public key, 1024 bits
    modulus: 127355714484211456591612779667470666909980708602501730899657524388577
    49850208930275081977822300971032883864332221450883863390126466833031349667099122
    38288059447802849568096837640845268449147677304455823253593898716430967402259872
    25271396467992796337646786345774935629264123070013042903682567551911526037603651
    public exponent: 65537
    Validity: [From: Fri Nov 18 00:00:00 CET 2005,
                   To: Fri Nov 03 12:04:28 CET 2006]
    Issuer: C=BE, L=Leuven, O=KUL, OU=JurgenAgten, CN=ps (Clent certificate issuer) SerialNumber: [    0107a404 7764]
    Certificate Extensions: 3
    [1]: ObjectId: 2.1.2.3.102 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 02 31 00 ..1.
    [2]: ObjectId: 2.1.2.3.101 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 1D 31 1B 30 19 13 02 4C 64 02 02 03 E8 13 06 ..1.0...Ld......
    0010: 61 7A 65 72 74 79 13 07 41 72 62 69 74 65 72 azerty..Arbiter
    [3]: ObjectId: 2.1.2.3.100 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 82 09 F7 30 82 09 F3 03 82 09 6B 00 AC ED 00 ....0......k....
    0010: 05 73 72 00 19 6A 61 76 61 78 2E 63 72 79 70 74 .sr..javax.crypt
    0020: 6F 2E 53 65 61 6C 65 64 4F 62 6A 65 63 74 3E 36 o.SealedObject>6
    0030: 3D A6 C3 B7 54 70 02 00 04 5B 00 0D 65 6E 63 6F =...Tp...[..enco
    0040: 64 65 64 50 61 72 61 6D 73 74 00 02 5B 42 5B 00 dedParamst..[B[. .
    09D0: C8 18 22 75 E9 23 56 96   9E 7E 71 C5 7B 6B 95 5B  .."u.#V...q..k.[
    09E0: DF AB 6D 0A 39 0C E3 74   F1 BA 5A 9C 50 76 0B 3E  ..m.9..t..Z.Pv.>
    09F0: 13 79 20 2E B5 B1 FC 83   76 97 A2                 .y .....v..
    Algorithm: [MD5withRSA]
    Signature:
    0000: 78 DC AF 04 6F D9 F2 54 6A 5D CB 99 4E 45 90 25 x...o..Tj]..NE.%
    0010: 8D 4B 24 17 BF BB B9 1D AB 1D 7C EF 3D F5 01 9C .K$.........=...
    0020: 49 9C 81 CC 64 0C F4 38 37 F5 BB CF 28 F7 FB 2F I...d..87...(../
    0030: 5E 91 21 E3 A1 B0 92 90 F7 DC 92 F6 A8 6C E3 78 ^.!..........l.x
    0040: 36 B7 36 B8 05 6B 17 8D C8 CF AF D2 9B F6 89 B2 6.6..k..........
    0050: 5B 20 E4 14 0B 98 1C 50 69 FC CC C1 6F 6C F0 EA [ .....Pi...ol..
    0060: 63 1E 64 71 BA 41 3D B6 23 7A 72 91 01 B4 B2 23 c.dq.A=.#zr....#
    0070: 40 2D 62 48 E0 84 0E FA D7 EF E1 9C F5 92 DF 42 @-bH...........B
    chain [1] = [
    Version: V1
    Subject: CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE (Client certificatechain[1] the CA) Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: Sun RSA public key, 1024 bits
    modulus: 117566584630083419996551735329369567910739541932314407531248741596590
    25394436071793849489119529408325801928292164157908793562030900052755912331352764
    88920380150146179015561996002426862508085279249965768014151302583170908492349232
    49673303864165396475282399840755746956422674084689146502252850565325504345529883
    public exponent: 65537
    Validity: [From: Fri Nov 18 16:31:50 CET 2005,
                   To: Thu Feb 16 16:31:50 CET 2006]
    Issuer: CN=ps, OU=JurgenAgten, O=KUL, L=Leuven, C=BE (is self-signed)SerialNumber: [    437df3e6]
    Algorithm: [MD5withRSA]
    Signature:
    0000: A5 0B D2 F7 C9 4A BF E5 00 C2 42 50 DF EB 33 A6 .....J....BP..3.
    0010: DB 1A 7F C5 38 DE 4A FA 23 09 5C 09 5D 68 73 CD ....8.J.#.\.]hs.
    0020: 72 B7 A4 9A 50 30 ED BE 35 28 6D 19 21 77 B6 32 r...P0..5(m.!w.2
    0030: FE 83 22 CE EF 7F F4 3E 6E 52 B0 E9 9D 14 EA 48 .."....>nR.....H
    0040: A4 0B DC 41 C2 86 D4 48 6A AD 49 46 84 10 FA 69 ...A...Hj.IF...i
    0050: 7D C6 81 0C AF BA 88 D5 C1 30 BA 1A 5A E5 D3 24 .........0..Z..$
    0060: 0A 3E 15 5A B5 99 A8 B2 32 80 85 D4 72 3F F4 60 .>.Z....2...r?.`
    0070: 18 BA 11 3A 91 35 D9 F9 CA D3 C9 AE 2F 3E 39 E1 ...:.5....../>9.
    main, SEND TLSv1 ALERT: fatal, description = certificate_unknown
    main, WRITE: TLSv1 Alert, length = 2
    main, called closeSocket()
    main, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
    main, IOException in getSession(): javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors

    It is not even done the first validation part on the client side ( if you have not cut the debugs).
    On both, your client and your server, you should add your CA certificate to the trust set. You can first leave the client authentication aside, and do it on the client code to be sure the client authenticates the server's certificate properly; later you can add the same functionality to your server when checking the client certificate. The mechanism provided to deploy this, is either through system property javax.net.ssl.trustStore to introduce your truststore or introcuding your own trustmanager in the codes.
    In case, you want to set it dynamically in the program code, you should consider using your extension of X509TrustManager() . Aussuming it be YourTrustManager, you go like this:
    //YourTrustManager implements javax.net.ssl.X509TrustManager
    SSLContext sslContext = SSLContext.getInstance("SSLv3");
    YouTrustManager tm = new YourTrustManager();
    TrustManager tms[] = {tm};
    sslContext.init(null, tms, null);  
    HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());Further, you might need to change the default hostname verifier on the HttpsConnection before you can establish a successful handshake with the pattern you used for your certificates.
    Read http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html in case this does not make it clear enough.

  • RFINDEX - Errors in section Reconciliation INDEX vs BSEG

    Hi Experts,
    After converting a normal GL account into OIM, we have executed the report RFINDEX for consistency check.
    We have found errors in the section Reconciliation INDEX vs BSEG.
    But I am not sure what exactly the system trying to make me understand and the list of documents that got affected.
    Analysis log says that error msg appears at XBLNR field in BSEG & BSIS table.
    However, we do not find the field in BSEG table.  Then why the system is showing it as "error msg "?
    May I request the forum to throw some light and route me towards solution for overcoming the issue?
    Regards,
    BSK..

    Hi Surya,
    Please note first of all that the repair option in RFINDEX is only available for use SAP Support. We never recommend that customers or general systems users use this report in repair mode themselves. It can lead to further inconsistencies if used incorrectly.
    The error you have seen on this account related to XBLNR is arising because there are differences in the values when comparing the contents of field BKPF-XBLNR and BSIS-XBLNR for a particular set of line items. The XBLNR field is in the header table BKPF and not BSEG.
    This error is usually a non critical error and can occur when customising settings such as user exits, substitutions update the XBLNR field in one table (eg BKPF) but not in another (eg BSIS). In these types of situations we usually advise customers to first take time in understanding why the values are updated for XBLNR in their system; the field is highly customizable and therefore errors like this can often appear in systems when running RFINDEX. There is no bug in the standard system which causes these types of differences.
    The good news is that this error has nothing to do with the open item management which you enabled. Otherwise you would see error messages like "XOPVW" etc. From your description it seems that the conversion to Open Item Management you did was successful.
    Kind regards,
    Declan

  • Performance of context index with sorting

    Dear All,
    I've got a problem and don't know how to solve this.
    there has a table which have a XMLTYPE field to store the unstructred xml, and created with context index.
    When I try to select a record from it by using contains (res, '[searchingfield]')>0, the response time is quick, but when I try to order by another field which in the same table, the response time is drop down slightly. (ex. select id, path, res, update_date from testingtbl where contains(res, 'shopper')>0 order by update_date desc.
    Actually there is a context index build for field 'res', any other index build for field 'update_date', when sql without 'order by update_date', the context index will use, but the update_date index will not be used even have ordering criteria.
    Is there any expect can tell how to solve this? how to keep the performance even doing the sorting process?
    Thanks and Regards
    Raymond

    Thanks for your quick reply.
    The mentions information provide after back to office, actually I just want to know if there is any method(s) which can use the context index (with contains keyword) and sorting without slow down the performance.
    Thanks and Regards
    Raymond

  • G/L accounts with alphabetic

    hi
                I am mohan, my client wants to create G/L account with alphabetic and numeric. I was tried lot, but i can't find out. can any one give me the solution please

    Hi,
    Please check out the below link:-
    [http://help.sap.com/saphelp_46c/helpdata/en/c7/a88a9843dd11d182b30000e829fbfe/content.htm]
    The GL account can be defined alphanumrically. You just need to define that alphanumeric number range in the GL account group defination in customization.
    Regards,
    SDNer

  • Keep Group headings with data - control your page breaks

    Trying to keep the group heading with the appropriate transaction information.  Currently, get a group heading at the bottom of a page and then the transactions print on the next page.   Difficult to determine what the transaction information is without the appropriate group headings displayed.   The amount of transaction data is not static, it varies from page to page.  Some of the reports can be close to 100 pages.   Please advise.

    Hi Kim,
    You can use the option u201CNew Page Afteru201D in Section Expert for Group Footer section so that the new group Header will display on the next page.
    Regards,
    Alpana

  • Determining Where Hits Were Found (XML Section Groups)

    Hello all,
    Hoping for a bit of help. It's my first time posting here, but I've benefitted from reading a lot of your posts. I have created a single Oracle Text index for a resume database of sorts. It utilizes a user datastore. The procedure I use gathers a a single user's information in my database and organizes it via XML tags that are assigned in the procedure - outputs a CLOB. I did this in order to try the AUTO SECTION GROUP option when indexing, so that I could use the WITHIN operator.
    So, for example, the procedure is given the rowid for a single employee, and the output may be:
    <ALL>
    <PERSONAL>
    83019
    John Smith
    10/05/1973
    Baltimore, MD
    </PERSONAL>
    <SKILLS>
    Oracle Database Administrator
    .NET Developer
    </SKILLS>
    </ALL>
    My problem is I wish to know the SPECIFIC section groups where hits were registered if I search all of the XML
    SELECT EMPLOYEE_ID
    FROM EMPLOYEE_TBL
    WHERE CONTAINS (DUMMY_COLUMN, 'developer WITHIN ALL', 1) > 0
    ORDER BY SCORE (1) DESC
    My output is:
    EMPLOYEE_ID
    83019
    Is there any way I can also list the sections where hits were registered for this user? In this example, I'd want the "SKILLS" section to show up in the result set.

    skMed,
    Yes, that is a problem. Alternatives are the first method using UNION ALL or creating a MATERIALIZED VIEW and indexing that, similar to what I demonstrated to the other poster on this thread, or CTX_DOC.HIGHLIGHT as Roger said. I have provided a demonstration of the problem below, followed by an alternative solution that uses CTX_DOC.HIGHLIGHT as Roger suggested. I used a function but Roger may have a more elegant method.
    SCOTT@orcl_11g> CREATE TABLE employee_tbl
      2    (employee_id  NUMBER,
      3       fname          VARCHAR2 (7),
      4       lname          VARCHAR2 (7),
      5       dob          DATE,
      6       city          VARCHAR2 (9),
      7       state          VARCHAR2 (2),
      8       dummy_column VARCHAR2 (1),
      9       CONSTRAINT emp_id_pk PRIMARY KEY (employee_id))
    10  /
    Table created.
    SCOTT@orcl_11g> CREATE TABLE skills
      2    (employee_id  NUMBER,
      3       skill          VARCHAR2 (30),
      4       CONSTRAINT skills_id_fk FOREIGN KEY (employee_id) REFERENCES employee_tbl (employee_id))
      5  /
    Table created.
    SCOTT@orcl_11g> CREATE TABLE jobs
      2    (employee_id  NUMBER,
      3       job          VARCHAR2 (30),
      4       CONSTRAINT job_id_fk FOREIGN KEY (employee_id) REFERENCES employee_tbl (employee_id))
      5  /
    Table created.
    SCOTT@orcl_11g> BEGIN
      2    INSERT INTO employee_tbl VALUES
      3        (1, 'Adam', NULL, NULL, NULL, NULL, NULL);
      4    INSERT INTO employee_tbl VALUES
      5        (2, 'Bob', NULL, NULL, NULL, NULL, NULL);
      6    INSERT INTO employee_tbl VALUES
      7        (3, 'Charles', NULL, NULL, NULL, NULL, NULL);
      8    INSERT INTO employee_tbl VALUES
      9        (4, 'David', NULL, NULL, NULL, NULL, NULL);
    10    INSERT INTO skills VALUES (1, 'OTHERS');
    11    INSERT INTO skills VALUES (2, '.NET');
    12    INSERT INTO skills VALUES (3, 'OTHERS');
    13    INSERT INTO skills VALUES (4, '.NET');
    14    INSERT INTO jobs   VALUES (1, '.NET');
    15    INSERT INTO jobs   VALUES (2, 'OTHERS');
    16    INSERT INTO jobs   VALUES (3, '.NET');
    17    INSERT INTO jobs   VALUES (4, '.NET');
    18  END;
    19  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE OR REPLACE PROCEDURE resume
      2    (p_rowid IN     ROWID,
      3       p_clob     IN OUT CLOB)
      4  AS
      5  BEGIN
      6    FOR e IN
      7        (SELECT employee_id,
      8             employee_id || ' ' || fname || ' ' || lname || ' ' || dob || ' '
      9             || city || ',     ' || state AS personal
    10         FROM      employee_tbl
    11         WHERE  ROWID = p_rowid)
    12    LOOP
    13        DBMS_LOB.WRITEAPPEND (p_clob, 10, '<PERSONAL>');
    14        DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (e.personal), e.personal);
    15        DBMS_LOB.WRITEAPPEND (p_clob, 11, '</PERSONAL>');
    16        DBMS_LOB.WRITEAPPEND (p_clob, 8, '<SKILLS>');
    17        FOR s IN (SELECT skill FROM skills WHERE employee_id = e.employee_id) LOOP
    18          DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (s.skill) + 1, s.skill || ' ');
    19        END LOOP;
    20        DBMS_LOB.WRITEAPPEND (p_clob, 9, '</SKILLS>');
    21        DBMS_LOB.WRITEAPPEND (p_clob, 12, '<JOBHISTORY>');
    22        FOR j IN (SELECT job FROM jobs WHERE employee_id = e.employee_id) LOOP
    23          DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (j.job) + 1, j.job || ' ');
    24        END LOOP;
    25        DBMS_LOB.WRITEAPPEND (p_clob, 13, '</JOBHISTORY>');
    26    END LOOP;
    27  END resume;
    28  /
    Procedure created.
    SCOTT@orcl_11g> SHOW ERRORS
    No errors.
    SCOTT@orcl_11g> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('your_datastore', 'USER_DATASTORE');
      3    CTX_DDL.SET_ATTRIBUTE ('your_datastore', 'PROCEDURE', 'resume');
      4    CTX_DDL.CREATE_SECTION_GROUP ('your_sec_group', 'XML_SECTION_GROUP');
      5    CTX_DDL.ADD_FIELD_SECTION ('your_sec_group', 'PERSONAL', '<PERSONAL>', TRUE);
      6    CTX_DDL.ADD_FIELD_SECTION ('your_sec_group', 'SKILLS', '<SKILLS>', TRUE);
      7    CTX_DDL.ADD_FIELD_SECTION ('your_sec_group', 'JOBHISTORY', '<JOBHISTORY>', TRUE);
      8  END;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE INDEX resume_idx ON employee_tbl (dummy_column)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE     your_datastore
      5        SECTION GROUP     your_sec_group
      6        STOPLIST     CTXSYS.EMPTY_STOPLIST')
      7  /
    Index created.
    SCOTT@orcl_11g> CREATE OR REPLACE FUNCTION list_element
      2    (p_string     VARCHAR2,
      3       p_element    INTEGER,
      4       p_separator  VARCHAR2 DEFAULT ':')
      5    RETURN          VARCHAR2
      6  AS
      7    v_string      VARCHAR2 (32767);
      8  BEGIN
      9    v_string := p_separator || p_string || p_separator;
    10    v_string := SUBSTR (v_string, INSTR (v_string, p_separator, 1, p_element) + LENGTH (p_separator));
    11    RETURN SUBSTR (v_string, 1, INSTR (v_string, p_separator) - 1);
    12  END list_element;
    13  /
    Function created.
    SCOTT@orcl_11g> SELECT * FROM employee_tbl ORDER BY employee_id
      2  /
    EMPLOYEE_ID FNAME   LNAME   DOB       CITY      ST D
              1 Adam
              2 Bob
              3 Charles
              4 David
    SCOTT@orcl_11g> SELECT * FROM skills ORDER BY employee_id
      2  /
    EMPLOYEE_ID SKILL
              1 OTHERS
              2 .NET
              3 OTHERS
              4 .NET
    SCOTT@orcl_11g> SELECT * FROM jobs ORDER BY employee_id
      2  /
    EMPLOYEE_ID JOB
              1 .NET
              2 OTHERS
              3 .NET
              4 .NET
    SCOTT@orcl_11g> COLUMN ixv_value    FORMAT A26
    SCOTT@orcl_11g> COLUMN from_section FORMAT A15
    SCOTT@orcl_11g> SELECT ixv_value,
      2           list_element (ixv_value, 1) AS from_section,
      3           TO_NUMBER (list_element (ixv_value, 3)) AS token_type
      4  FROM   ctx_user_index_values
      5  WHERE  ixv_index_name = 'RESUME_IDX'
      6  AND    ixv_class = 'SECTION_GROUP'
      7  /
    IXV_VALUE                  FROM_SECTION     TOKEN_TYPE
    SKILLS:SKILLS:17:Y         SKILLS                   17
    PERSONAL:PERSONAL:16:Y     PERSONAL                 16
    JOBHISTORY:JOBHISTORY:18:Y JOBHISTORY               18
    SCOTT@orcl_11g> COLUMN token_info FORMAT A30 WORD_WRAPPED
    SCOTT@orcl_11g> SELECT token_text, token_type, token_first, token_last, token_count
      2  FROM   dr$resume_idx$i
      3  WHERE  token_text = 'NET'
      4  /
    TOKEN_TEXT       TOKEN_TYPE TOKEN_FIRST TOKEN_LAST TOKEN_COUNT
    NET                       0           1          4           4
    NET                      17           2          4           2
    NET                      18           1          4           3
    SCOTT@orcl_11g> -- problem:
    SCOTT@orcl_11g> SELECT t.employee_id, t.fname,
      2           SCORE (1),
      3           list_element (v.ixv_value, 1) AS from_section
      4  FROM   employee_tbl t, dr$resume_idx$i i, dr$resume_idx$k k, ctx_user_index_values v
      5  WHERE  CONTAINS (t.dummy_column, '.NET%', 1) > 0
      6  AND    i.token_text = 'NET'
      7  AND    i.token_type = TO_NUMBER (list_element (v.ixv_value, 3))
      8  AND    k.docid BETWEEN i.token_first AND i.token_last
      9  AND    k.textkey = t.ROWID
    10  ORDER  BY t.employee_id
    11  /
    EMPLOYEE_ID FNAME     SCORE(1) FROM_SECTION
              1 Adam             3 JOBHISTORY
              2 Bob              3 JOBHISTORY
              2 Bob              3 SKILLS
              3 Charles          3 SKILLS
              3 Charles          3 JOBHISTORY
              4 David            6 JOBHISTORY
              4 David            6 SKILLS
    7 rows selected.
    SCOTT@orcl_11g> -- alternative solution:
    SCOTT@orcl_11g> CREATE OR REPLACE FUNCTION from_section
      2    (p_emp_id IN VARCHAR2,
      3       p_text      IN VARCHAR2,
      4       p_rowid  IN ROWID)
      5    RETURN VARCHAR2
      6  AS
      7       hightab   ctx_doc.highlight_tab;
      8       v_clob       CLOB;
      9       v_clob2   CLOB;
    10       v_section VARCHAR2 (32767);
    11       v_result  VARCHAR2 (32767);
    12  BEGIN
    13    CTX_DOC.HIGHLIGHT ('resume_idx', p_emp_id, p_text, hightab, FALSE);
    14    DBMS_LOB.CREATETEMPORARY (v_clob, TRUE);
    15    DBMS_LOB.CREATETEMPORARY (v_clob2, TRUE);
    16    resume (p_rowid, v_clob);
    17    FOR i IN 1 .. hightab.COUNT LOOP
    18        v_clob2 := SUBSTR (v_clob, 1, hightab(i).offset);
    19        v_clob2 := SUBSTR (v_clob2, 1, INSTR (v_clob2, '>', -1) - 1);
    20        v_section := SUBSTR (v_clob2, INSTR (v_clob2, '<', -1) + 1);
    21        v_result := v_result || ',' || v_section;
    22    END LOOP;
    23    DBMS_LOB.FREETEMPORARY (v_clob);
    24    DBMS_LOB.FREETEMPORARY (v_clob2);
    25    RETURN LTRIM (v_result, ',');
    26  END from_section;
    27  /
    Function created.
    SCOTT@orcl_11g> SHOW ERRORS
    No errors.
    SCOTT@orcl_11g> COLUMN from_section FORMAT A60 WORD_WRAPPED
    SCOTT@orcl_11g> SELECT t.employee_id, t.fname, SCORE (1),
      2           from_section (employee_id, '.NET%', ROWID) AS from_section
      3  FROM   employee_tbl t
      4  WHERE  CONTAINS (t.dummy_column, '.NET%', 1) > 0
      5  ORDER  BY t.employee_id
      6  /
    EMPLOYEE_ID FNAME     SCORE(1) FROM_SECTION
              1 Adam             3 JOBHISTORY
              2 Bob              3 SKILLS
              3 Charles          3 JOBHISTORY
              4 David            6 SKILLS,JOBHISTORY
    SCOTT@orcl_11g>

  • SECTION GROUP trouble!!!

    I have Oracle 8.1.6 with Russian language.
    I've created my own section group based on BASIC_SECTION_GROUP with following sections:
    DESCRIPTION (type zone)
    TITLE (type zone)
    PID (type zone)
    For example, I write XML as CLOB:
    <PRODUCT><DESCRIPTION>cool book</DESCRIPTION><TITLE>book</TITLE><PID>bg12</PID></PRODUCT>
    When I search, for example, 'book' WITHIN DESCRIPTION, it's allright. But when I'm trying to search it WHITHIN TITLE, I have no results.
    Search is allright only in first section.
    Have anybody any idea?

    I have Oracle 8.1.6 with Russian language.
    I've created my own section group based on BASIC_SECTION_GROUP with following sections:
    DESCRIPTION (type zone)
    TITLE (type zone)
    PID (type zone)
    For example, I write XML as CLOB:
    <PRODUCT><DESCRIPTION>cool book</DESCRIPTION><TITLE>book</TITLE><PID>bg12</PID></PRODUCT>
    When I search, for example, 'book' WITHIN DESCRIPTION, it's allright. But when I'm trying to search it WHITHIN TITLE, I have no results.
    Search is allright only in first section.
    Have anybody any idea?

  • Content has been indexed with Info only. Resubmit should only be performed

    Hi All,
    Im using the Oracle Content Server (OCS) , When im trying to checkin new document then i get the below mentioned error message can any one plz tell me that what is the problem.
    Error Message:_
    Text conversion of the file failed.
    Content has been indexed with Info only. Resubmit should only be performed if the problem has been resolved.
    Text conversion of the file '//awusrp04/PortalStg/oracle/inetucmstg/weblayout/groups/public/@enterprise/@hr/documents/document/s_013020.pdf' failed.
    **Content has been indexed with Info only. Resubmit should only be performed if the problem has been resolved.      **

    Hello Experts,
    I am Facing the Same Issue, anybody know the solution for the same?
    Thanks in Advance.

  • How to integrate Oracle Tutor Desk manual Index with Oracle ApplicationsR12

    Hi,
    I have created a desk manual Index and related HTML files in oracle Tutor 14. Can anyone help me in integrating the desk manual index with the Oracle Applications Help.
    My questions are:
    -> In what top shd i upload my files using help Upload ?
    -> How do i integrate the desk manual index HTML file with my applications help?
    Has anyone done this before . If so , Can u please guide me through the process.
    Thanks.
    Edited by: Vyas on Apr 8, 2012 12:52 AM

    Here are some instructions - please let me know if this is what you are looking for.
    Kind Regards,
    Emily
    -> In what top shd i upload my files using help Upload ?
    Create Upload and Download Directories on Middle Tier.
         The download path must be a location on the machine that hosts the Application Server - ie, the "middle tier". Directories for the upload (for example, /u01/tutor/upload) and download (for example, /u01/tutor/download) functions must be created on the middle tier.
         ***These directories, as well as any future subdirectories, must have full read/write/execute permissions. The Help Utility will automatically create subdirectories, so the permissions must be set correctly before the Help Utility is used.
         Verify that the HELP_UTIL_DOWNLOAD_DIR directory points to a directory that can be accessed from both the JServ tier and the Concurrent Manager tier.
    From the EBS
    EBS R12 System Administrator > Profile > System > Find System Profile Values
    - Verify Site is checked
    - Verify Profiles with No Values is checked
    - In the profile field, enter %help%
    - Click Find button
    Update system profile values with the correct paths.For example:
         Help Utility Download Path > /u01/tutor/download OR /dbfiles/applcsf/outbound
         Help Utility Upload Path > /u01/tutor/upload OR /dbfiles/applcsf/inbound
         Help System Root > FND:LIBRARY
         TCF:Host > http://<hostname.domainname>
         TCF:Port > <port number>
    -> How do i integrate the desk manual index HTML file with my applications help?
    Use Help Builder to add the DESK_MANUAL_INDEX to the Help Tree
    To learn all the features about customizing Help Navigation Trees, refer to the Oracle Applications System Administration User Guide.
    EBS R12 System Administration > Help Administration > Help Builder
    When Help Builder first opens it may appear as a tiny screen in the upper left corner, if this happens, maximize the screen. You may also have to resize the screen as you may see the entire screen at first.
    - Enter FND in the Node Application field.
    - Press the Find button on the Find Trees Window.
    This should bring the Trees tab region forward with a list of available trees.
    - Scroll down and find FND | US | Applications Help Library in the Trees tab
    - Select and double click on it.
    This will open the Applications Help Library tree in the left frame
    - Expand the Application Help Library by clicking on the + next to it.
    - Click the New Node icon on the toolbar.
    - Enter the following information in Properties window.
    The next items assume the default Desk Manual Index terminology is used.
    If your organization uses or plans to use different terms, adjust the entries in the various properties field accordingly.
         Prompt: Desk Manual Index
         Description: Desk Manual Index
         Data: @DESK_MANUAL_INDEX
    Or enter the exact Desk Manual Index file name if it is different than the example.
    - Click the View button to verify the link works.
    You may have to experiment with using the @ sign. It may not be required.
         Click the Apply button.
    The Desk Manual Index will now appear as a Node under the Application Help Library. If the name is NOT fully displayed, click on the - (minus) sign to expand it.
    Link does not work
    - Change the information in the Data field.
    - Delete the @ and add .htm extension
    Example: DESK_MANUAL_INDEX.htm
    - Click the View button to verify the link works.
    - Click on the Save icon.

  • Group mode with 600 rt problem

    Having trouble with the 600 rt in group mode. I have two 600 rt's and a 5d mk3....I have been trying to use these in group mode with limited success. I was trying to use the groups in ettl mode. My on camera flash is the master and the off camera is set to group B. I adjust the master flash compensation right on the camera control. I kept it at no compensation...now I adjust the compensation on the slave via the master flash panel....it took almost two neg stops to keep it from blowing out the subject which is a white bowl. It definitely does dial down the slave....but the settings never actually show up as changed on the back of the slave lcd. When I set the slave to manual mode and change the settings...they DO change on the back of its lcd...is this normal?

    Hello, Mark.
    i've the results:
    SQL> conn system/***@vega92
    Connected.
    SQL> select * from owbrt_sys.owbrtps;
    KEY VALUE
    9.0.4.10.3 c:\oracle\OraWB904
    and other
    SQL> conn system/[email protected]
    Connected.
    SQL> select * from owbrt_sys.owbrtps;
    KEY VALUE
    9.0.4.8.21 D:\Oracle\OraOWB904
    but patch
    Upgrade Runtime Repository and Runtime Schema users from 9.0.4.8.21 or 9.0.4.10.0 to 9.0.4.10.3
    a) Connect to OWB 9.0.4 Runtime Repository using SQL*Plus
    b) Stop the Runtime Platform Service by issuing the following
    SQL> @<OWB_Home>\owb\rtp\sql\stop_service.sql
    c) Connect as SYS user using SQL*Plus
    d) Upgrade the runtime by issuing the following
    SQL> @<OWB_Home>\owb\patches\904103upg_rt.sql
    e) Connect to OWB 9.0.4 Runtime repository using SQL*Plus
    f) Start the Runtime Platform Service by issuing the following
    SQL> @<OWB_Home>\owb\rtp\sql\start_service.sql
    retutns
    Total 0 user(s) have been upgraded.
    What need I to do?
    Thanks, Grigoriy

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

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

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

Maybe you are looking for

  • Problem with posting write-ups in ABZU

    Hello, May I ask for your help on my concern about transaction ABZU? My asset was capitalized on 31.03.2009 and it has depreciated until last month. I would like to delete this asset because it should not have been recognized as ana sset, so my first

  • Can't modify or change song information or add artwork.

    I have been having trouble with iTunes since updating to the latest version. I keep my music on an external drive due to the library size. I had to create a separate iTunes folder and music folder to keep on the external drive. I also had to manually

  • How to batch add links in contents?

    Recenly I purchased an ebook (pdf version) without any bookmarks. It only contains a table of contents showing headings and the corresponding page number. I would like to link the words in contents to that page. I have tried adding the link one by on

  • Extra fonts in the JVM

    I am programming an applet, where the user can input a string in an input box and then from a drop down menu select a font. Something a little similar to http://javaboutique.internet.com/aFont/. My problem is, that on my JVM for example, there are on

  • Data Deletion from PSA Tables

    Hi,   I deleted 2 failed requests (10000000 Records) from PSA Tables because of the disk space issue for our BW System. RSA1—PSA –DELETE PSA DATA – The requests are deleted from the PSA, In BW in can see that there not requests in that particular PSA