Creating index  at the end

I am new to Reports 6i
How do I print the index at the end of a report (group above or group left). What I want is the key field and the starting page number. Thanks.

hello,
there is no built-in functionality for that. what you can do, is use a combination of a format-trigger and a temporary database table that stores the keys and the starting page and then create a layout for this in the trailer-section of your report.
regards,
the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Why should we create index on  the table after inserting data ?

    Please tell me the Reason, why should we create index on the table after inserting data .
    while we can also create index on the table before insertion of the data.

    The choice depends on a number of factors, the main being how many rows are going to be inserted in the table as a percentage of the existing rows, or the percentage growth.
    Creating index after a table has been populated works better when the tables are large or the inserts are large for the following reasons
    1. The sort and creation of index is more efficient when done in batch and written in bulk. So works faster.
    2. When the index is being written blocks get acquired as more data gets written. So, when a large number of rows get inserted in a table that already has an index , the index data blocks start splitting / chaining. This increases the "depth" of the inverted b-tree makes and that makes the index less efficient on I/O. Creating index after data has been inserted allows Orale to create optical block distribution/ reduce splitting / chaining
    3. If an index exists then it too is routed through the undo / redo processes. Thats an overhead which is avoided when you create index after populating the table.
    Regards

  • How to create message at the end of the process chain

    Hi friends,
    I have created process chains. It's working fine. But I wanted to create message to give alert if process failure.
    My requirement is if any process failure due to any reason message has to receive to the responsible person. I'm not sure how to do this.
    Can anybody suggest how to do this if possible step by step.
    Thanks & Regards
    Siri

    Hi,
    Genarally, you can create a message, by right click and create message then give email ids in Maintain Recipent list (Recipt type = via internet) and then give message that you want to send in Edit Document.
    Check whether the email address is maintained in SU01 in address tab.
    Configure SMTP server is set up properly ( SCOT). Ask basis team to do it.
    There is also other option to send the mail through program, for this you need to trigger any event or you can insert this program at teh end of the process chain.
    *& Report ZTEST_FM_MAIL
    REPORT ztest_fm_mail.
    DATA : is_doc_chng TYPE sodocchgi1,
    it_objtxt TYPE STANDARD TABLE OF solisti1,
    is_objtxt TYPE solisti1,
    it_objpack TYPE STANDARD TABLE OF sopcklsti1,
    is_objpack TYPE sopcklsti1,
    it_objbin TYPE STANDARD TABLE OF solisti1,
    is_objbin TYPE solisti1,
    it_reclist TYPE STANDARD TABLE OF somlreci1,
    is_reclist TYPE somlreci1,
    w_lines_tx TYPE i.
    Create Message Body
    Title and Description
    *is_doc_chng-obj_name = 'MAIL'.
    is_doc_chng-obj_descr = 'Auto genareted Mail'.
    main text
    is_objtxt-line = 'This is an automatically generated mail. Please do not reply to it.'(028).
    APPEND is_objtxt TO it_objtxt.
    is_objtxt-line = space.
    APPEND is_objtxt TO it_objtxt.
    write packing list (main)
    DESCRIBE TABLE it_objtxt LINES w_lines_tx.
    READ TABLE it_objtxt INTO is_objtxt INDEX w_lines_tx.
    is_doc_chng-doc_size = ( w_lines_tx - 1 ) * 255 + STRLEN( is_objtxt ).
    CLEAR is_objpack-transf_bin.
    is_objpack-head_start = 1.
    is_objpack-head_num = 0.
    is_objpack-body_start = 1.
    is_objpack-body_num = w_lines_tx.
    is_objpack-doc_type = 'RAW'.
    APPEND is_objpack TO it_objpack.
    is_reclist-receiver = 'your email id'.
    is_reclist-rec_type = 'U'.
    APPEND is_reclist TO it_reclist.
    CLEAR is_reclist.
    *This is for SAP system mail box
    *is_reclist-receiver = 'your system login ID'.
    *is_reclist-rec_type = 'B'.
    *APPEND is_reclist TO it_reclist.
    *CLEAR is_reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = is_doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    TABLES
    packing_list = it_objpack
    contents_txt = it_objtxt
    receivers = it_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Thanks
    Reddy
    Edited by: Surendra Reddy on Nov 18, 2008 5:36 AM

  • Things to consider while Creating Indexes in the tables

    Hi All,
    We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those tables. What are different things need to check to design the Indexes?
    Thanks
    Swapna

    Hi All,
    We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those tables. What are different things need to check to design the Indexes?
    Thanks
    Swapna
    Adding to what others have said create an index and check execution plan whether it is being used by optimizer or not if it is used and query runs fast that index can be kept
    You should also take help of DMV
    sys.dm_index_usage_stats to see whether index is being utilized or not. refer to user seek user update and user scan col. If Update is very much greater that seek/scan index is probably not utilized , you can consider removing it
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Create index for the NVARCHAR Datatype columns.

    We have facing problem with NVARCHAR datatype columns during the select with WHERE condition . The Index is not getting used even though index is available. Oracle takes FULL table Scan only .
    For Eg:
    Table created with ITEM_NO as NVARCHAR2(100). and we have create normal index on ITEM_NO
    When I capture the run time sql from the v$session and checked SQL plan it show FULL Table scan.Sql is as below
    SELECT col1, col2, col3 from table x
    WHERE ITEM_NO=N'123'
    If ithe abvove sql is changed as below .It takes the Index
    SELECT col1, col2, col3 from table x
    WHERE ITEM_NO='123'
    Can any one advise why this behaviour is happing
    Regards
    Chandrasekar

    the second statement is transformed to <convert to varchar2>(item_no)='123'.
    This means Oracle can't take the index as there is a function on the indexed column.
    This is likely version-dependent, reason why you always, really always need to specify your four digit version
    Solution: always use N'<hardcoded literal'.
    Sybrand Bakker
    Senior Oracle DBA

  • Create User from the end user pages

    I tried to create a user from a end user page and I get this error:
    com.waveset.util.WavesetException: WorkflowServices.provision: no view
    Anybody knows where the error is?
    Thanks!
    My workflow:
    <!-- MemberObjectGroups="#ID#Top" createDate="Wed May 30 10:36:29 CEST 2007" extensionClass="WFProcess" id="#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FDA" name="PRUEBA" visibility="runschedule"-->
    <TaskDefinition id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FDA' name='PRUEBA' lock='Configurator#1181667176671' creator='Configurator' createDate='1180514189312' lastModifier='Configurator' lastModDate='1181666876671' lastMod='129' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
    <Extension>
    <WFProcess name='PRUEBA' maxSteps='0'>
    <Activity id='0' name='start'>
    <Transition to='activity1'/>
    <WorkflowEditor x='88' y='120'/>
    </Activity>
    <Activity id='1' name='end'>
    <WorkflowEditor x='457' y='89'/>
    </Activity>
    <Activity id='2' name='activity1'>
    <ManualAction id='0' name='prueba' syncExec='true' itemType='wizard'>
    <WorkItemName>
    <ref>probando voy</ref>
    </WorkItemName>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5' name='PRUEBAForm'/>
    </FormRef>
    </ManualAction>
    <Transition to='Create View'/>
    <WorkflowEditor x='177' y='266'/>
    </Activity>
    <Activity id='3' name='Provision'>
    <Action id='0' process='Provision'>
    <Variable name='op' value='provision'/>
    </Action>
    <Transition to='end'/>
    <WorkflowEditor x='380' y='305'/>
    </Activity>
    <Activity id='4' name='Create View'>
    <Comments>Initialize a new view.</Comments>
    <Action id='0' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='createView'/>
    <Argument name='type' value='User'/>
    <Argument name='viewId' value='User'/>
    </Action>
    <Transition to='Provision'/>
    <WorkflowEditor x='247' y='416'/>
    </Activity>
    </WFProcess>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='PRUEBA'/>
    </Properties>
    </TaskDefinition>

    Hi gvivek99,
    I have put a link in the �Anonymous User Menu�
    <Field name='Test'>
      <Display class='Link'>
        <Property name='URL' value='user/anonProcessLaunch.jsp?newView=true'/>
        <Property name='id' value='PRUEBA'/>
      </Display>
    </Field>This link start "PRUEBA" Workflow (see my first post).
    This workflow call a ManualAction and open PRUEBAForm. In this form I request the accountID, firstname and lastname. But when I submit it, I get the next error:
    com.waveset.util.WavesetException: WorkflowServices.provision: no view
    <!--  MemberObjectGroups="#ID#Top" extensionClass="Form" id="#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5" lastMod="247" lastModifier="Configurator" name="PRUEBAForm"-->
    <Configuration id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5' name='PRUEBAForm' lock='Configurator#1182147751359' creator='Configurator' createDate='1180518677968' lastModifier='Configurator' lastModDate='1182147451343' lastMod='247' wstype='UserForm'>
      <Extension>
        <Form name='PRUEBAForm' noDefaultButtons='true' objectLocationID='objectName=PRUEBAForm&isBegin=true&objectPath=0&objectType=UserForm'>
          <Display class='EditForm'/>
          <Field name='waveset.accountId'>
            <Display class='Text'>
              <Property name='title' value='_FM_ACCOUNT_ID'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
              <Property name='required'>
                <Boolean>true</Boolean>
              </Property>
            </Display>
          </Field>
          <Field name='global.firstname'>
            <Display class='Text'>
              <Property name='title' value='_FM_FIRSTNAME'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
            </Display>
          </Field>
          <Field name='global.lastname'>
            <Display class='Text'>
              <Property name='title' value='_FM_LASTNAME'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
              <Property name='noNewRow' value='true'/>
            </Display>
          </Field>
          <Field name='global.fullname'>
            <Expansion>
              <cond>
                <and>
                  <ref>global.firstname</ref>
                  <ref>global.lastname</ref>
                </and>
                <concat>
                  <ref>global.firstname</ref>
                  <s> </s>
                  <ref>global.lastname</ref>
                </concat>
              </cond>
            </Expansion>
          </Field>
          <Field name='nextCancelButtons'>
            <Field name=':variables.formButton' button='true'>
              <Display class='Button'>
                <Property name='label' value='Next'/>
                <Property name='value' value='Submit'/>
                <Property name='command' value='Save'/>
              </Display>
            </Field>
            <Field name=':variables.formButton' button='true'>
              <Display class='Button'>
                <Property name='label' value='Cancel'/>
                <Property name='value' value='Cancel'/>
                <Property name='command' value='SaveNoValidate'/>
              </Display>
            </Field>
            <Field name=':complete'>
              <Default>
                <s>true</s>
              </Default>
            </Field>
          </Field>
        </Form>
      </Extension>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
      <Properties>
        <Property name='editorOriginalName' value='PRUEBAForm'/>
      </Properties>
    </Configuration>Thanks

  • Problems of Creating Indexes in the ProcessChain

    Hi, Experts!
    When I dragged the infopackage of updating data into InfoCube, there are two deleting index processes comes out,one is deleting index with InfoCubes, the other one is deleting index with InfoPackages.
    Then the question comes: what the difference between the two processes? Do I need to have the two processes in the process chain at the same time?
    Does anyone help me?
    Thx in advance!

    Hi,Siggi !
    Thank you!
    But what the diffence between them?
    Does the ODS attribute to the problem?
    Are there any problems if i take the two together?
    Could please give me some more info?

  • Dbms_metadata.get_ddl returns unusable create index statement

    Hello everybody,
    I'm trying to write a procdeure that automatically deletes all duplicate record and rebuild all table indexes after an sqlldr load with direct path.
    In short the procdeure indentifies the indexes, read them using dbms_metadata.get_ddl('INDEX', 'IDX_UNIQUE_TEST') drops them, deletes the duplicated records and then recreates the indexes.
    However after the sqlldr, get_ddl function returns the following result:
    CREATE UNIQUE INDEX "MYUSER"."IDX_UNIQUE_TEST" ON "EDWH"."FOREX_ORD_PRC_INTRADAY" "C_ORD_TYP", "C_ORD", "D_INI_VAL", "C_PRC_TYP")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "MYTABLESPACE"
    ALTER INDEX "MYUSER"."IDX_UNIQUE_TEST"  UNUSABLE
    As you can see there is an ALTER INDEX at the end that makes the whole statement invalid.
    Has anyone already seen that? I've tried to google it but with no chance. Help with this would really be appreciated.
    Thanks in advance
    Ross

    Mmh, yes it is unusable before the get_ddl, but how comes it returns both the create index and the alter index unusable statements?
    I've tried to make the index unusable with the alter index ... unusable statement but get_ddl still returned the create index only.
    I'm guessing that production server (10.2.0.4.0) is behaving differently from test machine (9.2.0.4.0). Any idea on that?
    Ross

  • Creating Indexes within an XMLType column

    Hi,
    I have following XML document stored as XMLType column,
    <ocaStatus xmlns="http://xmlbeans.apache.org/ocastatus"><status><statusCode>934</statusCode><statusDate>Wed Apr 07 16:05:53 GMT+05:30 2010</statusDate><userId>u0121845</userId><comment>Sent to LTC</comment></status><status><statusCode>934</statusCode><statusDate>Wed Apr 07 15:58:25 GMT+05:30 2010</statusDate><userId>u0121845</userId><comment>Sent to LTC</comment></status><status><statusCode>934</statusCode><statusDate>Wed Apr 07 15:54:02 GMT+05:30 2010</statusDate><userId>u0121845</userId><comment>Sent to LTC</comment></status><status><statusCode>750</statusCode><statusDate>2010-03-31 12:39:41.580 GMT+05:30</statusDate><userId>u0121845</userId><comment>Document Metadata is correct.</comment></status><status><statusCode>934</statusCode><statusDate>2010-03-31 12:39:41.580 GMT+05:30</statusDate><userId>u0121845</userId><comment>Sent to LTC</comment></status><status><statusCode>932</statusCode><statusDate>2010-03-31 12:39:41.580 GMT+05:30</statusDate><userId>u0121845</userId><comment>Loaded to Novus</comment></status><status><statusCode>700</statusCode><statusDate>2010-03-31 12:39:41.580 GMT+05:30</statusDate><userId>u0121845</userId><comment>Document is deleted from OCA.</comment></status></ocaStatus>
    I created following Indexes within the XML,
    CREATE INDEX "OCA_DEV"."OCA_STATUS_CODE_INDEX" ON "OCA_DEV"."DOCUMENT_STATUS_XML" (EXTRACTVALUE('/ocaStatus/status/statusCode'));
    CREATE INDEX "OCA_DEV"."OCA_STATUS_DATE_INDEX" ON "OCA_DEV"."DOCUMENT_STATUS_XML" (EXTRACTVALUE('/ocaStatus/status/statusDate'));
    However the problem is that I will be having multiple status within each XML which violates the Indexing.
    Is there any way I can still create the Indexes allowing multiple status values in each XML?
    Thanks in advance.

    Hi,
    You may want to store your document as a schema-based, object-relational XMLType to achieve that.
    Then you'll be able to create indexes on the nested table used to store each "status" element.
    Here's an example based on your sample document.
    1) First, create and register a schema. The following is basic but sufficient here, let's call it "ocastatus.xsd" :
    <?xml version="1.0"?>
    <xsd:schema
    targetNamespace="http://xmlbeans.apache.org/ocastatus"
    xmlns="http://xmlbeans.apache.org/ocastatus"
    elementFormDefault="qualified"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb">
    <xsd:element name="ocaStatus" type="OCASTATUS_TYPEType"/>
    <xsd:complexType name="OCASTATUS_TYPEType" xdb:SQLType="OCASTATUS_TYPE">
      <xsd:sequence>
       <xsd:element name="status" type="STATUS_TYPEType" xdb:SQLName="status" maxOccurs="unbounded" xdb:SQLCollType="STATUS_V"/>
      </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="STATUS_TYPEType" xdb:SQLType="STATUS_TYPE">
      <xsd:sequence>
       <xsd:element name="statusCode" type="xsd:double" xdb:SQLName="statusCode" xdb:SQLType="NUMBER"/>
       <xsd:element name="statusDate" xdb:SQLName="statusDate" xdb:SQLType="VARCHAR2">
        <xsd:simpleType>
         <xsd:restriction base="xsd:string">
          <xsd:maxLength value="50"/>
         </xsd:restriction>
        </xsd:simpleType>
       </xsd:element>
       <xsd:element name="userId" xdb:SQLName="userId" xdb:SQLType="VARCHAR2">
        <xsd:simpleType>
         <xsd:restriction base="xsd:string">
          <xsd:maxLength value="50"/>
         </xsd:restriction>
        </xsd:simpleType>
       </xsd:element>
       <xsd:element name="comment" xdb:SQLName="comment" xdb:SQLType="VARCHAR2">
        <xsd:simpleType>
         <xsd:restriction base="xsd:string">
          <xsd:maxLength value="100"/>
         </xsd:restriction>
        </xsd:simpleType>
       </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>Registering...
    BEGIN
    dbms_xmlschema.registerSchema(
      schemaURL => 'ocastatus.xsd',
      schemaDoc => xmltype(bfilename('XSD_DIR','ocastatus.xsd'), nls_charset_id('AL32UTF8')),
      genTypes => true,
      genTables => false
    END;2) Table definition :
    CREATE TABLE oca_status (
      num NUMBER,
      doc XMLTYPE
      XMLTYPE doc STORE AS OBJECT RELATIONAL
       XMLSCHEMA "ocastatus.xsd"
       ELEMENT "ocaStatus"
       VARRAY doc.xmldata."status" STORE AS TABLE oca_status_tab
    CREATE INDEX oca_status_tab_idx1 ON oca_status_tab("statusCode");
    CREATE INDEX oca_status_tab_idx2 ON oca_status_tab("statusDate");3) Inserting document...
    INSERT INTO oca_status (num, doc)
    VALUES(1, xmltype('<ocaStatus xmlns="http://xmlbeans.apache.org/ocastatus">
      <status>
        <statusCode>934</statusCode>
        <statusDate>Wed Apr 07 16:05:53 GMT+05:30 2010</statusDate>
        <userId>u0121845</userId>
        <comment>Sent to LTC</comment>
      </status>
      <status>
        <statusCode>934</statusCode>
        <statusDate>Wed Apr 07 15:58:25 GMT+05:30 2010</statusDate>
        <userId>u0121845</userId>
        <comment>Sent to LTC</comment>
      </status>
      <status>
        <statusCode>934</statusCode>
        <statusDate>Wed Apr 07 15:54:02 GMT+05:30 2010</statusDate>
        <userId>u0121845</userId>
        <comment>Sent to LTC</comment>
      </status>
      <status>
        <statusCode>750</statusCode>
        <statusDate>2010-03-31 12:39:41.580 GMT+05:30</statusDate>
        <userId>u0121845</userId>
        <comment>Document Metadata is correct.</comment>
      </status>
      <status>
        <statusCode>934</statusCode>
        <statusDate>2010-03-31 12:39:41.580 GMT+05:30</statusDate>
        <userId>u0121845</userId>
        <comment>Sent to LTC</comment>
      </status>
      <status>
        <statusCode>932</statusCode>
        <statusDate>2010-03-31 12:39:41.580 GMT+05:30</statusDate>
        <userId>u0121845</userId>
        <comment>Loaded to Novus</comment>
      </status>
      <status>
        <statusCode>700</statusCode>
        <statusDate>2010-03-31 12:39:41.580 GMT+05:30</statusDate>
        <userId>u0121845</userId>
        <comment>Document is deleted from OCA.</comment>
      </status>
    </ocaStatus>')
    );Verifying index use (XPath rewrite) ...
    SQL> EXPLAIN PLAN FOR
      2  SELECT * from oca_status x
      3  WHERE existsnode(x.doc, '//status[statusCode="934"]') = 1;
    Explicité.
    SQL> SELECT * FROM TABLE(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1840289382
    | Id  | Operation                     | Name                | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                     |     1 |  7938 |     4  (25)| 00:00:01 |
    |*  1 |  TABLE ACCESS FULL            | OCA_STATUS_TAB      |     1 |  2145 |     4   (0)| 00:00:01 |
    |   2 |  NESTED LOOPS                 |                     |     1 |  7938 |     4  (25)| 00:00:01 |
    |   3 |   SORT UNIQUE                 |                     |     4 |  8580 |     2   (0)| 00:00:01 |
    |   4 |    TABLE ACCESS BY INDEX ROWID| OCA_STATUS_TAB      |     4 |  8580 |     2   (0)| 00:00:01 |
    |*  5 |     INDEX RANGE SCAN          | OCA_STATUS_TAB_IDX1 |     4 |       |     1   (0)| 00:00:01 |
    |   6 |   TABLE ACCESS BY INDEX ROWID | OCA_STATUS          |     1 |  5793 |     1   (0)| 00:00:01 |
    |*  7 |    INDEX UNIQUE SCAN          | SYS_C00243981       |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("NESTED_TABLE_ID"=:B1)
       5 - access("statusCode"=934)
       7 - access("NESTED_TABLE_ID"="X"."SYS_NC0000900010$")
    Note
       - dynamic sampling used for this statement
    25 ligne(s) sélectionnée(s).
    SQL> Regards.

  • Creating indexes

    I've got a database of 100 million triples and I have decided that it is about time I created some indexes.
    Based on the docs I have tried to create indexes similar (except for name) to the following.
    -- Create indexes on the subjects, properties, and objects
    -- in the FAMILY_RDF_DATA table.
    CREATE INDEX family_sub_idx ON family_rdf_data (triple.GET_SUBJECT());
    CREATE INDEX family_prop_idx ON family_rdf_data (triple.GET_PROPERTY());
    CREATE INDEX family_obj_idx ON family_rdf_data (TO_CHAR(triple.GET_OBJECT()));
    The first one ran for two days before giving an error about rollback not big enough.
    Firstly Can you tell me.
    How long you would expect the creation of an index to take?
    Secondly what sort of size do I need the rollback segment to be able do this?
    Thirdly. Is it better to create the indexes before adding data?
    If so what impact will it have on the loading of data?
    Fourthly
    Is it good practice to create a compound index on multiple things as well?
    Cheers
    Phil

    HI There
    I ran the SEM_PERF.GATHER_STATS(); procedure and then redid the timings.
    There is some improvement, but I would be grateful if you could suggest how to optimise the speeds further.
    I have included the new timings below.
    Cheers
    Phil
    -- Tell me what classes are in the db
    SELECT s
    FROM TABLE(SEM_MATCH(
    '(?s rdf:type <http://www.w3.org/2002/07/owl#Class>)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 3 rows 5 secs, 1 millisecs, 1 millisecs
    -- 15 secs, 1 millisecs, 16 millisecs
    -- tell me what datatype properties are in the db
    SELECT s
    FROM TABLE(SEM_MATCH(
    '(?s rdf:type <http://www.w3.org/2002/07/owl#DatatypeProperty>)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 6 rows 203 millisecs, 15 mililsecs, 16 millisecs
    -- 243 millisecs, 16 millisecs, 1 millisecs
    -- Tell me what properties exist for each datatypeproperty
    SELECT s, p, o
    FROM TABLE(SEM_MATCH(
    '(?s rdf:type <http://www.w3.org/2002/07/owl#DatatypeProperty>)
    (?s ?p ?o)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 12 rows 52 secs, 48 secs, 53 secs
    -- 13 secs, 13 secs, 13 secs
    -- Tell me all the object properties int he database
    SELECT s
    FROM TABLE(SEM_MATCH(
    '(?s rdf:type <http://www.w3.org/2002/07/owl#ObjectProperty>)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 2 rows 141 millisecs, 1 mililsecs, 1 millisecs
    -- 141 millisecs, 1 mililsecs, 1 millisecs
    -- Tell me what properties exist for each objectroperty
    SELECT s, p, o
    FROM TABLE(SEM_MATCH(
    '(?s rdf:type <http://www.w3.org/2002/07/owl#ObjectProperty>) (?s ?p ?o)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 2 rows 59 secs, 51 secs, 50 secs
    -- 13 secs, 13 secs, 13 secs
    -- tell me all of the properties for a particular class
    SELECT p, o
    FROM TABLE(SEM_MATCH(
    '(<http://www.ucb-group.com/idac/supplier#Supplier> ?p ?o)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 1 row 49 secs, 48 secs. 48 secs
    -- 12 secs, 12 secs. 12 secs
    -- tell me all the entries for a particular class
    SELECT s
    FROM TABLE(SEM_MATCH(
    '(?s rdf:type <http://www.ucb-group.com/idac/supplier#Supplier>)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 63 rows 16 secs, 1 millisec, 16 millisecs,
    -- 1 secs, 1 millisec, 16 millisecs,
    -- tel me all the properties for an entry
    SELECT p, o
    FROM TABLE(SEM_MATCH(
    '(<http://www.ucb-group.com/idac/supplier#61> ?p ?o)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 7 rows 49 secs, 48 secs, 51 secs
    -- 13 secs, 12 secs, 12 secs
    -- tel me all the properties for an entry with property info included
    SELECT p, o, pp, oo
    FROM TABLE(SEM_MATCH(
    '(<http://www.ucb-group.com/idac/supplier#61> ?p ?o) (?p ?pp ?oo)',
    SEM_Models('INCHIKEY'),
    SEM_Rulebases(NULL),
    SEM_ALIASES(SEM_ALIAS(NULL,NULL)),
    null
    -- 9 rows 1 min 44 secs, 1 min 40 secs, 1 min 43 secs
    -- 25 secs, 28 secs, 25 secs

  • Create Index fail in process chain

    Hi Friends,
    I have a process chain in production system which loads inventory data everyday at 6:00Am.
    2 days back R3 production system failed and the data is not loaded into BI.  It was stopped at Delete Index step. I have started again by selecting Repeat then it worked and the infopackage is also executed successfully.
    After that it is failed at Create index step and giving message " Job cancelled after system exception ERROR_MESSAGE". Till then it is giving same problem everyday.
    Could you guys help me how to solve this and execute the chain successfully.
    Thanks & Regards

    Hi,
    Try to create index for the cube manually i.e got info cube , Right Click -> manage->performance-> perform check index - if red do repair index, if it will not help then create index. After that run it though process chain
    Hope it will resolve your problem.
    Sangita

  • What resources are used for "create index" ?

    In the context of creating an index on a heavily loaded table....
    What Oracle resources are consumed>? Any caches or buffers? Sort files? Temp Tables?
    (trying to speed up an index create)

    Like any other read/write database activities, CREATE INDEX uses blocks in the buffer cache. If your table is large, I would recommend increase your buffer cache.
    No temporary tables is used as far as I know. There are no sort files in Oracle. Temporary tablespace may be used because sorting is generally needed when creating an index, but I am not sure about that.
    When creating a index, Oracle creates a temporary segment in your permanent tablespace: if the CREATE INDEX fails, the temporary segment is removed. If the CREATE INDEX succeeds, the temporary segment is made permanent.
    Message was edited by:
    Pierre Forstmann

  • Problem while creating index for temporary table...

    Hi,
    i have created index for a temporary table and this script should used by multiusers.So when second user connecting to it is giving index i mean object already exists.
    So what i need is when the second user connected the script should create one more index on temporary table.Will sql server provide any random way of creating indexes if the index exists already with that name??
    Thank You,

    Nope..
    SQL Server is cleaver enough to handel this situation.
    When you create a index or constraint on the Temp Table, eventhough the index name is duplicate it will allow.
    But it only possible on temp tables (prefixed with single #).
    To Test this,
    Open Two window,
    Execute the below window on the opened 2 window..
    create table #test
                id int
    Insert Into #test values(1);
    Insert Into #test values(2);
    Create clustered index testindex on #test(id)
    Now you wont get any error on any of the window. Rite?
    To fetch the created index details, execute the below code on any one of the window..
    select * from sysindexes where name like '%test%'
    Now you can see the 2 rows with same indexname but refereing with different table. Yes. all the temp tables (#) will be suffixed with unique number to avoid the object already found error while multiple users connects.
     

  • Creating index

    How do i create indexes for the create table statement below?
    CREATE table Position (PositionID number(20) not null, title nvarchar2(255), SkillSetID number(20),
    TaskSetID number(20), filledByResumeID number(20), filledOnDate nvarchar2(40), description nvarchar2(700),
    totalForceIntegratedMetric nvarchar2(255));
    COMMENT on table Position is 'This is the main table of the Position model. It contains key elements of the position like the associated SkillSet, as well as what Sailor is filling the position.';
    CREATE table financial (PositionID number(20) not null, ID number(20) not null, type nvarchar2(255),
    title nvarchar2(255), value nvarchar2(255), code nvarchar2(255), startDate nvarchar2(40), endDate nvarchar2(40),
    note nvarchar2(700));
    COMMENT on table financial is 'This table specifies all the financial information relevant to the position and its associated jobs, including paygrade, bonuses, incentive pay.';
    ALTER table financial add constraint FKfinancial922884 foreign key (PositionID) references Position;

    How do i create indexes for the create table statement below?Index creation is mostly governed by the way you are going to query these tables. If you know in advance the record population criteria, you can create indexes as per your need.
    Its not possible to point out how indexes should be created based on just the create table statements.
    ALTER table financial add constraint FKfinancial922884 foreign key (PositionID) references Position; Does this statement really work? There are no primary or unique keys defined on Position table that can be referenced (well, at least from what you have posted here).

  • Do ORACLE support indexing on the columns with Hebrew Data

    Hello Forum,
    I was working on an assignment with schemas containing Hebrew Data.
    Can i create indexes on the columns containing Hebrew Language data?
    Thanks
    Priyank Jain

    Varchar2; is something difficult for me. Reason why is I need to make change in my application throughout to accept this design change.
    My need of Index on Hebrew Data:
    Basically I am going to implement a Full-Text Search environment. For full-text searching; I am having a plugin which implements Lucene Algorithm of Indexing.
    The Index writing will not be useful until the table is indexed and well-functional.
    "But note that standard indexes will be sorted according to binary order of Hebrew letters in Unicode."
    So does it means we are not going to index on actual data (Data in Hebrew)??
    Thanks
    Priyank Jain

Maybe you are looking for