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.

Similar Messages

  • 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 UNIQUE INDEX; duplicate keys found

    I have 10g when I did an expdp from prod (an AIX 5.3 ) and impdp to a test (a RHEL3 ) with TABLE_EXISTS_ACTION=TRUNCATE, there are some index errors ORA-01452 for some of the tables but not all. As I compared the difference between , The only difference I noticed was that the one with error is the table has data, those tables without error have no data. So how which parameter I can use in impdp to avoid ? read the utility doc, have not found clear picture.
    Chi

    In 11510,
    The duplicate row loaded is person 6272 with effective date 1994 and 1991. This needs to be fixed in vision.
    Workflow SIL_PositionDimension_Full calls mapping SIL_PositionDimension to load target W_POSITION_D from source W_POSITION_DS. W_POSITION_D.INTEGRATION_ID maps to W_POSITION_DS.INTEGRATION_ID, but EFFECTIVE_FROM_DT is a more complicated many to one mapping.
    Extract to W_POSITION_DS ;
    SDE_ORA_PositionDimension_NonEmployee
    - W_POSITION_DS.INTEGRATION_ID from PER_ALL_PEOPLE_F.PERSON_ID
    SDE_ORA_PositionDimension_NoAssignments
    - W_POSITION_DS.INTEGRATION_ID from JTF_RS_RESOURCE_EXTNS_TL RESOURCE_ID
    -- PER~6272,4,01-JAN-94
    -- PER~6272,4,01-JAN-91
    select all t.*
    from
    select all
    count(*) as n
    , t.INTEGRATION_ID
    , t.DATASOURCE_NUM_ID
    , t.EFFECTIVE_FROM_DT
    --, t.*
    from baw.W_POSITION_D t
    group by
    null
    , t.INTEGRATION_ID
    , t.DATASOURCE_NUM_ID
    , t.EFFECTIVE_FROM_DT
    ) t
    where ( ( n > 1 ) )
    ;

  • Impdp - duplicate keys found error

    I'm facing a strange issue. I'm running expdp / impdp using datapump. The export of the schema is successful. The import of the schema is raising the below errors for few PKs. I have verified on the source database. There are no duplicate records found and the PK is in enabled state. What is causing for this issue?. I had the similar issue earlier and run the Point-In Time export using FLASHBACK_SCN parameter and the import run smooth. But, the issue this time is the applications are shutdown and there are no connections from the application side and no DML transactions running on the schema. So, I have run the export without FLASHBACK_SCN parameter as we are moving this production database to another. But, the import is raising the below errors. Could someone let me know why it's causing?.
    ORA-39083: Object type INDEX failed to create with error:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    ORA-39083: Object type CONSTRAINT failed to create with error:
    ORA-02437: cannot validate (schema.tab_PK) - primary key violated

    Hi,
    Can you run the impdp commnd with this:
    sqlfile=index.sql include=INDEX
    then look in index.sql to find the index that is failing and try crating it manually. The other thing is to do a query on the target table to see if there are
    duplicate keys on the target. I can't explain why, but I can't imagine why the create index would fail if there were not.
    If you have a network link between the 2 databases maybe you can do a
    select * from target minus select * from source@network_link
    to see if there is anything different.
    Dean
    Edited by: Dean Gagne on Feb 17, 2010 7:37 AM

  • Error in Executing a Interface -- Index Duplicate Keys

    Hi All,
    I ran my Interface 2 times , it was working fine..... but after that when I ran I got these Error...where I am doing the mistake.............
    KM I used :
    LKM SQL to ORACLE
    IKM ORACLE INCREEMENTAL UPDATE
    CKM ORACLE
    The Step I am getting this Error is : Create Unique Index on Flow Table
    1452 : 72000 : java.sql.SQLException: ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    java.sql.SQLException: ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Thanks
    AK
    Message was edited by:
    Ananda

    Hi Anand-
    This is completely data issue, when executing the unique index step it will create unique index with the column name you mentioned.
    When you ran the first two loads there was no duplicate keys found in the data that's why you didn't get the error but the third run you got the problem.
    Check your data records and made changes in the KM as Bouch told if you don't want to create unique index.
    Thanks & Regards,
    Saravanan Rajavel

  • [b]ORA-02299 : duplicate keys found[/b]

    When I create my first CUBE in ORACLE 9.2.0.5 on my windows 2000 server,the cube wizard wrote this error message :
    ORA-02299:cannot validate(JANCO.UK_ON_0CASOVA_ID_DIMENZIA)-duplicate keys found
    I dont know , why cube wizrad wrote "duplicate keys found",because my foreign key between dimension table and fact table was unique.
    My SQL code generated by cube wizard :
    begin cwm_utility.set_object_in_error(null, null, null, null);
    end;
    ALTER TABLE JANCO.DIMENZIA
         ADD(CONSTRAINT UK_ON_0CASOVA_ID_DIMENZIA UNIQUE(ID))
    ALTER TABLE JANCO.PREMENNA
         ADD CONSTRAINT FK_ON_0CASOVA_ID_PREMENNA FOREIGN KEY(ID)
         REFERENCES JANCO.DIMENZIA(ID) RELY DISABLE NOVALIDATE
    declare CASOVA number;
    tmp number;
    begin
    CWM_OLAP_CUBE.Create_Cube('JANCO', 'LANOVKA', 'LANOVKA', '');
    CASOVA := CWM_OLAP_CUBE.Add_Dimension('JANCO', 'LANOVKA', 'JANCO', 'CASOVA', 'CASOVA');
    CWM_OLAP_CUBE.Map_Cube('JANCO', 'LANOVKA', 'JANCO', 'PREMENNA', 'FK_ON_0CASOVA_ID_PREMENNA', 'ID', 'JANCO', 'CASOVA', 'CASOVA');
    CWM_OLAP_MEASURE.Create_Measure('JANCO', 'LANOVKA', 'DIFERENCIA_TENZOMETROV', 'DIFERENCIA TENZOMETROV', '');
    CWM_OLAP_MEASURE.Set_Column_Map('JANCO', 'LANOVKA', 'DIFERENCIA_TENZOMETROV', 'JANCO', 'PREMENNA', 'DIFERENCIA_TENZOMETROV');
    CWM_OLAP_MEASURE.Create_Measure('JANCO', 'LANOVKA', 'DOLNA_HRANICA_POLOHY', 'DOLNA HRANICA POLOHY', '');
    CWM_OLAP_MEASURE.Set_Column_Map('JANCO', 'LANOVKA', 'DOLNA_HRANICA_POLOHY', 'JANCO', 'PREMENNA', 'DOLNA_HRANICA_POLOHY');
    CWM_OLAP_MEASURE.Create_Measure('JANCO', 'LANOVKA', 'HORNA_HRANICA_POLOHY', 'HORNA HRANICA POLOHY', '');
    CWM_OLAP_MEASURE.Set_Column_Map('JANCO', 'LANOVKA', 'HORNA_HRANICA_POLOHY', 'JANCO', 'PREMENNA', 'HORNA_HRANICA_POLOHY');
    CWM_OLAP_MEASURE.Create_Measure('JANCO', 'LANOVKA', 'LAVY_TENZOMETER', 'LAVY TENZOMETER', '');
    CWM_OLAP_MEASURE.Set_Column_Map('JANCO', 'LANOVKA', 'LAVY_TENZOMETER', 'JANCO', 'PREMENNA', 'LAVY_TENZOMETER');
    CWM_OLAP_MEASURE.Create_Measure('JANCO', 'LANOVKA', 'PRAVY_TENZOMETER', 'PRAVY TENZOMETER', '');
    CWM_OLAP_MEASURE.Set_Column_Map('JANCO', 'LANOVKA', 'PRAVY_TENZOMETER', 'JANCO', 'PREMENNA', 'PRAVY_TENZOMETER');
    CWM_OLAP_MEASURE.Create_Measure('JANCO', 'LANOVKA', 'SKUTOCNA_POLOHA', 'SKUTOCNA POLOHA', '');
    CWM_OLAP_MEASURE.Set_Column_Map('JANCO', 'LANOVKA', 'SKUTOCNA_POLOHA', 'JANCO', 'PREMENNA', 'SKUTOCNA_POLOHA');
    CWM_OLAP_MEASURE.Create_Measure('JANCO', 'LANOVKA', 'TOLERANCIA_POLOHY', 'TOLERANCIA POLOHY', '');
    CWM_OLAP_MEASURE.Set_Column_Map('JANCO', 'LANOVKA', 'TOLERANCIA_POLOHY', 'JANCO', 'PREMENNA', 'TOLERANCIA_POLOHY');
    CWM_OLAP_MEASURE.Create_Measure('JANCO', 'LANOVKA', 'ZIADANA_POLOHA', 'ZIADANA POLOHA', '');
    CWM_OLAP_MEASURE.Set_Column_Map('JANCO', 'LANOVKA', 'ZIADANA_POLOHA', 'JANCO', 'PREMENNA', 'ZIADANA_POLOHA');
    tmp:= cwm_utility.create_function_usage('SUM');
    cwm_olap_measure.set_default_aggregation_method('JANCO', 'LANOVKA', 'DIFERENCIA_TENZOMETROV', tmp, 'JANCO', 'CASOVA', 'CASOVA');
    tmp:= cwm_utility.create_function_usage('SUM');
    cwm_olap_measure.set_default_aggregation_method('JANCO', 'LANOVKA', 'DOLNA_HRANICA_POLOHY', tmp, 'JANCO', 'CASOVA', 'CASOVA');
    tmp:= cwm_utility.create_function_usage('SUM');
    cwm_olap_measure.set_default_aggregation_method('JANCO', 'LANOVKA', 'HORNA_HRANICA_POLOHY', tmp, 'JANCO', 'CASOVA', 'CASOVA');
    tmp:= cwm_utility.create_function_usage('SUM');
    cwm_olap_measure.set_default_aggregation_method('JANCO', 'LANOVKA', 'LAVY_TENZOMETER', tmp, 'JANCO', 'CASOVA', 'CASOVA');
    tmp:= cwm_utility.create_function_usage('SUM');
    cwm_olap_measure.set_default_aggregation_method('JANCO', 'LANOVKA', 'PRAVY_TENZOMETER', tmp, 'JANCO', 'CASOVA', 'CASOVA');
    tmp:= cwm_utility.create_function_usage('SUM');
    cwm_olap_measure.set_default_aggregation_method('JANCO', 'LANOVKA', 'SKUTOCNA_POLOHA', tmp, 'JANCO', 'CASOVA', 'CASOVA');
    tmp:= cwm_utility.create_function_usage('SUM');
    cwm_olap_measure.set_default_aggregation_method('JANCO', 'LANOVKA', 'TOLERANCIA_POLOHY', tmp, 'JANCO', 'CASOVA', 'CASOVA');
    tmp:= cwm_utility.create_function_usage('SUM');
    cwm_olap_measure.set_default_aggregation_method('JANCO', 'LANOVKA', 'ZIADANA_POLOHA', tmp, 'JANCO', 'CASOVA', 'CASOVA');
    commit;
    end;
    Please help me :) Thanx very much
    JOHN

    It appears to be a data issue. The ID column in JANCO.DIMENZIA has duplicate values.

  • Error: ORA-02298 while creating a new app at DRM 11.1.2.3.300

    Hi All,
            There's something weird happening when I try to create a new DRM app at DRM Management Console. After provide all information about database connection and admin long on i am getting the following error during the repository creation :
    Creating Repository ...  Done.
    Creating Tables ...  Done.
    Creating Views ...  Done.
    Creating Stored Procedures ...  Done.
    Creating Indexes ...  Done.
    Creating Primary Keys ...  Done.
    Initializing schema with predefined data ...
    Database creation failed with this error: ORA-02298: cannot validate (EPM_DRM_DB.FK_CATUSER02) - parent keys not found
         It is a fresh install and I don't know why I am having this error.  Did someone had this issue too ? How to solve that ?
    Thanks in advance

    ...To whom it may concern.....
    This issue was related to privileges in database. I've generated the scripts and ran with system user and it worked.
    Case closed.

  • ORA-12015: cannot create a fast refresh materialized view from a complex

    Hi All,
    I am trying to create materialized view but i got a error ORA-12015: cannot create a fast refresh materialized view from a complex query.
    Regards,
    narayana

    Hi,
    Please see if (Note: 179466.1 - Diagnosing ORA-12015 fast refresh materialized view / complex queries) helps.
    Regards,
    Hussein

  • ORA-02348: cannot create VARRAY column with embedded LOB

    Hi
    This error message I get when I try to create a table from my schema file which has a (sub-) element of type CLOB.
    In my XML document I have an element which needs to become declared a CLOB (because it's > 4000 bytes), in my Schema I define it's element node like:
    <xs:element name="MocovuState" xdb:SQLType="CLOB">
    I can register this Schema file but when I create the table, I get the error:
    ORA-02348: cannot create VARRAY column with embedded LOB
    Does anybody know how to handle this ?
    Marcel

    You need to use the xdb:storeVarrayAsTable="true" schema annotation so that unbounded elements are created at schema registration time as nested tables. Varrays can not contain CLOBs/BLOBS. Use the schema annotation xdb:SQLType="CLOB" to tell Oracle XMLDB to use CLOB storage for the element. See your schema below:
    P.S. XMLSPY is invaluable as it supports Oracle XML Schema annotations.
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" targetNamespace="http://www.yourregisteredschemanamespace.com" elementFormDefault="qualified" attributeFormDefault="unqualified" xdb:storeVarrayAsTable="true">
         <xs:element name="nRootNode">
              <xs:complexType>
                   <xs:all>
                        <xs:element name="nID" type="xs:long"/>
                        <xs:element name="nStringGroup" type="nStringGroup" minOccurs="0"/>
                   </xs:all>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="nStringGroup">
              <xs:sequence>
                   <xs:element name="nString" type="nString" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="nString" xdb:SQLType="CLOB">
              <xs:sequence>
                   <xs:element name="nValue" type="nValue" minOccurs="0" xdb:SQLType="CLOB"/>
              </xs:sequence>
              <xs:attribute name="id" type="xs:long" use="required"/>
         </xs:complexType>
         <xs:simpleType name="nValue">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>

  • Can not create table with the CLOB type VARRAY, ORA-02348: cannot create VA

    CREATE OR REPLACE TYPE Project AS OBJECT (
    project_no NUMBER(2),
    title VARCHAR2(35),
    cost CLOB );
    CREATE OR REPLACE TYPE ProjectList AS VARRAY(50) OF Project;
    CREATE TABLE department (
    dept_id NUMBER(2),
    name VARCHAR2(15),
    budget NUMBER(11,2),
    projects ProjectList );
    The table creatation always with the error :
    ORA-02348: cannot create VARRAY column with embedded LOB
    Can anybody help ???

    Hi Peng,
    It seems you have hit a limitation of the Oracle version, which you don't post.
    Limitations are sometimes also called a 'feature'.
    You would need to find out whether this restriction has been lifted in a subsequent release or redesign your application.
    Sybrand Bakker
    Senior Oracle DBA

  • Ora-12913 cannot create managed tablespace

    I want to create dictionary managed tablespace so when i type create command i got error ora-12913 cannot create dictionary tablespace .
    so at that time I have created locally managed tablespace still iam getting 'ora-12913 cannot create managed tablespace'

    ORA-12913: Cannot create dictionary managed tablespace
    Cause: Attemp to create dictionary managed tablespace in database which has system tablespace as locally managed
    Action: Create a locally managed tablespace.
    =============================================================================
    It's not possible to create a dictionary managed tablespace in a database which has a locally managed SYSTEM tablespace.

  • ORA-01502 error in case of unusable unique index and bulk dml

    Hi, all.
    The db is 11.2.0.3 on a linux machine.
    I made a unique index unusable, and issued a dml on the table.
    Howerver, oracle gave me ORA-01502 error.
    In order to avoid ORA-01502 error, do I have to drop the unique index ,and do bulk dml, and recreate the index?
    Or Is there any other solution without re-creating the unique index?
    create table hoho.abcde as
    select level col1 from dual connect by level <=1000
    10:09:55 HOHO@PD1MGD>create unique index hoho.abcde_dx1 on hoho.abcde (col1);
    Index created.
    10:10:23 HOHO@PD1MGD>alter index hoho.abcde_dx1 unusable;
    Index altered.
    Elapsed: 00:00:00.03
    10:11:27 HOHO@PD1MGD>delete from hoho.abcde where rownum < 11;
    delete from hoho.abcde where rownum < 11
    ERROR at line 1:
    ORA-01502: index 'HOHO.ABCDE_DX1' or partition of such index is in unusable stateThanks in advance.
    Best Regards.

    Hi. all.
    The following is from "http://docs.oracle.com/cd/E14072_01/server.112/e10595/indexes002.htm#CIHJIDJG".
    Is there anyone who can show me a tip to avoid the following without dropping and re-creating an unique index?
    •DML statements terminate with an error if there are any unusable indexes that are used to enforce the UNIQUE constraint.
    Unusable indexes
    An unusable index is ignored by the optimizer and is not maintained by DML. One reason to make an index unusable is if you want to improve the performance of bulk loads. (Bulk loads go more quickly if the database does not need to maintain indexes when inserting rows.) Instead of dropping the index and later recreating it, which requires you to recall the exact parameters of the CREATE INDEX statement, you can make the index unusable, and then just rebuild it. You can create an index in the unusable state, or you can mark an existing index or index partition unusable. The database may mark an index unusable under certain circumstances, such as when there is a failure while building the index. When one partition of a partitioned index is marked unusable, the other partitions of the index remain valid.
    An unusable index or index partition must be rebuilt, or dropped and re-created, before it can be used. Truncating a table makes an unusable index valid.
    Beginning with Oracle Database 11g Release 2, when you make an existing index unusable, its index segment is dropped.
    The functionality of unusable indexes depends on the setting of the SKIP_UNUSABLE_INDEXES initialization parameter.
    When SKIP_UNUSABLE_INDEXES is TRUE (the default), then:
    •DML statements against the table proceed, but unusable indexes are not maintained.
    •DML statements terminate with an error if there are any unusable indexes that are used to enforce the UNIQUE constraint.
    •For non-partitioned indexes, the optimizer does not consider any unusable indexes when creating an access plan for SELECT statements. The only exception is when an index is explicitly specified with the INDEX() hint.
    •For a partitioned index where one or more of the partitions are unusable, the optimizer does not consider the index if it cannot determine at query compilation time if any of the index partitions can be pruned. This is true for both partitioned and non-partitioned tables. The only exception is when an index is explicitly specified with the INDEX() hint.
    When SKIP_UNUSABLE_INDEXES is FALSE, then:
    •If any unusable indexes or index partitions are present, any DML statements that would cause those indexes or index partitions to be updated are terminated with an error.
    •For SELECT statements, if an unusable index or unusable index partition is present but the optimizer does not choose to use it for the access plan, the statement proceeds. However, if the optimizer does choose to use the unusable index or unusable index partition, the statement terminates with an error.Thanks in advance.
    Best Regards.

  • Create unique index from duplicate rows

    Dear
    I created an index like
    create index tablename_idx on tablename (FIELD1,FIELD2);
    It should be
    create unique index tablename_idx on tablename (FIELD1,FIELD2,filed3);
    How can I delete those duplicate records and create the UNIQUE index ?
    Thanks and regards
    Fahmed

    > How can I delete those duplicate records
    [url http://forums.oracle.com/forums/search.jspa?threadID=&q=delete+duplicate+records&objID=f75&dateRange=all&userID=&numResults=15]http://forums.oracle.com/forums/search.jspa?threadID=&q=delete+duplicate+records&objID=f75&dateRange=all&userID=&numResults=15
    Regards,
    Rob.

  • How to create unique index on a View

    Hi All,
    11.2.0.1
    How do I create an index on a view or any workaround that my view wont get duplicates?
    SQL> create unique index indx01 on db_backup_details_vw(id);
    create unique index indx01 on db_backup_details_vw(id)
    ERROR at line 1:
    ORA-01702: a view is not appropriate here
    Thanks a lot,
    Kinz

    I'm thinking of using a distinct clause here.
    if i get 5 duplicate rows in my selection set because of the join condition, can't i discard the remaining 4 using a distinct clause.
    Observe this
    SQL> select * from a;
    T1 T2
    1 4
    2 4
    3 4
    SQL> select * from b;
    T1 T2
    1 4
    2 5
    in both a,b t1 is the primary key. so we'll write a join on t2 (non PK).
    SQL> select b.t1,b.t2 from a,b where a.t2=b.t2;
    T1 T2
    1 4
    1 4 -- duplicates
    1 4
    Now create view with distinct clause
    create view ab as select distinct b.t1,b.t2 from a,b where a.t2=b.t2;
    SQL> select * from ab;
    T1 T2
    ---------- ---------- -- no duplicates
    1 4
    CSM

  • 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
    -------------------------------------------------------------------------------------------------------------

Maybe you are looking for