Cannot create index

a guy before has similar problems:
begin
ctx_ddl.create_preference ( 'MYPREF', 'basic_lexer');
ctx_ddl.set_attribute ( 'MYPREF', 'index_text','true');
ctx_ddl.set_attribute('MYPREF', 'index_themes','false');
end;
create index index_sdb on sdb(DESCRIPTION) indextype is ctxsys.context parameters ('DATASTORE MYPREF storage DIRECT_DATASTORE');
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: interMedia Text error:
DRG-10708: invalid class id 1 for preference MYPREF
ORA-06512: at "CTXSYS.DRUE", line 126
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 78
ORA-06512: at line 1
whats wrong?
error documentation tells me only determine the correct class id :-(
thaks for help,
thomas

The error message is because you are trying to use a Lexer preference as a Datastore. Replace Datastore -> Lexer.

Similar Messages

  • Cannot Create Index in EHP 4 System

    Hi there,
    We got an Enterprise Search 7.0 and some SAP Systems (ERP 6.0 and a NEW IDES ERP EHP4).
    In the ERP 6.0 I can create all Indexes I want to have.
    Starting SES_Admin, create Index and go.
    I the new EHP 4 System (IDES) it's not possible to create an new Index.
    The connection between ES 7.0 and the ERP is fine. The System User got the same Rights like the User in the ERP 6.0.
    In the SES_Admin it's possible to select the Business Objects I want to index, but after I have select them (all or some special) I see no Object in the Ses_admin. The message below is : indexes created: 4, indexes activated: 0 .
    Anyone an idea what I'm doing wrong?
    THX for your Help
    Edited by: Björn Leistikow on Mar 24, 2010 4:50 PM

    I've sold the Problem.
    After installing Trex 7.2 the indexes can be created.

  • Creating Indexes in Cluster Tables

    Hi,
       I want to  enable the index for the a cluster table..how is it possible..As we see for transparent tables like MSEG ,index tab is enabled but tables like BSEG the option is disabled..Please help me find a solution..
    Regards
    Maria

    You cannot create index on cluster table in SAP.
    BSEG is a cluster table, so no index, but hopefully there are "database indexes" on BSEG, which are actual database table : BSIS, BSAS, BSID, BSAS, and so on.
    BSEG Access
    BSAD Accounting: Secondary index for customers (cleared items)
    BSAK Accounting: Secondary index for vendors (cleared items)
    BSAS Accounting: Secondary index for G/L accounts (cleared items)
    BSID Accounting: Secondary index for customers
    BSIK Accounting: Secondary index for vendors
    BSIM Secondary Index, Documents for Material
    BSIS Accounting: Secondary index for G/L accounts
    Create index on these tables.
    Look also at
    Re: Selecting data from BSEG.
    Regards

  • Error when create index

    Hi,
    Platform Tru64 BD 8.1.7.
    When i create some index for intermedia search, i get some errors:
    CREATE TABLE DOCUMENTO (
    ID NUMBER (15) NOT NULL,
    NOME VARCHAR2 (100) NOT NULL,
    DESCRICAO VARCHAR2 (255),
    FORMATO VARCHAR2 (128),
    AUTOR VARCHAR2 (100),
    RESPONSAVEL VARCHAR2 (100) NOT NULL,
    DATA_DOCUMENTO DATE,
    DATA_CATALOGACAO DATE DEFAULT SYSDATE NOT NULL,
    ESTADO VARCHAR2 (2) DEFAULT 'AC' NOT NULL,
    DOCUMENTO BLOB,
    INTERMEDIA VARCHAR2 (4000),
    NAME VARCHAR2 (90),
    CRIADO_POR VARCHAR2 (90),
    CRIADO_EM DATE,
    ALTERADO_POR VARCHAR2 (90),
    ALTERADO_EM DATE,
    CONSTRAINT ESTADO_CK
    CHECK (ESTADO IN ('AC','AN')) ,
    CONSTRAINT ID_CONSTRAINTS
    UNIQUE (ID),
    PRIMARY KEY ( ID ));
    CREATE INDEX DOCUMENTO_INDEX ON
    DOCUMENTO(DOCUMENTO);
    ERROR at line 2:
    ORA-02327: cannot create index on expression with datatype LOB
    CREATE INDEX INTERMEDIA_INDEX ON
    DOCUMENTO(INTERMEDIA);
    ERROR at line 2:
    ORA-01450: maximum key length (1578) exceeded
    Could you give me some help?

    Forget last message, i forget to specify index type
    Pedro Ribeiro

  • Streams cannot create an index

    HI All,
         I am currently implementing an Oracle Streams setup to stream a schema from one database to another database. While I have been able to overcome most problems so far, I currently have an issue where the streams apply process cannot create an index in the destination.
         I have effectively disabled VPD on the destination, and granted every privilege I can think of directly to the streams administrator, but still the transaction returns "ORA-00942: table or view does not exist". No other errors are listed - none about prilileges, open cursors or other possible problems
         I have searched Metalink, and found two notes (264477.1 and 276805.1), however neither really describe the problem, nor do their solutions help.
         Environment details are Oracle 11.1.0.7 on Red Hat Enterprise Linux Server release 5.3 (Tikanga)
         I have created a script which summarises attempted solutions, whose output is included below - appologies for the length.
    Thanks in advance for any suggestions
    Gavin
    @ SQL>
    @ SQL> connect / as sysdba
    Connected.
    SYS@TGFLXRD SQL> -- grant sysdba
    SYS@TGFLXRD SQL> grant sysdba to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.01
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> -- For VPD
    SYS@TGFLXRD SQL> grant exempt access policy to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.01
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> -- Object priv
    SYS@TGFLXRD SQL> -- from Metalink ORA-942 ORA-1000 While Adding a New Table to 10g Streams Replication [ID 264477.1]
    SYS@TGFLXRD SQL> grant dba to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.00
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> grant create any index to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.00
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> column grantee format a15
    SYS@TGFLXRD SQL> column table_name format a25
    SYS@TGFLXRD SQL> column owner format a15
    SYS@TGFLXRD SQL> column grantor format a15
    SYS@TGFLXRD SQL> column privilege format a20
    SYS@TGFLXRD SQL> select *
    2 from dba_tab_privs
    3 where table_name = 'SHIPMENT_STOP_DEBRIEF'
    4 order by grantee, privilege;
    GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRANTABLE HIERARCHY
    APP_USER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DELETE NO NO
    APP_USER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INSERT NO NO
    APP_USER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER SELECT NO NO
    APP_USER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER UPDATE NO NO
    REPORTOWNER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INSERT YES NO
    REPORTOWNER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER REFERENCES NO NO
    REPORTOWNER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER SELECT YES NO
    REPORTOWNER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER UPDATE YES NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER ALTER NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DEBUG NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DELETE NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER FLASHBACK NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INDEX NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INSERT NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER ON COMMIT REFRESH NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER QUERY REWRITE NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER REFERENCES NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER SELECT NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER UPDATE NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER ALTER NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DEBUG NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DELETE NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER FLASHBACK NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INSERT NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER ON COMMIT REFRESH NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER QUERY REWRITE NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER SELECT NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER UPDATE NO NO
    28 rows selected.
    Elapsed: 00:00:00.02
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> connect glogowner/xxxxxx
    Connected.
    GLOGOWNER@TGFLXRD SQL> grant all on SHIPMENT_STOP_DEBRIEF to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.01
    GLOGOWNER@TGFLXRD SQL>
    GLOGOWNER@TGFLXRD SQL>
    GLOGOWNER@TGFLXRD SQL> connect strmadmin/xxxxxx
    Connected.
    STRMADMIN@TGFLXRD SQL> -- ensure object can be seen
    STRMADMIN@TGFLXRD SQL> create or replace synonym SHIPMENT_STOP_DEBRIEF for glogowner.SHIPMENT_STOP_DEBRIEF;
    Synonym created.
    Elapsed: 00:00:00.01
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> -- from Metalink ORA-942 & ORA-1000 from an Apply Process After Adding a New Table to a Streams Environment [ID 276805.1]
    STRMADMIN@TGFLXRD SQL> column privilege format a40
    STRMADMIN@TGFLXRD SQL> COLUMN APPLY_NAME HEADING 'Apply Process Name' FORMAT A20
    STRMADMIN@TGFLXRD SQL> COLUMN APPLY_CAPTURED HEADING 'Type of Events Applied' FORMAT A15
    STRMADMIN@TGFLXRD SQL> COLUMN APPLY_USER HEADING 'Apply User' FORMAT A30
    STRMADMIN@TGFLXRD SQL> SELECT APPLY_NAME,
    2 DECODE(APPLY_CAPTURED,
    3 'YES', 'Captured',
    4 'NO', 'User-Enqueued') APPLY_CAPTURED,
    5 APPLY_USER
    6 FROM DBA_APPLY;
    Apply Process Name Type of Events Apply User
    TGF_APP Captured STRMADMIN
    OTM_APP Captured STRMADMIN
    Elapsed: 00:00:00.00
    STRMADMIN@TGFLXRD SQL> --select * from session_privs order by 1;
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> -- print_transaction from Oracle doco at
    STRMADMIN@TGFLXRD SQL> -- http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_apmon.htm#CHDFBEFC
    STRMADMIN@TGFLXRD SQL> set serveroutput on
    STRMADMIN@TGFLXRD SQL> exec print_transaction('10.3.2694');
    ---- Local Transaction ID: 10.3.2694
    ---- Source Database: TGFLXD
    ----Error in Message: 1
    ----Error Number: 942
    ----Message Text: ORA-00942: table or view does not exist
    --message: 1
    type name: SYS.LCR$_DDL_RECORD
    source database: TGFLXD
    owner: GLOGOWNER
    object: IX_SSD_ITEM_GID
    is tag null: Y
    ddl: CREATE INDEX GLOGOWNER.IX_SSD_ITEM_GID ON SHIPMENT_STOP_DEBRIEF(ITEM_GID) TABLESPACE INDX
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> CREATE INDEX GLOGOWNER.IX_SSD_ITEM_GID ON SHIPMENT_STOP_DEBRIEF(ITEM_GID) TABLESPACE INDX;
    Index created.
    Elapsed: 00:00:00.02
    STRMADMIN@TGFLXRD SQL> drop index GLOGOWNER.IX_SSD_ITEM_GID;
    Index dropped.
    Elapsed: 00:00:00.05
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> -- let's try now...
    STRMADMIN@TGFLXRD SQL> desc SHIPMENT_STOP_DEBRIEF
    Name Null? Type
    SHIPMENT_GID NOT NULL VARCHAR2(101)
    STOP_NUM NOT NULL NUMBER(3)
    ACTIVITY NOT NULL VARCHAR2(1)
    SEQUENCE_NO NOT NULL VARCHAR2(10)
    S_SHIP_UNIT_GID VARCHAR2(101)
    S_SHIP_UNIT_LINE_NO NUMBER(10)
    ITEM_PACKAGE_COUNT NUMBER(10)
    PACKAGING_UNIT_GID VARCHAR2(101)
    PACKAGING_UNIT_COUNT NUMBER(10)
    TRANSPORT_HANDLING_UNIT_GID VARCHAR2(101)
    TRANSPORT_HANDLING_UNIT_COUNT NUMBER(10)
    ITEM_GID VARCHAR2(101)
    NON_CONF_REASON_CODE_GID VARCHAR2(101)
    SHIP_UNIT_GID VARCHAR2(101)
    S_EQUIPMENT_GID VARCHAR2(101)
    MATCH_TYPE VARCHAR2(20)
    ORDER_RELEASE_LINE_GID VARCHAR2(101)
    DOMAIN_NAME NOT NULL VARCHAR2(50)
    INSERT_USER NOT NULL VARCHAR2(128)
    INSERT_DATE NOT NULL DATE
    UPDATE_USER VARCHAR2(128)
    UPDATE_DATE DATE
    STRMADMIN@TGFLXRD SQL> select count(*) from SHIPMENT_STOP_DEBRIEF;
    COUNT(*)
    0
    Elapsed: 00:00:00.00
    STRMADMIN@TGFLXRD SQL> select count(*) from glogowner.SHIPMENT_STOP_DEBRIEF;
    COUNT(*)
    0
    Elapsed: 00:00:00.01
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> set serveroutput on
    STRMADMIN@TGFLXRD SQL> begin
    2 dbms_apply_adm.execute_error(
    3 local_transaction_id => '10.3.2694',
    4 execute_as_user => false,
    5 user_procedure => null);
    6 end;
    7 /
    begin
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_APPLY_ERROR", line 151
    ORA-06512: at "SYS.DBMS_APPLY_ERROR", line 265
    ORA-06512: at "SYS.DBMS_APPLY_ADM", line 467
    ORA-06512: at line 2
    Elapsed: 00:00:00.03
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> connect / as sysdba
    Connected.
    SYS@TGFLXRD SQL> revoke sysdba from strmadmin;
    Revoke succeeded.
    Elapsed: 00:00:00.07
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> spool off
    -------------------------------------------------------------------------------------------------------------

    HI All,
         I am currently implementing an Oracle Streams setup to stream a schema from one database to another database. While I have been able to overcome most problems so far, I currently have an issue where the streams apply process cannot create an index in the destination.
         I have effectively disabled VPD on the destination, and granted every privilege I can think of directly to the streams administrator, but still the transaction returns "ORA-00942: table or view does not exist". No other errors are listed - none about prilileges, open cursors or other possible problems
         I have searched Metalink, and found two notes (264477.1 and 276805.1), however neither really describe the problem, nor do their solutions help.
         Environment details are Oracle 11.1.0.7 on Red Hat Enterprise Linux Server release 5.3 (Tikanga)
         I have created a script which summarises attempted solutions, whose output is included below - appologies for the length.
    Thanks in advance for any suggestions
    Gavin
    @ SQL>
    @ SQL> connect / as sysdba
    Connected.
    SYS@TGFLXRD SQL> -- grant sysdba
    SYS@TGFLXRD SQL> grant sysdba to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.01
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> -- For VPD
    SYS@TGFLXRD SQL> grant exempt access policy to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.01
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> -- Object priv
    SYS@TGFLXRD SQL> -- from Metalink ORA-942 ORA-1000 While Adding a New Table to 10g Streams Replication [ID 264477.1]
    SYS@TGFLXRD SQL> grant dba to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.00
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> grant create any index to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.00
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> column grantee format a15
    SYS@TGFLXRD SQL> column table_name format a25
    SYS@TGFLXRD SQL> column owner format a15
    SYS@TGFLXRD SQL> column grantor format a15
    SYS@TGFLXRD SQL> column privilege format a20
    SYS@TGFLXRD SQL> select *
    2 from dba_tab_privs
    3 where table_name = 'SHIPMENT_STOP_DEBRIEF'
    4 order by grantee, privilege;
    GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRANTABLE HIERARCHY
    APP_USER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DELETE NO NO
    APP_USER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INSERT NO NO
    APP_USER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER SELECT NO NO
    APP_USER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER UPDATE NO NO
    REPORTOWNER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INSERT YES NO
    REPORTOWNER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER REFERENCES NO NO
    REPORTOWNER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER SELECT YES NO
    REPORTOWNER GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER UPDATE YES NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER ALTER NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DEBUG NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DELETE NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER FLASHBACK NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INDEX NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INSERT NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER ON COMMIT REFRESH NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER QUERY REWRITE NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER REFERENCES NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER SELECT NO NO
    STRMADMIN GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER UPDATE NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER ALTER NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DEBUG NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER DELETE NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER FLASHBACK NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER INSERT NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER ON COMMIT REFRESH NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER QUERY REWRITE NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER SELECT NO NO
    STRMADMIN_ROLE GLOGOWNER SHIPMENT_STOP_DEBRIEF GLOGOWNER UPDATE NO NO
    28 rows selected.
    Elapsed: 00:00:00.02
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> connect glogowner/xxxxxx
    Connected.
    GLOGOWNER@TGFLXRD SQL> grant all on SHIPMENT_STOP_DEBRIEF to strmadmin;
    Grant succeeded.
    Elapsed: 00:00:00.01
    GLOGOWNER@TGFLXRD SQL>
    GLOGOWNER@TGFLXRD SQL>
    GLOGOWNER@TGFLXRD SQL> connect strmadmin/xxxxxx
    Connected.
    STRMADMIN@TGFLXRD SQL> -- ensure object can be seen
    STRMADMIN@TGFLXRD SQL> create or replace synonym SHIPMENT_STOP_DEBRIEF for glogowner.SHIPMENT_STOP_DEBRIEF;
    Synonym created.
    Elapsed: 00:00:00.01
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> -- from Metalink ORA-942 & ORA-1000 from an Apply Process After Adding a New Table to a Streams Environment [ID 276805.1]
    STRMADMIN@TGFLXRD SQL> column privilege format a40
    STRMADMIN@TGFLXRD SQL> COLUMN APPLY_NAME HEADING 'Apply Process Name' FORMAT A20
    STRMADMIN@TGFLXRD SQL> COLUMN APPLY_CAPTURED HEADING 'Type of Events Applied' FORMAT A15
    STRMADMIN@TGFLXRD SQL> COLUMN APPLY_USER HEADING 'Apply User' FORMAT A30
    STRMADMIN@TGFLXRD SQL> SELECT APPLY_NAME,
    2 DECODE(APPLY_CAPTURED,
    3 'YES', 'Captured',
    4 'NO', 'User-Enqueued') APPLY_CAPTURED,
    5 APPLY_USER
    6 FROM DBA_APPLY;
    Apply Process Name Type of Events Apply User
    TGF_APP Captured STRMADMIN
    OTM_APP Captured STRMADMIN
    Elapsed: 00:00:00.00
    STRMADMIN@TGFLXRD SQL> --select * from session_privs order by 1;
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> -- print_transaction from Oracle doco at
    STRMADMIN@TGFLXRD SQL> -- http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_apmon.htm#CHDFBEFC
    STRMADMIN@TGFLXRD SQL> set serveroutput on
    STRMADMIN@TGFLXRD SQL> exec print_transaction('10.3.2694');
    ---- Local Transaction ID: 10.3.2694
    ---- Source Database: TGFLXD
    ----Error in Message: 1
    ----Error Number: 942
    ----Message Text: ORA-00942: table or view does not exist
    --message: 1
    type name: SYS.LCR$_DDL_RECORD
    source database: TGFLXD
    owner: GLOGOWNER
    object: IX_SSD_ITEM_GID
    is tag null: Y
    ddl: CREATE INDEX GLOGOWNER.IX_SSD_ITEM_GID ON SHIPMENT_STOP_DEBRIEF(ITEM_GID) TABLESPACE INDX
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> CREATE INDEX GLOGOWNER.IX_SSD_ITEM_GID ON SHIPMENT_STOP_DEBRIEF(ITEM_GID) TABLESPACE INDX;
    Index created.
    Elapsed: 00:00:00.02
    STRMADMIN@TGFLXRD SQL> drop index GLOGOWNER.IX_SSD_ITEM_GID;
    Index dropped.
    Elapsed: 00:00:00.05
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> -- let's try now...
    STRMADMIN@TGFLXRD SQL> desc SHIPMENT_STOP_DEBRIEF
    Name Null? Type
    SHIPMENT_GID NOT NULL VARCHAR2(101)
    STOP_NUM NOT NULL NUMBER(3)
    ACTIVITY NOT NULL VARCHAR2(1)
    SEQUENCE_NO NOT NULL VARCHAR2(10)
    S_SHIP_UNIT_GID VARCHAR2(101)
    S_SHIP_UNIT_LINE_NO NUMBER(10)
    ITEM_PACKAGE_COUNT NUMBER(10)
    PACKAGING_UNIT_GID VARCHAR2(101)
    PACKAGING_UNIT_COUNT NUMBER(10)
    TRANSPORT_HANDLING_UNIT_GID VARCHAR2(101)
    TRANSPORT_HANDLING_UNIT_COUNT NUMBER(10)
    ITEM_GID VARCHAR2(101)
    NON_CONF_REASON_CODE_GID VARCHAR2(101)
    SHIP_UNIT_GID VARCHAR2(101)
    S_EQUIPMENT_GID VARCHAR2(101)
    MATCH_TYPE VARCHAR2(20)
    ORDER_RELEASE_LINE_GID VARCHAR2(101)
    DOMAIN_NAME NOT NULL VARCHAR2(50)
    INSERT_USER NOT NULL VARCHAR2(128)
    INSERT_DATE NOT NULL DATE
    UPDATE_USER VARCHAR2(128)
    UPDATE_DATE DATE
    STRMADMIN@TGFLXRD SQL> select count(*) from SHIPMENT_STOP_DEBRIEF;
    COUNT(*)
    0
    Elapsed: 00:00:00.00
    STRMADMIN@TGFLXRD SQL> select count(*) from glogowner.SHIPMENT_STOP_DEBRIEF;
    COUNT(*)
    0
    Elapsed: 00:00:00.01
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> set serveroutput on
    STRMADMIN@TGFLXRD SQL> begin
    2 dbms_apply_adm.execute_error(
    3 local_transaction_id => '10.3.2694',
    4 execute_as_user => false,
    5 user_procedure => null);
    6 end;
    7 /
    begin
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_APPLY_ERROR", line 151
    ORA-06512: at "SYS.DBMS_APPLY_ERROR", line 265
    ORA-06512: at "SYS.DBMS_APPLY_ADM", line 467
    ORA-06512: at line 2
    Elapsed: 00:00:00.03
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL>
    STRMADMIN@TGFLXRD SQL> connect / as sysdba
    Connected.
    SYS@TGFLXRD SQL> revoke sysdba from strmadmin;
    Revoke succeeded.
    Elapsed: 00:00:00.07
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL>
    SYS@TGFLXRD SQL> spool off
    -------------------------------------------------------------------------------------------------------------

  • ERROR ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

    Hi,
    SAPSSRC.log
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195059
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -ctf I C:/temp/51030721/EXP2/DATA/SAPSSRC.STR C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/DDLORA.TPL C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.TSK ORA -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job completed
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195059
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195133
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.cmd -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) INFO: ABTREE created #20071018195134
    (IMP) INFO: import of ABTREE completed (39 rows) #20071018195134
    (DB) INFO: ABTREE~0 created #20071018195134
    (DB) INFO: AKB_CHKCONF created #20071018195134
    (IMP) INFO: import of AKB_CHKCONF completed (0 rows) #20071018195134
    (DB) INFO: AKB_CHKCONF~0 created #20071018195134
    (DB) INFO: AKB_INDX created #20071018195134
    (IMP) INFO: import of AKB_INDX completed (0 rows) #20071018195134
    (DB) INFO: AKB_INDX~0 created #20071018195134
    (DB) INFO: AKB_USAGE_INFO created #20071018195134
    (IMP) INFO: import of AKB_USAGE_INFO completed (0 rows) #20071018195134
    (DB) INFO: AKB_USAGE_INFO~0 created #20071018195134
    (DB) INFO: AKB_USAGE_INFO2 created #20071018195134
    (IMP) INFO: import of AKB_USAGE_INFO2 completed (0 rows) #20071018195134
    (DB) INFO: AKB_USAGE_INFO2~0 created #20071018195134
    (DB) INFO: APTREE created #20071018195134
    (IMP) INFO: import of APTREE completed (388 rows) #20071018195134
    (DB) INFO: APTREE~0 created #20071018195134
    (DB) INFO: APTREE~001 created #20071018195134
    (DB) INFO: APTREET created #20071018195134
    (IMP) INFO: import of APTREET completed (272 rows) #20071018195134
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-1452 occurred when executing SQL statement (parse error offset=35)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "APTREET~0" ON "APTREET" ( "SPRAS", "ID", "NAME" ) TABLESPACE PSAPBW1 STORAGE (INITIAL 44981 NEXT 0000000040K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
    (SQL error 1452)
    error message returned by DbSl:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    (DB) INFO: disconnected from DB
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195134
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195314
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.cmd -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) ERROR: DDL statement failed
    (DROP INDEX "APTREET~0")
    DbSlExecute: rc = 103
    (SQL error 1418)
    error message returned by DbSl:
    ORA-01418: specified index does not exist
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-1452 occurred when executing SQL statement (parse error offset=35)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "APTREET~0" ON "APTREET" ( "SPRAS", "ID", "NAME" ) TABLESPACE PSAPBW1 STORAGE (INITIAL 44981 NEXT 0000000040K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
    (SQL error 1452)
    error message returned by DbSl:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    (DB) INFO: disconnected from DB
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195315
    I'm getting this error "duplicate keys found". I'm finished installing the central instance and during the database instance, i got this error. I'm installing BW 3.5 on x64 windows server 2003 platform. I'm using NU kernel 6.40.
    Thanks for your suggestions on how to resolve this error.
    Reward points guaranteed.

    Issue solved by deleting central and database instance and started a new build. it finished without an error.
    Thank you.

  • W_PARTY_D_U1 = ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found.

    Hi,
    We are implementing OBIA 11.1.1.7.1 which comes with ODI for Fianance and Procurement analytics.When we do full load from EBS the load plan gets failed and it throws the below error
    Caused By: java.sql.SQLException: ORA-20000: Error creating Index/Constraint : W_PARTY_D_U1 => ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found.
    Please help us to resolve the same.
    Thanks
    Rama

    This might need Patch:10402735
    if helps mark

  • Cannot create text index in partition table on Oracle 10g

    I try to create context index in a table with 15 millions records. The table is divided 5 partitions and each patition has 3 millions records. When I create the context index in the table, the same error always arised. The follow are my work:
    --First create my own lexer
    begin
    ctx_ddl.createperference('my_chinese_lexer','chinese_lexer');
    end;
    --Second create index
    create index idx_part_text3 on tb_test_part(text3)
    indextype is ctxsys.context local (
    partition p1_ix,
    partition p2_ix,
    partition p3_ix ,
    partition p4_ix,
    partition p5_ix)
    parameters('lexer my_chinese_lexer') parallel;
    --error message
    create index idx_part_text3 on tb_test_part(text3)
    Error in 1 line:
    ORA-12801: Parellel Query Server P000 send error signal
    ORA-29855: Error on execute ODCIINDEXCREATE program
    ORA-06510: PL/SQL: User Defined Error
    ORA-06512: In "CTXSYS.DRIDISP", line 244
    ORA-04030: Try to alloc 65548 Bytes (CTX PRM heap,draccbx:message buffer) Out of memory
    ORA-06512: In "CTXSYS.DRIPARX", line 10
    ORA-06512: In "CTXSYS.TEXTINDEXMETHODS", line 359
    ORA-04030: Try to alloc 65548 Bytes (CTX PRM heap,draccbx:message buffer) Out of memory
    ORA-06512: In "CTXSYS.DRUE", line 191
    ORA-06512: In "CTXSYS.DRUE", line 49
    ORA-06512: In "CTXSYS.DRUE", line 24
    ORA-06512: In "CTXSYS.DRUE", line 186
    ORA-06512: In "CTXSYS.DRVDDL", line 682
    ORA-04030: Try to alloc 65548 Bytes (CTX PRM heap,draccbx:message buffer) Out of memory
    ORA-04030: Try to alloc 65548 Bytes (CTX PRM heap,draccbx:message buffer) Out of memory
    ORA-06512: In "CTXSYS.DRUE", line 191
    ORA-06512: In "CTXSYS.DRUE", line 49
    ORA-06512: In "CTXSYS.DRUE", line 24
    ORA-06512: In "CTXSYS.DRVDDL", line 452
    ORA-06510: PL/SQL: User Defined Error
    BTW:
    My oracle 10g run on linux AS3 box with 4xP4 and 6G Mem.
    I set pga_aggregate_target=2200M, and at the beginning of creating index, the max pga alloced is about 1100M, but when one patition finished, the error arised and the max pga alloced suddenly reached 3500M. So in every times, the index status is always like below:
    P1_ix usable
    P2_ix Inprogress
    P3_ix Inprogress
    P4_ix Inprogress
    P5_ix Inprogress
    Thx for any help!

    Try to increase LARGE_POOL_SIZE.
    PGA_AGGREGATE_TARGET is not only parameter that can meddle in parallel execution.
    Looks like parallel execution parameters is not correctly set. Check it all, including PARALLEL_EXECUTION_MESSAGE_SIZE.

  • Cannot create ctxsys.context type index : ORA-29855 ORA-20000 DRG-11206 ...

    Hello everybody,
    I have from time to time to create Intermedia or Oracle text indexes in Oracle databes, most 10g ones.
    Today I did it in a Oracle 10g under Linux RHEL 5, with this few usual commands:
    1) connect SYS/**** as SYSDBA;
    2) CREATE TABLESPACE "DRSYS" LOGGING DATAFILE '/path_to_index_files/drsys.ora' SIZE 25M REUSE AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO;
    3) @$ORACLE_HOME/ctx/admin/catctx.sql ctxsys DRSYS TEMP NOLOCK
    4) connect ctxsys/ctxsys;
    5) @$ORACLE_HOME/ctx/admin/defaults/drdeff.sql;
    6) connect sa/*****;
    7) CREATE INDEX pj_index ON sa.tpiecejointe(pjcontenu) INDEXTYPE IS ctxsys.context parameters ('sync (every "SYSDATE+12/24")');
    My issue occured at the 7th step:
    CREATE INDEX pj_index ON sa.tpiecejointe(pjcontenu) INDEXTYPE IS ctxsys.context parameters ('sync (every "SYSDATE+12/24")')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-11206: user filter command /dk2/app/oracle/ctx/bin/ctxhx could not be
    executed
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    /dk2/app/oracle/ctx/bin/ctxhx is ok and may be executed by anyone.
    I found no reason for this problem on the Web.
    If somebody can help, thanks a lot...
    Thomas

    Hi,
    for using the sync parameter, the user needs to be granted to execute a job. Oracle makes a job to do the sync. So issue:
    GRANT CREATE JOB TO SMADMIN;
    from SYS/SYSTEM.
    Herald ten Dam
    superconsult.nl

  • Trying to create index cards in pages

    Hello,
    I am trying to create a 3x5 flash card template to study, and can't find an easy way to set this up on Pages. I need to make about 150 double-sided cards with text on the front, and text wrapped around a small picture on the back. So I need to create an efficient system to plug in data as well as a picture for all of these items. I've tried several things so far:
    1) Create a blank document 8.5x11 landscape orientation, then pull the guides down to fit 4 cards on a page. I would then ideally enter the info, print double-sided, then cut with a paper cutter. This formatting works fine for the first page, but I can't seem to replicate this page or the guides onto subsequent pages (guides can't be made to master objects I guess). If I try to select all 4 text boxes, copy, then paste them into the next page they for some strange reason scale down in size, so I lose the dimensions and placement of the boxes.
    2) Create a brand new template with aforementioned guides and text boxes. And again, when I tried this I couldn't get the page and formatting to be replicated to subsequent pages. When I made the text boxes into master objects to try and achieve this, all text I enter into them gets replicated into every subsequent box, which is not what I need because I need unique text on each card.
    3) Create a 3x5 page size document, which works ok but I cannot get a placeholder image to be replicated to subsequent pages. That means I need to drag the pictures on and format them one by one, which is again time-consuming. This is also tricky because I need to find a printer that handle printing directly onto index cards, which is a little specialized compared to printing on standard letter paper.
    I've also searched the forums and google to try and find add-ons or shareware that can do this, but haven't come up with anything!
    This is weird because surely I am not the only student who wants to create index cards on the computer rather than by hand! Please help..my final is next week..
    Thank you.

    Try to "capture" your first page thru the menu Format > Advanced > Capture Pages"
    Then you will be able to insert a new page with the defined attributes from the menu entitled "Sections" in the toolbar.
    Yvan KOENIG (from FRANCE jeudi 23 juillet 2009 19:09:05)

  • WHEN TO USE LOGGER IN CREATE INDEX?

    HI ALL,
    WHEN TO USE LOGGER IN CREATE INDEX STATEMENT? AND WHEN TO USE NOLOGGING?
    HOW IS INDEX PHYSICALLY STORED IN DATABASE?
    THANKS IN ADVANCE.
    SANDESH

    NOLOGGING means that information is not written into the redo logs (relatively faster than LOGGING). However, this also means that if you need to recover your database, the index cannot be recovered (since the info cannot be found in the redo logs).
    Use NOLOGGING if you need the speed (big indexes) and/or you don't care about being able to recover the index (i.e. if it is acceptable if you recreate it manually after possible database recovery). Alternatively, create the index with NOLOGGING, alter the index to LOGGING and backup the database. Only after the successfull backup will the index be recoverable (with that backup, not an older one).
    Typically you should use LOGGING rather than NOLOGGING because the overhead of creating the backup/recovery and insecurity on being able to recover (and pressure that goes along with it) is to great. This option will be handy only in rare cases (e.g. when creating staging area tables/indexes in a datawarehouse. They don't need recovery and will therefore speed up when using NOLOGGING).
    Hope this helps,
    Lennert

  • Cannot create a session after the response has been committed (Tomcat 6)

    I'm getting a rather annoying error when I try to open a pretty basic JSP page.
    I'm rather new to the whole JSP scene, so I'm following the example found on pages 287 and onwards in "JSF in Action - Manning" in case anyone wanted to check my code against the source.
    I've searched for about 4 hours now, coming back to this site a couple of times, once reading about writeouts and stuff. But I'm not really sure this is the issue in this case and if it is, where exactly the problem lies.
    I've already fixed a number of errors I got (jtsl.jar and standard.jar missing etc...) but this particular problem is driving me (and my co-workers for that matter :-) ) up the wall.
    Anyone willing to help me out here?
    Error:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Cannot create a session after the response has been committed
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
    root cause
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
         org.apache.catalina.connector.Request.doGetSession(Request.java:2301)
         org.apache.catalina.connector.Request.getSession(Request.java:2075)
         org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
         org.apache.myfaces.context.servlet.SessionMap.setAttribute(SessionMap.java:53)
         org.apache.myfaces.util.AbstractAttributeMap.put(AbstractAttributeMap.java:103)
         org.apache.myfaces.util.AbstractAttributeMap.put(AbstractAttributeMap.java:35)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:523)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:358)
         javax.faces.application.StateManager.saveView(StateManager.java:47)
         org.apache.myfaces.application.jsp.JspViewHandlerImpl$StateMarkerAwareWriter.flushToWriter(JspViewHandlerImpl.java:387)
         org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:322)
         org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
         org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
    Source Code of login.jsp:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <f:view>
    <html>
    <head>
         <title>
              <h:outputText value="ProjectTrack"/>
         </title>
    </head>
         <body>
              <table>
                   <tr>
                        <td>
                             <h:graphicImage url="/images/logo Skillteam.jpg"
                             alt="Welcome to ProjectTrack"
                             title="Welcome to ProjectTrack"
                             width="435" height="120"/>
                        </td>
                   <td>
                        <font face="Arial, sans-serif"
                        size="6">
                        <h:outputText value="ProjectTrack"/>
                        </font>
                   </td>
                   </tr>
         http://forum.java.sun.com/post!default.jspa?forumID=45#
    Click for bold     </table>
         </body>
    </html>
    </f:view>
    web.xml & faces-config
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
         <display-name>ProjectTrack</display-name>
         <welcome-file-list>
         <welcome-file>faces/login.jsp</welcome-file>
         <welcome-file>index.html</welcome-file>
         </welcome-file-list>
         <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>
    </web-app>
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
         <navigation-rule>
              <from-view-id>/login.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>success</from-outcome>
                   <to-view-id>/inbox.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>failure</from-outcome>
                   <to-view-id>/login.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>Setup:
    Eclipse Europe 3.3.0
    Tomcat 6.0.13
    MyFaces 1.2
    JRE 1.6.0_02

    When searching for this error, this was the first page google gave me. I found the answer and just in case anyone else stumbles in here with the same question I thought I'd share my findings.
    Unfortunately, if your problem is the same as mine, you're going to feel pretty silly. I was navigating to the wrong page. If MyFaces(when running tomcat) tries to resolve to a page that doesn't exist, the error given above is what happens.
    In my case I accidentally put my .jsp page into the wrong directory and ended up banging my head against the wall for an hour figuring that out. Hope this helps someone.

  • Problems on Creating INDEX for ORDSYS.ORDDOC type

    I have a table 'docs'
    CREATE TABLE "TEST"."DOCS"
    ("ID" VARCHAR2(2048 byte) NOT NULL,
    "DOCUMENT" "ORDSYS"."ORDDOC",
    "DUMMY" CHAR(1 byte) NOT NULL)
    The field DOCUMENT contains a number of documents a mixture of .doc and .pdf files. These where uploaded using the code wizards for the web toolkit. Now I want to INDEX DOCUMENT so I can implement a web search facility.
    I'm currently following the xamples on http://download-west.oracle.com/otndoc/oracle9i/901_doc/text.901/a90121/cdatadi3.htm#43365 NESTED_DATASTORE Example (Intermedia Documentation)
    I did this
    ctx_ddl.create_preference('ntds','nested_datastore');
    ctx_ddl.set_attribute('ntds','nested_column', 'dummy');
    ctx_ddl.set_attribute('ntds','nested_type', 'ordsys.orddoc');
    ctx_ddl.set_attribute('ntds','nested_lineno','source');
    ctx_ddl.set_attribute('ntds','nested_text', 'comments');
    when creating the index using ntds it is complaining about ordsys.orddoc
    create index docindx on docs(dummy) indextype is ctxsys.context parameters('data
    store ntds')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in dricon.get_type_data_type
    ORA-20000: Oracle Text error:
    DRG-12801: invalid type: ORDSYS.ORDDOC
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
    I'm not convince on the 'nested_lineno' parameter can anybody tell me how this can be done.

    I'm forced to use ordsys.orddoc since 'interMedia Code Wizard for the PL/SQL Gateway' won't generate the code for a clob it only recognizes intermedia objects.
    since orddoc.comments is a clob I cannot see why there shouldn't be a way to index it. What's the use of storing documents in ORDDOC when you can't search them??

  • Creating Indexes in Production Server.

    Hi All,
    1. We have master data table in Production server with 2 million records.This master data table doesn't have
    any Indexes created which causes the delay in Loading process. How to create indexes in production
    2. This table have Index created in DEV but was created as $tmp package so cannot be transported.So if i
    create the Index for this master data table which already having the data what could be the impact like loss of
    data or any other way.Please post your valuable comments.
    Thanks & Regards
    Kranthi.
    Edited by: Arun Varadarajan on Apr 15, 2009 11:54 PM

    Hi Kranti,
    Creating Secondary Indexes 
    Procedure
    1.     In the maintenance screen of the table, choose Indexes.
    If indexes already exist on the table, a list of these indexes is displayed. Choose  .
    2.     In the next dialog box, enter the index ID and choose 
    The maintenance screen for indexes appears.
    3.     Enter an explanatory text in the field Short text.
    You can then use the short text to find the index at a later time, for example with the R/3 Repository
    Information System.
    4.     Select the table fields to be included in the index using the input help for the Field name column.
    The order of the fields in the index is very important. See What to Keep in Mind for Secondary Indexes.
    5.     If the values in the index fields already uniquely identify each record of the table, select Unique index.
    A unique index is always created in the database at activation because it also has a functional meaning
    (prevents double entries of the index fields).
    6.     If it is not a unique index, leave Non-unique index selected.
    In this case you can use the radio buttons to define whether the index should be created for all database
    systems, for selected database systems or not at all in the database.
    7.     Select for selected database systems if the index should only be created for selected database
    systems.
    Click on the arrow behind the radio buttons. A dialog box appears in which you can define up to 4 database
    systems with the input help. Select Selection list if the index should only be created on the given database
    systems. Select Exclusion list if the index should not be created on the given database systems. Choose  .
    8.     Choose  .
    Regards,
    Prabhudas
    Edited by: Arun Varadarajan on Apr 15, 2009 11:53 PM
    Edited by: Arun Varadarajan on Apr 15, 2009 11:54 PM

  • Creating Index to a master table

    Hello All,
    I have a database table with the following fields
    CLIENT 
    MATNR
    KORDX
    KCATV
    VARIANT_NBR
    With the initial four fields making the primary key.  ( CLIENT, MATNR,  KORDX, KCATV).
    I would like to put an index to the table with the fields  (CLIENT, VARIANT_NBR), because there are many reads in the program for the field VARIANT_NBR. Could you please put across on views on this. What all factors should I consider for creating an index in performance perspective.
    Thanks in advance
    Sudha

    Hi,
    Regarding indexes information check this link...
    http://help.sap.com/saphelp_nw04/helpdata/en/cc/7c58b369022e46b629bdd93d705c8c/content.htm
    and
    http://www.ncsu.edu/it/mirror/mysql/doc/maxdb/en/6a/c943401a306f13e10000000a1550b0/content.htm
    And also go through the below information...
    They may help you in optimizing your program.
    The Optimizer
    Each database system uses an optimizer whose task is to create the execution plan for SQL statements (for example, to determine whether to use an index or table scan). There are two kinds of optimizers:
    1) Rule based
    Rule based optimizers analyze the structure of an SQL statement (mainly the SELECT and WHERE clauses without their values) and the table index or indexes. They then use an algorithm to work out which method to use to execute the statement.
    2) Cost based
    Cost based optimizers use the above procedure, but also analyze some of the values in the WHERE clause and the table statistics. The statistics contain low and high values of the fields, or a histogram containing the distribution of data in the table. Since the cost based optimizer uses more information about the table, it usually leads to faster database access. Its disadvantage is that the statistics have to be periodically updated.
    Minimize the Search Overhead
    You minimize the size of the result set by using the WHERE and HAVING clauses. To increase the efficiency of these clauses, you should formulate them to fit with the database table indexes.
    Database Indexes
    Indexes speed up data selection from the database. They consist of selected fields of a table, of which a copy is then made in sorted order. If you specify the index fields correctly in a condition in the WHERE or HAVING clause, the system only searches part of the index (index range scan). The primary index is always created automatically in the R/3 System. It consists of the primary key fields of the database table. This means that for each combination of fields in the index, there is a maximum of one line in the table. This kind of index is also known as UNIQUE. If you cannot use the primary index to determine the result set because, for example, none of the primary index fields occur in the WHERE or HAVING clause, the system searches through the entire table (full table scan). For this case, you can create secondary indexes, which can restrict the number of table entries searched to form the result set. You specify the fields of secondary indexes using the Abap Dictionary. You can also determine whether the index is unique or not. However, you should not create secondary indexes to cover all possible combinations of fields. Only create one if you select data by fields that are not contained in another index, and the performance is very poor. Furthermore, you should only create secondary indexes for database tables from which you mainly read, since indexes have to be updated each time the database table is changed. As a rule, secondary indexes should not contain more than four fields, and you should not have more than five indexes for a single database table. If a table has more than five indexes, you run the risk of the optimizer choosing the wrong one for a particular operation. For this reason, you should avoid indexes with overlapping contents. Secondary indexes should contain columns that you use frequently in a selection, and that are as highly selective as possible. The fewer table entries that can be selected by a certain column, the higher that column's selectivity. Place the most selective fields at the beginning of the index. Your secondary index should be so selective that each index entry corresponds to at most five percent of the table entries. If this is not the case, it is not worth creating the index. You should also avoid creating indexes for fields that are not always filled, where their value is initial for most entries in the table. If all of the columns in the SELECT clause are contained in the index, the system does not have to search the actual table data after reading from the index. If you have a SELECT clause with very few columns, you can improve performance dramatically by including these columns in a secondary index.
    Formulating Conditions for Indexes
    You should bear in mind the following when formulating conditions for the WHERE and HAVING clauses so that the system can use a database index and does not have to use a full table scan. Check for Equality and Link Using AND The database index search is particularly efficient if you check all index fields for equality (= or EQ) and link the expressions using AND.
    Use Positive conditions
    The database system only supports queries that describe the result in positive terms, for example, EQ or LIKE. It does not support negative expressions like NE or NOT LIKE. If possible, avoid using the NOT operator in the WHERE clause, because it is not supported by database indexes; invert the logical expression instead.
    Using OR
    The optimizer usually stops working when an OR expression occurs in the condition. This means that the columns checked using OR are not included in the index search. An exception to this are OR expressions at the outside of conditions. You should try to reformulate conditions that apply OR expressions to columns relevant to the index, for example, into an IN condition.
    Using Part of the Index
    If you construct an index from several columns, the system can still use it even if you only specify a few of the columns in a condition. However, in this case, the sequence of the columns in the index is important. A column can only be used in the index search if all of the columns before it in the index definition have also been specified in the condition.
    Checking for Null Values
    The IS NULL condition can cause problems with indexes. Some database systems do not store null values in the index structure. Consequently, this field cannot be used in the index.
    Avoid Complex Conditions
    Avoid complex conditions, since the statements have to be broken down into their individual components by the database system.
    Hope this information had helped you.
    Regards
    Narin Nandivada.

Maybe you are looking for