Impdp hangs on Processing object type... INDEX

I'm trying to import dump files for many hours, but I's hangs on:
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEXThe status of import is:
Import> status
Job: SYS_IMPORT_SCHEMA_10
  Operation: IMPORT
  Mode: SCHEMA
  State: EXECUTING
  Bytes Processed: 25,072,580,204
  Percent Done: 99
  Current Parallelism: 1
  Job Error Count: 0
  Dump File: /backup/import/EXP_DB01.dmp
  Dump File: /backup/import/EXP_DB%u.dmp
  Dump File: /backup/import/EXP_DB2%u.dmp
  Dump File: /backup/import/EXP_DB201.dmp
  Dump File: /backup/import/EXP_DB3%u.dmp
  Dump File: /backup/import/EXP_DB301.dmp
  Dump File: /backup/import/EXP_DB401.dmp
  Dump File: /backup/import/EXP_DB4%u.dmp
  Dump File: /backup/import/EXP_DB02.dmp
  Dump File: /backup/import/EXP_DB202.dmp
  Dump File: /backup/import/EXP_DB302.dmp
  Dump File: /backup/import/EXP_DB402.dmp
Worker 1 Status:
  State: EXECUTING
  Object Schema: PROJ
  Object Name: BKPIN6_PK
  Object Type: DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX
  Completed Objects: 295
  Worker Parallelism: 1And the SQL*Plus shows:
OPNAME                    TARGET                    SOFAR  TOTALWORK UNITS      ELAPSED_SECONDS MESSAGE
Table Scan                PROJ.TB_ENTR_001          1056002    1091871 Blocks                 363 Table Scan:  PROJ.TB_ENTR_001: 1056002 out
                                                                                                 of 1091871 Blocks doneSo, the "Table scan" above is done MANY TIMES and when I see the status on prompt import,
the object name is the same: BKPIN6_PK
So, Is it hanging?
What can I do to solve this?
Thank you very much!

Hi,
The only "process" in database is this import:
   SID    SERIAL# USERNAME       MACHINE              OSUSER       PROGRAM                   STATUS   LOGON
    98      29557 DBSNMP         ORASRV grid         emagent@ORASRV INACTIVE 20/09/11 22:39:59
                                                                 (TNS V1-V3)
   136      44447 DBSNMP         ORASRV grid         emagent@ORASRV INACTIVE 20/09/11 22:39:59
                                                                 (TNS V1-V3)
   107         52 DBSNMP         ORASRV grid         emagent@ORASRV ACTIVE   20/09/11 22:41:29
                                                                 (TNS V1-V3)
    55       1348 PROJ         ORASRV oracle      oracle@ORASRV ACTIVE   21/09/11 11:10:53
                                                                 (DW01)
   151          9 SYS            ORASRV oracle      racgimon@ORASRV INACTIVE 16/08/11 13:05:29
                                                                 (TNS V1-V3)
   150         11 SYS            ORASRV oracle      racgimon@ORASRV ACTIVE   16/08/11 13:05:34
                                                                 (TNS V1-V3)
   135          5 SYS            ORASRV oracle      racgimon@ORASRV INACTIVE 16/08/11 13:05:34
                                                                 (TNS V1-V3)
   132         49 SYS            ORASRV oracle      racgimon@ORASRV INACTIVE 16/08/11 13:06:34
                                                                 (TNS V1-V3)
    51      42168 SYS            ORASRV oracle      udi@ORASRV ACTIVE   21/09/11 11:10:40
                                                                rp (TNS V1-V3)
    85      13018 SYS            ORASRV oracle      oracle@ORASRV ACTIVE   21/09/11 11:10:49
                                                                 (DM00)
    64       8930 SYS            ORASRV oracle      udi@ORASRV INACTIVE 21/09/11 14:45:13
                                                                rp (TNS V1-V3)
    87       9380 SYS            ORASRV oracle      sqlplus@ORASRV ACTIVE   21/09/11 15:26:16
                                                                 (TNS V1-V3)thank you!

Similar Messages

  • IMPDP Help needed please...ORA-39083: Object type PROCOBJ failed to create

    OS=Win2003
    DB=10gR2
    Version = 102.0.4
    Hi,
    I am running a impdp on a 30gb file and well it seems to have gone fine (much faster then it normally does to be honest), but towards the end it fails, and when researching this error, it seems to be very vague and I was wondering if someone can help me. Below is the log, but I have taken parts out of it that are not relevant.
    Import: Release 10.2.0.4.0 - Production on Wednesday, 16 April, 2008 15:22:18
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYSTEM"."IMPGEMDEV041608" successfully loaded/unloaded
    Starting "SYSTEM"."IMPGEMDEV041608": system/********@iworksdb directory=DATA_PUMP_DIR dumpfile=expdpgemdev.dmp job_name=impgemdev041608 TABLE_EXISTS_ACTION=APPEND SCHEMAS=GEMDEV LOGFILE=IMPIWORKS_BOON.log REMAP_SCHEMA=GEMDEV:IWORKS REMAP_TABLESPACE=IWORKS_INDEX:IWORKS_IDX REMAP_TABLESPACE=IWORKS_IOT:IWORKS_IDX REMAP_TABLESPACE=IWORKS_TABLES:IWORKS_TABLES EXCLUDE=GRANT exclude=statistics STREAMS_CONFIGURATION=N
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"IWORKS" already exists
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
    ORA-31684: Object type TYPE:"IWORKS"."T_NUMBER_TAB" already exists
    ORA-31684: Object type TYPE:"IWORKS"."T_VARCHAR2_TAB" already exists
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    ORA-39152: Table "IWORKS"."SYS_TOKENTYPE" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
    ORA-31684: Object type PACKAGE:"IWORKS"."CONT_FEE_DEF_UC" already exists
    ORA-31684: Object type PACKAGE:"IWORKS"."COPAYCALCFLAG" already exists
    ORA-31684: Object type VIEW:"IWORKS"."VWTREE" already exists
    ORA-31684: Object type VIEW:"IWORKS"."V_ROUTE_DTL_GROUP" already exists
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
    Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCOBJ
    ORA-39083: Object type PROCOBJ failed to create with error:
    ORA-06550: line 2, column 11:
    PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:
    := . ( @ % ;
    The symbol ":=" was substituted for "VARCHAR2" to continue.
    ORA-06550: line 3, column 12:
    PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:
    := . ( @ % ;
    The symbol ":=" was substituted for "VARCHAR2" to continue.
    ORA-06550: line 4, column 19:
    PLS-00103: Encountered the symbol "VARCHAR
    ORA-39083: Object type PROCOBJ failed to create with error:
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol "RAYSQLACCESS9889405" when expecting one of the following:
    * & = - + ; < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
    LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
    The symbol "* was inserted before "RAYSQLACCESS9889405" to continue.
    ORA-06550: line 7, column 17:
    PLS-00103: Encountered the symbol "SQL" when expectin
    Job "SYSTEM"."IMPGEMDEV041608" completed with 2831 error(s) at 15:30:37
    Any help will be much appreciated

    I can not seem to find any object named PROCOBJ.
    As for the object called RAYSQLACCESS9889405...no idea what this is.
    I checked the source for any invalid objects and none.

  • Impdp ORA-31684: Object type USER:"USERNAME" already exists

    Hi,
    I use expdp/impdp to duplicate one schema in a database like this:
    expdp system/manager@DB SCHEMAS=SCHEMANAME
    then I drop destination Schema like this
    drop user SCHEMANAME_NEW cascade;
    create user SCHEMANAME_NEW identified by PW default tablespace TABLESPACENAME;
    and impdp like this
    impdp system/manager@DB FULL=Y REMAP_SCHEMA=SCHEMANAME:SCHEMANAME_NEW
    and I get this error:
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"SCHEMANAME_NEW" already exists
    I know that the import was successful, but this error breaks my hudson build.
    I tried to add exclude like this
    impdp system/manager@DB FULL=Y REMAP_SCHEMA=SCHEMANAME:SCHEMANAME_NEW exclude=USER:\"=\'SCHEMANAME_NEW\'\"
    I need to get rid of this error.
    Thx

    You get this error because you precreated the user. All you need to do is add
    exclude=user
    to either your expdp or impdp command. Or let impdp create the user for you. If you need it to have a different tablespace you can just use the
    remap_tablespace=old_tbs:new_tbs
    This should take care of the default tablespace on the create user command.
    Dean

  • Processing  SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX

    I tried to import my 20GB data into my database but it is pending/hanging almost 1 day at this line, which is
    Processing SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX .
    My db version is :Version 11.1.0.7.0
    What could be the reason? Why it is waiting so long on this line? It is locking indexes?

    Windows Server 2008 R2 Enterprise
    impdp user/pass@DB exclude=statistics schemas=user dumpfile=a.dmp log=a.log
    Import: Release 11.1.0.7.0 - 64bit Production on Friday, 10 August, 2012 17:04:03
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "ODB"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "ODB"."SYS_IMPORT_FULL_01": odb/********@TEST parallel=4 dumpfile=UAT_08082012.DMP
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"ODB" already exists
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
    Processing object type SCHEMA_EXPORT/DB_LINK
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    . . imported "ODB"."PN_INVENTORY_HISTORY" 218.6 MB 1302517 rows
    SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
    and waiting here since 1 day..
    alert log file has some warnings like:
    <txt>Warning: drop_queue_table: No evaluation for the queue table: ODB.ROS_IN_QUEUE_TABLE
    </txt>
    </msg>
    <msg time='2012-08-11T00:29:21.710+03:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    Thread 1 advanced to log sequence 91 (LGWR switch)
    Current log# 1 seq# 91 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO01.LOG
    Sat Aug 11 10:16:16 2012
    Thread 1 advanced to log sequence 92 (LGWR switch)
    Current log# 2 seq# 92 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO02.LOG
    Sat Aug 11 10:16:40 2012
    Thread 1 cannot allocate new log, sequence 93
    Checkpoint not complete_
    Current log# 2 seq# 92 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO02.LOG_
    Thread 1 advanced to log sequence 93 (LGWR switch)_
    Current log# 3 seq# 93 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO03.LOG_
    Thread 1 cannot allocate new log, sequence 94_
    Checkpoint not complete_
    Current log# 3 seq# 93 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO03.LOG_
    Thread 1 advanced to log sequence 94 (LGWR switch)_
    Current log# 1 seq# 94 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO01.LOG_
    Sat Aug 11 10:16:56 2012_
    Thread 1 cannot allocate new log, sequence 95_
    Checkpoint not complete_
    Current log# 1 seq# 94 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO01.LOG
    Thread 1 advanced to log sequence 95 (LGWR switch)
    Current log# 2 seq# 95 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO02.LOG
    <txt>Errors in file d:\app\traxadmin\diag\rdbms\test\test\trace\test_j003_6036.trc:
    ORA-12012: error on auto execute of job 74639
    ORA-20111: ORA-24010: QUEUE ODB.IFACE_AEX_IN_Q does not exist
    ORA-06512: at &quot;ODB.PKG_IFACE_QUEUE&quot;, line 80
    ORA-24010: QUEUE ODB.IFACE_AEX_IN_Q does not exist
    ORA-06512: at &quot;ODB.PKG_IFACE_QUEUE&quot;, line 48
    ORA-06512: at &quot;ODB.PKG_AEX_INBOUND&quot;
    Edited by: user638937 on 11.Ağu.2012 00:27

  • IMPDP hangs but no error messages

    I have completed several schema level imports into a new 11.1.0.6 database on a new Windows Server 2003 64 bit server quad core with 16GB of RAM, but one schema gets to the "TABLE_DATA" stage and seems to hang, it never progresses but does not stop or display any error messages either.
    The impdp output is below, that is as far as it gets, then stops. Plenty of tablespace available, no issues can be seen.
    It is exported from an 11.1.0.6 database as well.
    Import: Release 11.1.0.6.0 - 64bit Production on Wednesday, 03 March, 2010 22:55:31
    Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "USERBOB"."USERBOB_04MAR" successfully loaded/unloaded
    Starting "USERBOB"."USERBOB_04MAR": USERBOB/******** directory=exportimport11g schemas=USERBOB dumpfile=USERBOB_04MAR_%u.dmp job_name=USERBOB_04MAR logfile=USERBOB_04MAR.log table_exists_action=REPLACE parallel=4
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"USERBOB" already exists
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM
    Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
    Processing object type SCHEMA_EXPORT/TYPE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type SCHEMA_EXPORT/DB_LINK
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    Processing object type SCHEMA_EXPORT/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    I left it running 10 hours overnight with no change, way longer than would be needed. Also tried a second export just in case the first was corrupt.
    When I use the impdp status command, the output looks fine as shown below, with state=EXECUTING and error count=0.
    Import> status
    Job: USERBOB_imp3_03MAR2010
    Operation: IMPORT
    Mode: FULL
    State: EXECUTING
    Bytes Processed: 0
    Current Parallelism: 4
    Job Error Count: 0
    Dump File: G:\exportimport11g\USERBOB_04MAR_%u.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_01.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_02.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_03.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_04.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_05.dmp
    Worker 1 Status:
    Process Name: DW01
    State: EXECUTING
    Object Schema: USERBOB
    Object Name: SCHEDULER$_JOB_ARG
    Object Type: SCHEMA_EXPORT/TABLE/TABLE
    Completed Objects: 456
    Total Objects: 457
    Worker Parallelism: 1
    I cannot figure out whats wrong. I can see the table definitions get created when I look at the user's schema in sql developer, but the tables don't have any data in them, so I eventually killed the job.
    I may try an import with EXCLUDE=statistics,indexes as my next best guess. Any help appreciated.
    Edited by: user12152237 on Mar 4, 2010 7:07 PM

    Hi,
    The issue has nothing to do with statistics or indexes. The job was in the process of starting to load data. If you just killed the job and did not remove the datapump_job information, the job should be restartable. Can you try that? You would use this command:
    impdp user/password attach="USERBOB"."USERBOB_04MAR"
    you will get a command prompt like:
    IMPDP>
    You want to type
    IMPDP> CONTINUE
    at the prompt.
    The part that is strange about your message is this:
    The last line in your log file is:
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    which means that the job was in the process of loading data into the tables. But the status shows that tables are being worked on.
    Job: USERBOB_imp3_03MAR2010
    Operation: IMPORT
    Mode: FULL
    State: EXECUTING
    Bytes Processed: 0
    Current Parallelism: 4
    Job Error Count: 0
    Dump File: G:\exportimport11g\USERBOB_04MAR_%u.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_01.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_02.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_03.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_04.dmp
    Dump File: G:\exportimport11g\USERBOB_04MAR_05.dmp
    Worker 1 Status:
    Process Name: DW01
    State: EXECUTING
    Object Schema: USERBOB <---------------
    Object Name: SCHEDULER$_JOB_ARG <-----------------
    Object Type: SCHEMA_EXPORT/TABLE/TABLE <-----------------
    Completed Objects: 456
    Total Objects: 457
    Worker Parallelism: 1
    It looks like table userbob.scheduler$_job_art is trying to be created. Can you check to see if this table exists.
    Dean

  • Ora-31684: Object type already exists with TABLE_EXISTS_ACTION=REPLACE

    I want to export using expdp my procedures / functions /packages and triggers from a dev system use impdp to import the new versions into a test system
    However, I just get ora-31684: Object type PACKAGE_BODY already exists all the time
    I have set TABLE_EXISTS_ACTION=REPLACE but that has made no difference
    expdp username/xxxxx@devdb parfile=scripts/cloud_code.par
    cloud_code.par:
    SCHEMAS=aspasia
    DIRECTORY=cloud_upg
    DUMPFILE=cloud_code.dmp
    LOGFILE=cloud_codeexp.log
    INCLUDE=procedure
    INCLUDE=function
    INCLUDE=package
    INCLUDE=trigger
    # INCLUDE=index
    # INCLUDE=sequence
    # INCLUDE=synonym
    JOB_NAME=CLOUD_CODE
    impdp username/xxxxx@testdb SCHEMAS=aspasia DIRECTORY=cloud_upg DUMPFILE=cloud_code.dmp LOGFILE=cloud_codeimp.log TABLE_EXISTS_ACTION=REPLACE
    sample from the logfile:
    Import: Release 11.2.0.1.0 - Production on Mon Jan 16 10:53:43 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Master table "ASPASIA"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
    Starting "ASPASIA"."SYS_IMPORT_SCHEMA_01": username/********@testdb SCHEMAS=aspasia DIRECTORY=cloud_upg DUMPFILE=cloud_code.dmp LOGFILE=cloud_codeimp.log TABLE_EXISTS_ACTION=REPLACE
    Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SERVICE_LEVELS_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SERVICE_LEVEL_OPT_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SERV_LEV_CHRG_SETUP_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SHEET_SETUP_DML_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SHEET_SETUP_FORM_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SITES_DML_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SITES_FORM_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SITES_UTL_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SITE_EMP_VIEWINGS_DML_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SPA_GMAIL" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SPA_OAUTH" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SUMMARY_PDF_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SUPPLIERS_DML_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SUPPLIER_FORM_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SUPPLIER_UTL_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."SYSTEM_IMAGES_DML_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."TASKS_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."TENANCY_REPORTS_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."TENANTS_DML_K" already exists
    ORA-31684: Object type PACKAGE_BODY:"ASPASIA"."TEXT_MESSAGING_K" already exists
    I've searched the forums and can't seem to find a solution as everyone just recommends TABLE_EXISTS_ACTION=REPLACE
    I have also tried adding INCLUDE=PACKAGE_BODY to the impdb command but that still gives the same result and none of my packages have been updated
    Thanks
    Robert

    Thanks for your reply, that would explain why it doesn't work :)
    I am trying to update the test databases code with all the code from the development system (serveral hundred objects) ... I can just genereate and run a "drop <object_type> <object_name>" from user_objects on the test database first .... or just create scripts from user_source .... but it would be easier (and save a little time) just to export and import in one go

  • Full import/export from 10gR2 to 11gR1 / ORA-39083: Object type PROCACT_SYS

    Hi,
    I did a full db export/import (data pump - skipped existing objects) from 10gR2 to 11gR1 (win2003 server). it looks like everything went fine except with this error:
    is this a serious error? what should I do to fix this error?
    ORA-39083: Object type PROCACT_SYSTEM failed to create with error:
    ORA-20000: Incompatible version of Workspace Manager Installed
    Failing sql is:
    BEGIN
    declare ver varchar2(100) ; dummy integer; compile_exception EXCEPTION; PRAGMA EXCEPTION_INIT(compile_exception, -06550); invalid_table EXCEPTION; PRAGMA EXCEPTION_INIT(invalid_table, -00942); procedure createErrorProc is begin execute immediate 'create or replace function system.wm$_check_install return boolean is begin return true ; end;' ; end ; begin
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
    ORA-39083: Object type PROCOBJ failed to create with error:
    ORA-29357: object AUTO_TASK_CONSUMER_GROUP already exists
    Failing sql is:
    BEGIN
    dbms_resource_manager.create_consumer_group('AUTO_TASK_CONSUMER_GROUP','System maintenance task consumer group','ROUND-ROBIN');COMMIT; END;
    ORA-39083: Object type PROCOBJ failed to create with error:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'BMS_SCHEDULER.DISABLE' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Failing sql is:
    BEGIN
    bms_scheduler.disable( 'SYS."WEEKNIGHT_WINDOW"',force=>TRUE);
    dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','SCHEDULE_NAME');
    dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','START_DATE');
    dbms_scheduler.set_attribute_null( 'SYS."WEEKNIGHT_WINDOW"','END_
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
    Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE
    ORA-39083: Object type TABLE failed to create with error:
    ORA-00439: feature not enabled: Partitioning
    Failing sql is:
    CREATE TABLE "SYSTEM"."LOGSTDBY$APPLY_PROGRESS" ("XIDUSN" NUMBER, "XIDSLT" NUMBER, "XIDSQN" NUMBER, "COMMIT_SCN" NUMBER, "COMMIT_TIME" DATE, "SPARE1" NUMBER, "SPARE2" NUMBER, "SPARE3" VARCHAR2(2000)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE( BUFFER_POOL DEFAULT) TABLESPACE "SYSAUX" PARTITION BY RANGE ("COMMIT_SCN") (PARTITION "P0" VALUES LESS THAN (0) PCTFREE 10 PCTUSED 4
    ORA-39151: Table "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_T" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_H" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    Edited by: Odeh on Jul 29, 2009 12:49 PM
    Edited by: Odeh on Jul 29, 2009 1:12 PM

    Pl see if these MOS Docs help
    730373.1 - ORA-39083 ORA-20000 Incompatible Version of Workspace Manager Installed
    743097.1 - IMP-00017 ORA-20000 Importing older version of OWM into a higher version
    HTH
    Srini

  • ORA- 31684 Object type already exists while import

    Hi All,
    I wrongly imported a user schema "AP_PD@SRV01" to user "A_IT@SRV02" (Instead of "AP_IT@SRV02").
    User AP_IT and Tablespaces are already exists and used remap option while import.
    remap_schema=AP_PD:A_IT (instead of mapping to user AP_IT, I misspelled as A_IT)
    remap_tablespace=AP_PD_DATA:AP_IT_DATA remap_tablespace=AP_PD_INDEX:AP_IT_INDEX
    After successful import to "A_IT@SRV02", I deleted the user "A_IT"
    SQL> DROP USER A_IT CASCADE;
    I restarted the import to the correct user schema .. i.e AP_IT@SRV02
    remap_schema=AP_PD:AP_IT remap_tablespace=AP_PD_DATA:AP_IT_DATA remap_tablespace=AP_PD_INDEX:AP_IT_INDEX
    and import was completed with the following errors
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"AP_IT" already exists
    Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
    ORA-31684: Object type PACKAGE:"AP_IT"."DBMS_NUMSYSTEM" already exists
    Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
    ORA-31684: Object type PACKAGE_BODY:"AP_IT"."DBMS_NUMSYSTEM" already exists
    Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 3 error(s) at 07:53:32
    My questions ...
    1.Can I assume that import was success as these objects were already exists.
    2.Does this effect in anyway to the end users if I ignore this errors assuming import was successful.
    3.If import is not a success then what should be my next step to import successfully.
    Thanks.

    Ven wrote:
    Hi All,
    I wrongly imported a user schema "AP_PD@SRV01" to user "A_IT@SRV02" (Instead of "AP_IT@SRV02").
    User AP_IT and Tablespaces are already exists and used remap option while import.
    remap_schema=AP_PD:A_IT (instead of mapping to user AP_IT, I misspelled as A_IT)
    remap_tablespace=AP_PD_DATA:AP_IT_DATA remap_tablespace=AP_PD_INDEX:AP_IT_INDEX
    After successful import to "A_IT@SRV02", I deleted the user "A_IT"
    SQL> DROP USER A_IT CASCADE;
    I restarted the import to the correct user schema .. i.e AP_IT@SRV02
    remap_schema=AP_PD:AP_IT remap_tablespace=AP_PD_DATA:AP_IT_DATA remap_tablespace=AP_PD_INDEX:AP_IT_INDEX
    and import was completed with the following errors
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"AP_IT" already exists
    Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
    ORA-31684: Object type PACKAGE:"AP_IT"."DBMS_NUMSYSTEM" already exists
    Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
    ORA-31684: Object type PACKAGE_BODY:"AP_IT"."DBMS_NUMSYSTEM" already exists
    Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 3 error(s) at 07:53:32
    My questions ...
    1.Can I assume that import was success as these objects were already exists.
    2.Does this effect in anyway to the end users if I ignore this errors assuming import was successful.
    3.If import is not a success then what should be my next step to import successfully.
    Thanks.You mentioned AP_IT schema and tablespaces already exist before doing first import itself.
    Did you check the list of objects in AP_IT schema before performing import?
    The following error is just an informational message and can be ignored:
    ORA-31684: Object type USER:"AP_IT" already exists
    But, the other 2 errors which says that package +"AP_IT"."DBMS_NUMSYSTEM" already exists+ means you have package in AP_IT schema and it wasn't replaced from the dump you imported. If you need the package from the dumpfile, you can drop the package and can import PACKAGE alone.
    Hope this helps.
    Regards,
    Murali Mohan

  • ORA-39083: Object type TRIGGER failed to create with error:

    i m getting these two error when i import data using impdp.
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-00942: table or view does not exist
    i have exported (expdp) data from production db, when i importing (impdp) the dump file to the test db i m geting the above two errors.
    example:
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    CREATE TRIGGER "NEEDLE"."CC_BCK_TRG" BEFORE INSERT OR UPDATE
    ON NIIL.cc_bck_mgmt REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
    DECLARE
    w_date DATE;
    w_user VARCHAR2(10);
    BEGIN
    SELECT USER,SYSDATE INTO w_user,w_date FROM DUAL;
    IF INSERTING THEN
    :NEW.cretuser :=w_user;
    :NEW.cretdate :=w_date;
    END IF;
    IF UPDATING THEN
    :NEW.modiuser :=w_user;
    :NEW.modidate :=w_date;
    END IF;
    END;
    status of the above trigger in pro db is valid. and source table also exist even though i m getting error when i import
    please suggest me...

    perhaps you don't have table... (impdp created trigger before create table)
    check about "NIIL.cc_bck_mgmt" table.
    and then create it (trigger) manual ;)
    Good Luck.

  • Partitioned IOT of Object Type - mapping table not allowed for bitmap index

    Hi,
    looks like a feature available for standard Partitioned IOTs is not supported for object based tables, namely the MAPPING TABLE construct to support secondary local bitmap indexes.
    Can you confirm behaviour is as expected/documented?
    If so, is a fix/enhancement to support mapping table for object-based Partitioned IOTs in the pipeline?
    Results for partition-wise load using pipelined table function are very good, look-ups across tens of millions of rows are excellent.
    Environment = Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    OS = Oracle Enterprise Linux Server release 5.2 (Carthage) 2.6.18 92.el5 (32-bit)
    Here's the potted test-case...
    1) First the non object based Partitioned IOT - data is range-partitioned across the alphabet
    CREATE TABLE IOT_Table (
    textData VARCHAR2(10),
    numberData NUMBER(10,0),
    CONSTRAINT IOT_Table_PK PRIMARY KEY(textData))
    ORGANIZATION INDEX MAPPING TABLE PCTFREE 0 TABLESPACE Firewire
    PARTITION BY RANGE (textData)
    (PARTITION Text_Part_A VALUES LESS THAN ('B') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_B VALUES LESS THAN ('C') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_C VALUES LESS THAN ('D') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_D VALUES LESS THAN ('E') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_E VALUES LESS THAN ('F') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_F VALUES LESS THAN ('G') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_G VALUES LESS THAN ('H') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_H VALUES LESS THAN ('I') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_I VALUES LESS THAN ('J') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_J VALUES LESS THAN ('K') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_K VALUES LESS THAN ('L') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_L VALUES LESS THAN ('M') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_M VALUES LESS THAN ('N') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_N VALUES LESS THAN ('O') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_O VALUES LESS THAN ('P') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_P VALUES LESS THAN ('Q') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_Q VALUES LESS THAN ('R') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_R VALUES LESS THAN ('S') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_S VALUES LESS THAN ('T') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_T VALUES LESS THAN ('U') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_U VALUES LESS THAN ('V') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_V VALUES LESS THAN ('W') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_W VALUES LESS THAN ('X') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_X VALUES LESS THAN ('Y') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_Y VALUES LESS THAN ('Z') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_Z VALUES LESS THAN (MAXVALUE) PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0))
    NOLOGGING PARALLEL -- FLASHBACK ARCHIVE IOT_Flashback_Data
    SQL> table IOT_TABLE created.
    2) Create the local secondary bitmap index utilising the underlying mapping table
    CREATE BITMAP INDEX IOT_Table_BMI1 ON IOT_Table (numberData)
    LOCAL STORAGE (INITIAL 1M PCTINCREASE 0 NEXT 512K) NOLOGGING PARALLEL;
    SQL> bitmap index IOT_TABLE_BMI1 created.
    3) Quick test to confirm all ok
    SQL> INSERT INTO IOT_Table VALUES ('ABC123',100);
    SQL> 1 rows inserted.
    SQL> SELECT * FROM IOT_Table;
    TEXTDATA NUMBERDATA
    ABC123     100
    4) Now create a minimal object type to use as the template for object table
    CREATE TYPE IOT_type AS OBJECT
    textData VARCHAR2(10 CHAR),
    numberData NUMBER(10,0)
    ) FINAL
    SQL> TYPE IOT_type compiled
    5) Attempt to create an object-based range partitioned IOT, including MAPPING TABLE clause as per step (1)
    CREATE TABLE IOTObj_Table OF IOT_type (textData PRIMARY KEY)
    OBJECT IDENTIFIER IS PRIMARY KEY ORGANIZATION INDEX
    MAPPING TABLE -- we'd like to use this feature to enable use of Bitmap Indexes...
    PCTFREE 0 TABLESPACE Firewire
    PARTITION BY RANGE (textData)
    (PARTITION Text_Part_A VALUES LESS THAN ('B') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_B VALUES LESS THAN ('C') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_C VALUES LESS THAN ('D') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_D VALUES LESS THAN ('E') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_E VALUES LESS THAN ('F') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_F VALUES LESS THAN ('G') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_G VALUES LESS THAN ('H') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_H VALUES LESS THAN ('I') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_I VALUES LESS THAN ('J') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_J VALUES LESS THAN ('K') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_K VALUES LESS THAN ('L') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_L VALUES LESS THAN ('M') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_M VALUES LESS THAN ('N') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_N VALUES LESS THAN ('O') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_O VALUES LESS THAN ('P') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_P VALUES LESS THAN ('Q') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_Q VALUES LESS THAN ('R') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_R VALUES LESS THAN ('S') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_S VALUES LESS THAN ('T') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_T VALUES LESS THAN ('U') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_U VALUES LESS THAN ('V') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_V VALUES LESS THAN ('W') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_W VALUES LESS THAN ('X') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_X VALUES LESS THAN ('Y') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_Y VALUES LESS THAN ('Z') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
    PARTITION Text_Part_Z VALUES LESS THAN (MAXVALUE) PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0))
    NOLOGGING PARALLEL -- FLASHBACK ARCHIVE IOT_Flashback_Data
    This errors out with the following...
    SQL Error: ORA-25182: feature not currently available for index-organized tables
    25182. 00000 - "feature not currently available for index-organized tables"
    *Cause:    An attempt was made to use one or more of the following feature(s) not
    currently supported for index-organized tables:
    CREATE TABLE with LOB/BFILE/VARRAY columns,
    partitioning/PARALLEL/CREATE TABLE AS SELECT options,
    ALTER TABLE with ADD/MODIFY column options, CREATE INDEX
    *Action:   Do not use the disallowed feature(s) in this release.
    6) Re-running the create table statement in step 5 without the MAPPING TABLE clause works fine. Not surprisingly an attempt to create a secondary local bitmap index on this table fails as there's no mapping table, like so...
    CREATE BITMAP INDEX IOTObj_Table_BMI1 ON IOTObj_Table (numberData)
    LOCAL STORAGE (INITIAL 1M PCTINCREASE 0 NEXT 512K) NOLOGGING PARALLEL;
    CREATE TABLE with LOB/BFILE/VARRAY columns,
    partitioning/PARALLEL/CREATE TABLE AS SELECT options,
    ALTER TABLE with ADD/MODIFY column options, CREATE INDEX
    *Action:   Do not use the disallowed feature(s) in this release.
    CREATE BITMAP INDEX IOTObj_Table_BMI1 ON IOTObj_Table (numberData)
    LOCAL STORAGE (INITIAL 1M PCTINCREASE 0 NEXT 512K) NOLOGGING PARALLEL
    Error at Command Line:99 Column:13
    Error report:
    SQL Error: ORA-00903: invalid table name
    00903. 00000 - "invalid table name"
    7) Creating a secondary local b-tree index is fine, like so...
    SQL> CREATE INDEX IOTObj_Table_I1 ON IOTObj_Table (numberData)
    LOCAL STORAGE (INITIAL 1M PCTINCREASE 0 NEXT 512K) NOLOGGING PARALLEL;
    index IOTOBJ_TABLE_I1 created.
    8) A quick test to ensure object table ok...
    SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('DEF456',500));
    SQL> 1 rows inserted.
    SQL> SELECT * FROM IOTObj_Table;
    TEXTDATA NUMBERDATA
    DEF456     500

    Thanks Dan,
    the intention is to range partition based on the initial character, so A* -> Text_Part_A, B* -> Text_Part_B, and so on.
    Here's an example, using an empty IOTObj_Table as created previously.
    1) Set up & confirm some test data (two 'D's, one 'N', and two 'Z's)
    SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('DEF456',500));
    SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('DDD111',510));
    SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('N3000',515));
    SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('ZZ1212',520));
    SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('Z111X',530));
    SQL> COMMIT;
    SQL> SELECT * FROM IOTObj_Table;
    TEXTDATA NUMBERDATA
    DDD111     510
    DEF456     500
    N3000     515
    Z111X     530
    ZZ1212     520
    2) Just to prove our IOT is enforcing the Primary Key based on the TextData attribute, try to insert a duplicate
    SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('Z111X',530));
    Error starting at line 141 in command:
    INSERT INTO IOTObj_Table VALUES (IOT_Type('Z111X',530))
    Error report:
    SQL Error: ORA-00001: unique constraint (OCDataSystems.SYS_IOT_TOP_84235) violated
    00001. 00000 - "unique constraint (%s.%s) violated"
    *Cause:    An UPDATE or INSERT statement attempted to insert a duplicate key.
    For Trusted Oracle configured in DBMS MAC mode, you may see
    this message if a duplicate entry exists at a different level.
    *Action:   Either remove the unique restriction or do not insert the key.
    3) Now confirm that our data has been slotted into the range-based partition we expect using the PARTITION clause of SELECT...
    - The two 'D's...
    SQL> SELECT * FROM IOTObj_Table PARTITION (Text_Part_D);
    TEXTDATA NUMBERDATA
    DDD111     510
    DEF456     500
    - The single 'N'...
    SQL> SELECT * FROM IOTObj_Table PARTITION (Text_Part_N);
    TEXTDATA NUMBERDATA
    N3000     515
    - The two 'Z's...
    SQL> SELECT * FROM IOTObj_Table PARTITION (Text_Part_Z);
    TEXTDATA NUMBERDATA
    Z111X     530
    ZZ1212     520
    4) And to wrap up confirm an empty partition
    SELECT * FROM IOTObj_Table PARTITION (Text_Part_W);

  • How to trigger a form based on object type and process type

    Hi all,
    I am new into SRM.. I have been asked to develop a form by cloning an existing standard form..
    Using bbp_output_change_sf badi you can trigger the form by passing the object type but the scenario is such that depending on the object type and process type the new form should be triggered.
    The parameter iv_object_type passes the object type but how could i pass the process type ?
    In the badi I noticed an import parameter is_event that has a field called transction_type that carries the process type but this field never got populated when i checked using debugger.
    Please help as to how i can trigger the form based on the object_type and the process_type.
    Thanx in advance.

    Thanx again Jay Yang.. Well is there any possibility that you could get the items that were confirmed..
    Let me eleborate..
    Suppose in the PO u order an item for 10 nos and 5 gets confirmed and u return 2..
    Well in my case it is that i need to fill up a field Qty returned / Qty confirmed..
    I was able to get the number of items from the PO by passing the the passing the parameter to the FM "bbp_pd_conf_getdetaill"
    but i dont know how to get the number of items been confirmed..
    The quantity field in the line item structure gives me the number of items returned..
    Can u tell me how to get the number of items been confirmed....

  • IDOC - process code with error "Application Object Type not planned'

    Hi all,
    I am doing an inbound idoc.... in TCODE we42, i trying to put function module which i created, attached to the process code.
    However, when i put my function module ZIDOC_INBOUND to the process code... it comes out error, 'Application Object Type not planned.'
    Why is this so?
    Please advice...
    Thanks and regards...
    William Wilstroth

    HI all,
    I had solved this problem. I should have gone to we57 to tie the function module.
    thanks.
    William Wilstroth

  • Method 'PROCESS' is not defined for object type 'BUS2081'

    Hi All,
    I am using a workflow for incoming invoice approval using WS20001004. I prepared one version for this. The standard business methos bus2081 i delegated to zbus2081. Here i placed one decision step for reject or approve. In the same task in inbox i can see the document i can see as attachment. Now the issue is after seeing the attachment when i click on task in  my inbox it status is changed to red and i can  not process it further.In log i can see the error like Method 'PROCESS' is not defined for object type 'BUS2081'. This method i do not have in standard or in delegated one. I was struck here. Pleas help in this.
    Regards,
    Madhu.

    Hi,
    "Here i placed one decision step for reject or approve." if your workitem is based on standard user decision step type of workflow, then the business object in underlying task should be 'DECISION' and method should be 'PROCESS'. I think in the task you have put your custom business object instead of business object 'DECISION'. This could be the reason you are facing error.
    Regards,
    Ibrahim

  • Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY- ERROR EVENT_RAISED - Error updating the process object

    Hi All
    I have set up a simple custom HCM process and Form regarding Infotype TO CREATE AND CHANGE POSITION. I have checked the process and form consistency and it seems fine. Now when I run the process from HRASR_DT it generates a process number but it also gives an error workflow could not start.I get following error (SWIA log - Step history)
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Exception occurred - Error when starting work item 000000007031
    PROCESS_NODE - Error when processing node '0000000014' (ParForEach index 000000)
    CREATE - Error when creating a component of type 'Step'
    CREATE_WIM_HANDLE - Error when creating a work item
    CREATE_VIA_WFM - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event CREATED and (target) status
    EVENT_RAISED - Error updating the process object
    Executing flow work item - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY->ERROR
    EVENT_RAISED - Error updating the process object
    Executing flow work item - Transaction brackets of the workflow has been damaged
    Executing flow work item - Work item 000000007031: Object FLOWITEM method EXECUTE cannot be executed
    Executing flow work item - Error when processing node '0000000014' (ParForEach index 000000)
    Points to be noted:
    1) I have searched few SAP notes such as 1384961(Notes for 6.0.4) but our system is in higher level patch 6.0.5
    2) WF-BATCH have SAP_NEW and SAP_ALL authorization.
    Appreciate your valuable suggestions.
    Thanks
    Ragav

    Hi Ragav
    did you try to debug this? maybe something is missing in config of P&F?
    Since you are on 605, the following note would be there in your system....use it to debug:
    1422496 - Debugging background workflow tasks in HCM P&F
    This will help you find the root cause.
    regards,
    modak

  • Best way to do a Object which holds a collection of another object type.

    I'm writing a caching object to store another object. The cache is only valid for a session, so I want a store the data in a nested table.
    I have try to simplify my example down to its core.
    How do I make this work and what is the best to index the index the items stored for fastest retrieval.
    CREATE OR REPLACE TYPE ty_item AS OBJECT (
    id_object VARCHAR2 (18),
    ORDER MEMBER FUNCTION compare (other ty_item)
    RETURN INTEGER
    CREATE OR REPLACE TYPE BODY ty_item
    AS
    ORDER MEMBER FUNCTION compare (other ty_item)
    RETURN INTEGER
    IS
    BEGIN
    IF SELF.id_object < other.id_object
    THEN
    RETURN -1;
    ELSIF SELF.id_object > other.id_object
    THEN
    RETURN 1;
    ELSE
    RETURN 0;
    END IF;
    END;
    END;
    CREATE OR REPLACE TYPE ty_item_store AS TABLE OF ty_item;
    CREATE OR REPLACE TYPE ty_item_holder AS OBJECT (
    CACHE ty_item_store,
    MEMBER FUNCTION get (p_id_object IN VARCHAR2)
    RETURN REF ty_item,
    MEMBER FUNCTION find (p_id_object IN VARCHAR2)
    RETURN REF ty_item,
    MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    CREATE OR REPLACE TYPE BODY ty_item_holder
    AS
    MEMBER FUNCTION get (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    rtn REF ty_item;
    BEGIN
    rtn := find (p_id_object);
    IF rtn IS NULL
    THEN
    rtn := ADD (p_id_object);
    END IF;
    RETURN rtn;
    END;
    MEMBER FUNCTION find (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    rtn ty_item;
    BEGIN
    SELECT VALUE (ch)
    INTO rtn
    FROM CACHE ch
    WHERE ch.id_object = p_id_object;
    RETURN rtn;
    END;
    MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    item ty_item;
    BEGIN
    item := ty_item (p_id_object);
    INSERT INTO CACHE
    VALUES (item);
    END;
    END;
    /

    Best way to do a Object which holds a collection of another object type. The best place for data in a database is.. no real surprise.. in tables. If that data is temporary of nature, global temporary tables cater for that.
    Storing/caching data using PL/SQL requires very expensive private process memory (PGA) from the server. This does not scale.
    I'm writing a caching object to store another object. Irrespective of how l33t your haxor skillz are, you will not be able to code as a sophisticated, performant and scalable PL/SQL data cache, as what already exists (as the database buffer cache) in Oracle.
    The cache is only valid for a session, so I want a store the data in a nested table.Not sure how you take one (session local data) to mean the other (oh, let's use a nested table).
    Session local data can be done using PL/SQL static variables. Can be done using name-value pairs residing in a context (Oracle namespace). Can be done using a global temporary table.
    The choice is dependent on the requirements that need to be addressed. However, the term +"caching+" has very specific connotations that say that a global temporary table is likely the best suited candidate.

Maybe you are looking for

  • Need to run firefox 3.6 because of un-supported plugin.

    Hello, I am looking for advice on how to run Firefox 3.6 as securely as possible. Yes I realize that is an outdated and insecure, but I have no choice. I use a commercial product called Kurzweil Reader. It is a screen reader designed specifically for

  • Itab declaration include structure error

    hi , types : begin of it_address_info_type,        include structure zadrc, end of it_address_info_type. here zadrc is a structure. why its giving error. shall i need to change this structure to table? if yes how i will do that?

  • How to Disable Outlook for Zen V P

    I just bought a Zen V Plus and am anxious to fire and load it up. However, when I plug it in, it wants to sync and takes me to sync-ing with Micrsoft Outlook. I don't use this program, so how do I tell it I don't want to do that? I may have inadverte

  • [KDE 4.2][Konqueror]Missing 'allow sites set fonts' option.

    I'm pretty sure, konqueror could disable custom fonts on websites, so that all sited were displayed with the same font. But I cannot find this feature in kde4.2's konq. Was this option removed, or am I completely mistaken?

  • Why is there an odd delay when invoking the task switcher w/"Reduce motion" off?

    Sometime after updating to iOS 7.1 (and 7.1.1), I noticed that when I double-clicked the home button in order to invoke the task switcher (and when I pressed on an app preview or icon in order to switch to it), that there was a 2-3 second delay befor