Impdump fails with ORA-06512: at "SYS.KUPW$WORKER", line 6345

Hi All,
We are trying to import a data from PROD to test using datapump utility.
Its is failing with the below error.
Import: Release 10.2.0.4.0 - 64bit Production on Friday, 01 July, 2011 11:32:12
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS"."SYS_IMPORT_SCHEMA_02" successfully loaded/unloaded
Starting "SYS"."SYS_IMPORT_SCHEMA_02": /******** AS SYSDBA remap_tablespace=FCATDB:USERS SCHEMAS=FCATDB:FCATDB directory=EXPDP_DIR dumpfile=expdp_fcatdb.dmp logfile=probin1.log
Processing object type SCHEMA_EXPORT/USER
ORA-39083: Object type USER failed to create with error:
ORA-02380: profile BOB does not exist
Failing sql is:
CREATE USER "FCATDB" IDENTIFIED BY VALUES '57433E901EB2CA43' DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" PROFILE "BOB"
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
ORA-39083: Object type SYSTEM_GRANT failed to create with error:
ORA-01917: user or role 'FCATDB' does not exist
Failing sql is:
GRANT SELECT ANY SEQUENCE TO "FCATDB"
ORA-39083: Object type SYSTEM_GRANT failed to create with error:
ORA-01917: user or role 'FCATDB' does not exist
Failing sql is:
GRANT CREATE SYNONYM TO "FCATDB"
ORA-39083: Object type SYSTEM_GRANT failed to create with error:
ORA-01917: user or role 'FCATDB' does not exist
Failing sql is:
GRANT SELECT ANY TABLE TO "FCATDB"
ORA-39083: Object type SYSTEM_GRANT failed to create with error:
ORA-01917: user or role 'FCATDB' does not exist
Failing sql is:
GRANT UNLIMITED TABLESPACE TO "FCATDB"
Processing object type SCHEMA_EXPORT/ROLE_GRANT
ORA-39083: Object type ROLE_GRANT failed to create with error:
ORA-01917: user or role 'FCATDB' does not exist
Failing sql is:
GRANT "CONNECT" TO "FCATDB"
ORA-39083: Object type ROLE_GRANT failed to create with error:
ORA-01917: user or role 'FCATDB' does not exist
Failing sql is:
GRANT "RESOURCE" TO "FCATDB"
ORA-39083: Object type ROLE_GRANT failed to create with error:
ORA-01917: user or role 'FCATDB' does not exist
Failing sql is:
GRANT "DBA" TO "FCATDB"
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
ORA-39083: Object type DEFAULT_ROLE failed to create with error:
ORA-01918: user 'FCATDB' does not exist
Failing sql is:
ALTER USER "FCATDB" DEFAULT ROLE ALL
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
ORA-39083: Object type PROCACT_SCHEMA failed to create with error:
ORA-31625: Schema FCATDB is needed to import this object, but is unaccessible
ORA-01435: user does not exist
Failing sql is:
BEGIN
sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'BOBL_PRO', inst_scn=>'71243687320');COMMIT; END;
Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_ACPKS_MISC" FOR "BOB"."ACPKS_MISC"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_ACTBS_ACCBAL_HISTORY" FOR "ACTBS_ACCBAL_HISTORY"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_ACTBS_ACCSTATS_PTD" FOR "ACTBS_ACCSTATS_PTD"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_ACVWS_ALL_AC_ENTRIES" FOR "ACVWS_ALL_AC_ENTRIES"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_BCTBS_CONTRACT_PARTIES" FOR "BCTBS_CONTRACT_PARTIES"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_BCTB_CONTRACT_MASTER" FOR "BCTB_CONTRACT_MASTER"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_BCTMS_DOCS_MASTER" FOR "BCTMS_DOCS_MASTER"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_BCTM_PRODUCT_MASTER" FOR "BCTM_PRODUCT_MASTER"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_BCVW_REPORTS" FOR "BCVW_REPORTS"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CATMS_CHECK_BOOK" FOR "CATMS_CHECK_BOOK"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTBS_CONTRACT_CHARGES" FOR "CFTBS_CONTRACT_CHARGES"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTBS_CONTRACT_INTEREST" FOR "CFTBS_CONTRACT_INTEREST"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTMS_FLOAT_RATE_DETAIL" FOR "CFTMS_FLOAT_RATE_DETAIL"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTMS_FLOAT_RATE_MASTER" FOR "CFTMS_FLOAT_RATE_MASTER"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTMS_PRODUCT_CHARGE" FOR "CFTMS_PRODUCT_CHARGE"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTMS_PRODUCT_ICCF" FOR "CFTMS_PRODUCT_ICCF"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTMS_PRODUCT_INTEREST" FOR "CFTMS_PRODUCT_INTEREST"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTMS_RATE_CODE" FOR "CFTMS_RATE_CODE"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CFTM_RATE_CODE" FOR "CFTM_RATE_CODE"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CHKHOL_AND_GET_NEXTWDAY" FOR "FN_CHKHOL_AND_GET_NEXTWDAY"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
ORA-39083: Object type SYNONYM failed to create with error:
ORA-01917: user or role '' does not exist
Failing sql is:
CREATE SYNONYM "FCATDB"."FCC_CLTBS_ACCOUNT_MASTER" FOR "CLTBS_ACCOUNT_M
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA_HISTORY" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA_HISTORY" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA_HISTORY" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."DAILYTXNAMT" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."FCATFLEXMLAUDITLOG" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTALERTNOTIFIER" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTALERTNOTIFIER" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTALERTNOTIFIER" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTINITAUTHTYPES" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTPERSONALCUST" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTTXN" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."TXN_TEMP_MSTCORPORATE" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."TXN_TEMP_MSTCORPORATE" creation failed
Processing object type SCHEMA_EXPORT/FUNCTION/FUNCTION
ORA-39126: Worker unexpected fatal error in KUPW$WORKER.PUT_DDL [FUNCTION:"FCATDB"."FN_CHKHOL_AND_GET_NEXTWDAY"]
ORA-44001: invalid schema
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 6345
----- PL/SQL Call Stack -----
object line object
handle number name
c000000224567298 15032 package body SYS.KUPW$WORKER
c000000224567298 6372 package body SYS.KUPW$WORKER
c000000224567298 12800 package body SYS.KUPW$WORKER
c000000224567298 12080 package body SYS.KUPW$WORKER
c000000224567298 3346 package body SYS.KUPW$WORKER
c000000224567298 6972 package body SYS.KUPW$WORKER
c000000224567298 1314 package body SYS.KUPW$WORKER
c00000022c7210b8 2 anonymous block
Job "SYS"."SYS_IMPORT_SCHEMA_02" stopped due to fatal error at 11:32:41
Please help me on this.
Db version : 10.2.0.4
Os : HP-UX.
Thanks and Regards,

ORA-01917: user or role 'FCATDB' does not existError: ORA 1917
Text: user or role <name> does not exist
Cause: An invalid user or role name was specified.
Action: Check that a valid user or role name is used.
If you are using IMPDP then no need to mention the user name, if the user is different then you can use remap_schema option,
If dumpfile has only one schema then no need to mention the clause SCHEMAS also.
change as SCHEMAS=FCATDB instead of SCHEMAS=FCATDB:FCATDB
impdp /******** AS SYSDBA remap_tablespace=FCATDB:USERS SCHEMAS=FCATDB directory=EXPDP_DIR dumpfile=expdp_fcatdb.dmp logfile=probin1.log

Similar Messages

  • Export dump failing with ora -06512 and ORA-00955

    Hi
    While running export data pump, I am getting this error. Any inputs helps ... Thanks in advance.
    Regards,
    K
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORA-31626: job does not exist
    ORA-31633: unable to create master table "OPS$ORACLE.EXPFULL"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPV$FT", line 863
    ORA-00955: name is already used by an existing object

    You may have to drop the table OPS$ORACLE.EXPFULL and then try again.
    HTH
    Thanks
    Chandra

  • Adcfgclone fails with ORA-04063: view "SYS.DBA_NETWORK_ACLS" error

    Hi all,
    While running adcfgclone on dbtier if fails with following error
    ORA-04063: view "SYS.DBA_NETWORK_ACLS" error
    here is the scene:
    we are trying to clone a production instance for doing some patching
    while running adcfgclone on target (test instance) it fails
    our current environment is
    application:R12.1.3
    db:11.1.0.7
    os: rhel 5.6
    here is output from
    autoconfig file:
    SQLPLUS Executable : /u02/testoba/db/tech_st/11.1.0/bin/sqlplus
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Apr 18 09:28:32 2013
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Enter value for 1: Enter value for 2: Enter value for 3: Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    adcrobj.sh exiting with status 0
    ERRORCODE = 0 ERRORCODE_END
    .end std out.
    .end err out.
    AutoConfig Services Phase
    Running Service Process 2 of 4 for AppsUtil
    Executing script in InstantiateFile:
    /u02/testoba/db/tech_st/11.1.0/appsutil/install/TESTOBA_testsrv/addbperms.sh
    script returned:
    addbperms.sh started at Thu Apr 18 09:28:32 IST 2013
    The environment settings are as follows ...
    ORACLE_HOME : /u02/testoba/db/tech_st/11.1.0
    ORACLE_SID : TESTOBA
    TWO_TASK :
    PATH : /u02/testoba/db/tech_st/11.1.0/perl/bin:/u02/testoba/db/tech_st/11.1.0/bin:/usr/bin:/usr/sbin:/u02/testoba/db/tech_st/11.1.0/appsutil/jre/bin:/bin:/usr/bin/X11:/usr/local/bin:/u02/testoba/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/u02/testoba/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oratest/bin:.
    Library Path : /u02/testoba/db/tech_st/11.1.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u02/testoba/db/tech_st/11.1.0/lib:/usr/dt/lib:/u02/testoba/db/tech_st/11.1.0/ctx/lib
    SQLPLUS Executable : /u02/testoba/db/tech_st/11.1.0/bin/sqlplus
         Changing permissions for file sqlplus.
         Changing permissions for file extproc.
         Changing permissions for file tkprof.
    addbperms.sh exiting with status 0
    .end std out.
    .end err out.
    AutoConfig Services Phase
    Running Service Process 3 of 4 for AppsUtil
    Executing script in InstantiateFile:
    /u02/testoba/db/tech_st/11.1.0/perl/bin/perl -I /u02/testoba/db/tech_st/11.1.0/perl/lib/5.8.3 -I /u02/testoba/db/tech_st/11.1.0/perl/lib/site_perl/5.8.3 -I /u02/testoba/db/tech_st/11.1.0/appsutil/perl /u02/testoba/db/tech_st/11.1.0/appsutil/install/TESTOBA_testsrv/txkConfigDbOcm.pl
    script returned:
    Configuring OCM on the Database Tier....
    Testing database connection...
    Database connection test passed.
    Response file /u02/testoba/db/tech_st/11.1.0/appsutil/clone/adclnocm.res required to configure OCM does not exists
    ERRORCODE = 0 ERRORCODE_END
    .end std out.
    .end err out.
    AutoConfig Services Phase
    Running Service Process 4 of 4 for AppsUtil
    Executing script in InstantiateFile:
    /u02/testoba/db/tech_st/11.1.0/appsutil/install/TESTOBA_testsrv/txkcreateACL.sh
    script returned:
    You are running txkcreateACL.sh version 120.1
    The environment settings are as follows ...
    ORACLE_HOME : /u02/testoba/db/tech_st/11.1.0
    ORACLE_SID : TESTOBA
    PATH : /u02/testoba/db/tech_st/11.1.0/perl/bin:/u02/testoba/db/tech_st/11.1.0/bin:/usr/bin:/usr/sbin:/u02/testoba/db/tech_st/11.1.0/appsutil/jre/bin:/bin:/usr/bin/X11:/usr/local/bin:/u02/testoba/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/u02/testoba/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oratest/bin:.
    Executable : /u02/testoba/db/tech_st/11.1.0/bin/sqlplus
    Executing txkcreateACL.sql ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Apr 18 09:28:33 2013
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected.
    FROM DBA_NETWORK_ACLS
    ERROR at line 17:
    ORA-06550: line 17, column 8:
    PL/SQL: ORA-04063: view "SYS.DBA_NETWORK_ACLS" has errors
    ORA-06550: line 16, column 3:
    PL/SQL: SQL Statement ignored
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    txkcreateACL.sh: exiting with status 1
    .end std out.
    .end err out.
    [AutoConfig Error Report]
    The following report lists errors AutoConfig encountered during each
    phase of its execution. Errors are grouped by directory and phase.
    The report format is:
    <filename> <phase> <return code where appropriate>
    [APPLY PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: /u02/testoba/db/tech_st/11.1.0/appsutil/install/TESTOBA_testsrv
    txkcreateACL.sh INSTE8_APPLY 1
    AutoConfig is exiting with status 1
    RC-50014: Fatal: Execution of AutoConfig was failed
    Raised by oracle.apps.ad.clone.ApplyDatabase
    StackTrace:
    java.lang.Exception: RC-50014: Fatal: Execution of AutoConfig was failed
         at oracle.apps.ad.clone.ApplyDatabase.checkAutoConfigErr(ApplyDatabase.java:3192)
         at oracle.apps.ad.clone.ApplyDatabase.runCVMAndAutoConfig(ApplyDatabase.java:3010)
         at oracle.apps.ad.clone.ApplyDatabase.doConf(ApplyDatabase.java:649)
         at oracle.apps.ad.clone.ApplyDatabase.doApply(ApplyDatabase.java:473)
         at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:366)
         at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:110)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
         at java.lang.Thread.run(Unknown Source)
    please provide any suitable link or doc id or any workaround
    thanks
    Zavi

    Hi;
    Please review:
    Adautocfg.Sh Fails With "ORA-01422: " While Executing Txkcreateacl.sh [ID 854746.1]
    Database Cloning Failed With txkcreateACL.sh[36]: sqlplus [ID 603297.1]
    R12 : Autoconfig script txkcreateACL.sh fails with error ORA-31003: Parent /sys/acls/ already contains child entry OracleEBS.xml [ID 1328458.1]
    Regard
    Helios

  • DBMS_LDAP call fails with ORA-06512 Error Mapping function

    Hi,
    I am facing a problem with workflow integration with LDAP.
    I receive
    ORA-6512 Error Mapping Function on one particular line within the WF_LDAP.get_cfg_val procedure.
    WHILE my_entry IS NOT NULL
    LOOP
    my_vals := DBMS_LDAP.get_values (p_session,
    my_entry,
    p_name);
    The documentation says:
    ORA-06521 PL/SQL: Error mapping function
    Cause: An error was detected by PL/SQL trying to map the mentioned
    function dynamically.
    Action: Check the stacked error (if any) for more details.
    This is the trace of the error:
    ORA-06521 PL/SQL Error mapping Function
    ORA-06512 at SYS.DBMS_LDAP_API_FFI line 0
    ORA-06512 at SYS.DBMS_LDAP line 1332
    ORA-06512 at SYS.DBMS_LDAP line 1302
    ORA-06512 at SYS.DBMS_LDAP line 582
    This is the header of the catldap.sql file
    Rem
    Rem $Header: catldap.sql 07-jan-2000.19:15:20 akolli Exp $
    Rem
    Rem catldap.sql
    Rem
    Rem $Header: dbmsldap.sql 14-dec-2001.23:25:22 rbollu Exp $
    Rem
    Rem dbmsldap.sql
    Rem
    This is the output while running it (No errors):
    Library created.
    Package created.
    Package created.
    Package created.
    Package body created.
    Package body created.
    Package body created.
    Synonym created.
    Grant succeeded.
    Synonym created.
    Grant succeeded.
    Database is :
    compatible 9.2.0.0.0
    Am I missing something?
    I have searched all the forums and although there are many references to "Error Mapping Function", noone has reported it in the context of WF - LDAP Integration. So I am not sure how to proceed.
    Please help.
    thanks in advance,
    Libin

    Hi Libin,
    Can you please explain to me the parameters that you put in the Global Preferences, the LDAP_port,LDAP_user,and the others, because I don�t know where I need to search in the server this parameters and I don�t understand su much of OID.
    if you can give to me and little description of that parameters,this would thank for much.
    anticipated thanks
    Arlet

  • EXPDP fails with ORA-39125: Worker unexpected fatal error in KUPW $

    Hi Friends,
    Oracle 10.2.0.4.0 on Sun OS
    Im trying to do metadata_only export using EXPDP
    Facing the below error
    ORA-39125: Worker unexpected fatal error in KUPW $ WORKER.UNLOAD_METADATA while calling DBMS_METADATA.FETCH_XML_CLOB []
    ORA-31642: The following SQL statement fails:
    BEGIN "SYS". "DBMS_RULE_EXP_RULES." SCHEMA_CALLOUT (1,1,1, '10 .02.00.04.00 ') END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 907
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW $ WORKER", line 6307
    PL / SQL Call Stack
    object line object
    handle number name
    51bf5dc20 15032 package body SYS.KUPW $ WORKER
    51bf5dc20 6372 package body SYS.KUPW $ WORKER
    51bf5dc20 2396 package body SYS.KUPW $ WORKER
    51bf5dc20 6944 package body SYS.KUPW $ WORKER
    51bf5dc20 1314 package body SYS.KUPW $ WORKER
    51c7e8650 2 anonymous block
    ====================================
    Findings:
    I check the status of DBMS_RULE_EXP_RULES
    OWNER OBJECT_NAME OBJECT_TYPE STATUS
    SYS DBMS_RULE_EXP_RULES PACKAGE BODY VALID
    SYS DBMS_RULE_EXP_RULES PACKAGE VALID
    PUBLIC DBMS_RULE_EXP_RULES SYNONYM VALID
    DBMS_METADATA & DBMS_SYS_ERROR packages are valid.
    ======================================================
    Error in the alert:
    The value (30) of MAXTRANS parameter ignored.
    kupprdp: master process DM00 started with pid=25, OS id=6506
    to execute - SYS.KUPM$MCP.MAIN('SYS_EXPORT_SCHEMA_01', 'SYS', 'KUPC$C_1_20120908075037', 'KUPC$S_1_20120908075037', 0);
    kupprdp: worker process DW01 started with worker id=1, pid=26, OS id=6633
    to execute - SYS.KUPW$WORKER.MAIN('SYS_EXPORT_SCHEMA_01', 'SYS');
    when i check the trace file, find the below error
    ORA-04063: package body "SCH.COLLECTION" has errors
    But when I check the status of the package, it's valid.
    Thanks for your help
    KSG

    Hi;
    Is it full exp? Of yes please review:
    DataPump Export Fails With Errors ORA-39125 ORA-31642 ORA-1422 [ID 790988.1]
    Full And Schema DataPump Exports Fail With Errors ORA-39125 ORA-31642 During DBMS_SCHED_EXPORT_CALLOUTS.SCHEMA_CALLOUT [ID 1109045.1]
    EXPDP FAILS WITH ORA-39125 ORA-31642 DBMS_SCHED_EXPORT_CALLOUTS [ID 445291.1]
    Full Database DataPump Export (EXPDP) Fails With Errors ORA-39125 ORA-4045 ORA-1031 On XDB.XDB_PI_TRIG [ID 1102434.1]
    Errors ORA-39125 ORA-1801 When Running DataPump Export (EXPDP) [ID 815683.1]
    Regard
    Helios

  • Expdp fail with ORA-39126 error

    When i trying to export partition table it throws following error. I have tried it with newly created table also. but still it gets fail. My DB version is: 11.1.0.6.0 (RAC)
    [oracle@db2 ORADATA8]$
    [oracle@db2 ORADATA8]$
    [oracle@db2 ORADATA8]$ ls -l
    total 8
    drwxr-xr-x 2 oracle oinstall 8192 Jul 1 11:16 CRESTELDATA
    drwxr-xr-x 2 oracle oinstall 3896 Jul 3 11:21 DATAPUMP
    drwxr-xr-x 2 oracle oinstall 3896 Feb 18 11:23 lost+found
    [oracle@db2 ORADATA8]$
    [oracle@db2 ORADATA8]$
    [oracle@db2 ORADATA8]$ expdp CRESTELMEDIATIONPRD501/CRESTELMEDIATIONPRD501 tables=TBLINVALIDCDR:PSINVALIDCDR18APR2010 DIRECTORY=ORADATA8 PARALLEL=5 COMPRESSION=ALL DUMPFILE=INVALIDCDR_%U.dmp LOGFILE=expdpINVALIDCDR.log
    Export: Release 11.1.0.6.0 - 64bit Production on Saturday, 03 July, 2010 11:24:34
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    Starting "CRESTELMEDIATIONPRD501"."SYS_EXPORT_TABLE_03": CRESTELMEDIATIONPRD501/******** tables=TBLINVALIDCDR:PSINVALIDCDR18APR2010 DIRECTORY=ORADATA8 PARALLEL=5 COMPRESSION=ALL DUMPFILE=INVALIDCDR_%U.dmp LOGFILE=expdpINVALIDCDR.log
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 3.917 GB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.CREATE_OBJECT_ROWS [TABLE:"CRESTELMEDIATIONPRD501"."TBLINVALIDCDR"]
    ORA-01114: IO error writing block to file 6 (block # 79240)
    ORA-29701: unable to connect to Cluster Manager
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 7709
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    0x21ac5fc60 18051 package body SYS.KUPW$WORKER
    0x21ac5fc60 7736 package body SYS.KUPW$WORKER
    0x21ac5fc60 6945 package body SYS.KUPW$WORKER
    0x21ac5fc60 2519 package body SYS.KUPW$WORKER
    0x21ac5fc60 8342 package body SYS.KUPW$WORKER
    0x217190f58 1 anonymous block
    0x217687e98 1501 package body SYS.DBMS_SQL
    0x21ac5fc60 8201 package body SYS.KUPW$WORKER
    0x21ac5fc60 1477 package body SYS.KUPW$WORKER
    0x21ac60350 2 anonymous block
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "CRESTELMEDIATIONPRD501"."TBLINVALIDCDR":"PSINVALIDCDR18APR2010"."TER418APR2010" 36.27 MB 723142 rows
    . . exported "CRESTELMEDIATIONPRD501"."TBLINVALIDCDR":"PSINVALIDCDR18APR2010"."TER218APR2010" 16.13 MB 325123 rows
    . . exported "CRESTELMEDIATIONPRD501"."TBLINVALIDCDR":"PSINVALIDCDR18APR2010"."TER318APR2010" 512.3 KB 10467 rows
    . . exported "CRESTELMEDIATIONPRD501"."TBLINVALIDCDR":"PSINVALIDCDR18APR2010"."TER118APR2010" 556.2 MB 12261974 rows
    Master table "CRESTELMEDIATIONPRD501"."SYS_EXPORT_TABLE_03" successfully loaded/unloaded
    Dump file set for CRESTELMEDIATIONPRD501.SYS_EXPORT_TABLE_03 is:
    /ORADATA8/DATAPUMP/INVALIDCDR_01.dmp
    /ORADATA8/DATAPUMP/INVALIDCDR_02.dmp
    /ORADATA8/DATAPUMP/INVALIDCDR_03.dmp
    /ORADATA8/DATAPUMP/INVALIDCDR_04.dmp
    /ORADATA8/DATAPUMP/INVALIDCDR_05.dmp
    /ORADATA8/DATAPUMP/INVALIDCDR_06.dmp
    /ORADATA8/DATAPUMP/INVALIDCDR_07.dmp
    /ORADATA8/DATAPUMP/INVALIDCDR_08.dmp
    Job "CRESTELMEDIATIONPRD501"."SYS_EXPORT_TABLE_03" completed with 3 error(s) at 11:26:36
    Please - reply
    Edited by: Yuvraj on Jul 3, 2010 1:13 PM

    Hi,
    It seems that you have got a problematic disk there. There might be a problem with the disk that the datafile resides on since you are receiving I/O errors. Moreoever, there might be a problem with the CSS. check that all the process of cluster are running.
    regards

  • Impdp fails with ORA-01427 during full import of 10.2 db into 11.2

    Hello all,
    I'm running a full import from a dump file taken from our production db (10.2.0.4.0) on RHEL4 into a test db (11.2.0.3.0) on RHEL6.  I've done something very similar before with no errors but this time it returns the following in the output at the end of the partially successful import:
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.PUT_DDLS [TABLE_STATISTICS]
    ORA-06502: PL/SQL: numeric or value error
    LPX-00225: end-element tag "COL_STATS_ITEM" does not match start-element tag "HIVAL"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 9001
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    0x1ea3a92c8     20462  package body SYS.KUPW$WORKER
    0x1ea3a92c8      9028  package body SYS.KUPW$WORKER
    0x1ea3a92c8     16665  package body SYS.KUPW$WORKER
    0x1ea3a92c8      3956  package body SYS.KUPW$WORKER
    0x1ea3a92c8      9725  package body SYS.KUPW$WORKER
    0x1ea3a92c8      1775  package body SYS.KUPW$WORKER
    0x1e9ec90f8         2  anonymous block
    ORA-39097: Data Pump job encountered unexpected error -1427
    ORA-39065: unexpected master process exception in DISPATCH
    ORA-01427: single-row subquery returns more than one row
    Job "SYSTEM"."SYS_IMPORT_FULL_02" stopped due to fatal error at 13:32:00
    The import is into a database that has had all the application users dropped (only Oracle-defined users still existing) but with table_exists_action set to skip (the default).  Several user objects from the source db are missing from the target.
    I've run this twice with the same results.  I can imagine that there is a problem with the master table and/or the data dictionary but it gives no indication of the deeper cause.
    Any ideas, anyone?
    Regards, Keith.

    Pl post the complete expdp and impdp commands used.
    Retry expdp or impdp with the EXCLUDE=STATISTICS option.
    MOS Doc 878626.1
    HTH
    Srini

  • Datapump export fails with ora-39014 ora-39029 ora-31671 ora-24795 ora-6512

    Hi All,
    I am having this problem with data pump export job in my database.
    OS - Windows Server 2003 R2
    Oracle Version - 10.2.0.4.0
    Export Command - SYSTEM/********@testcp FULL=Y DUMPFILE=testcp_dp.dmp LOGFILE=expdp_testcp.log
    Error Messages:-
    ORA-39014: One or more workers have prematurely exited.
    ORA-39029: worker 1 with process name "DW01" prematurely terminated
    ORA-31671: Worker process DW01 had an unhandled exception.
    ORA-24795: Illegal ROLLBACK attempt made
    ORA-06512: at "SYS.KUPW$WORKER", line 1352
    ORA-24795: Illegal ROLLBACK attempt made
    ORA-06512: at "SYS.KUPW$WORKER", line 7073
    ORA-24795: Illegal ROLLBACK attempt made
    ORA-06512: at "SYS.KUPW$WORKER", line 2829
    ORA-24795: Illegal ROLLBACK attempt made
    ORA-24795: Illegal ROLLBACK attempt made
    ORA-06512: at "SYS.KUPW$WORKER", line 10915
    ORA-02354: error in exporting/importing data
    ORA-01891: Datetime/Interval internal error
    Job "SYSTEM"."SYS_EXPORT_FULL_12" stopped due to fatal error at 16:02:04
    ORA-39014: One or more workers have prematurely exited.
    I have been trying to resolve this issue from months, but have not got any solution yet.
    Please help me out.
    Thanks All in advance.

    Have you opened an SR with Support ? Issue seems to be
    >
    ORA-01891: Datetime/Interval internal error
    >
    which is an internal error that only Support can troubleshoot.
    Possibly a bug in 10.2.0.4
    Bug 6211421 - ORA-1891 from addition / subtraction of TIMESTAMP data [ID 6211421.8]
    HTH
    Srini

  • Reg : Datapump export failing with ORA-31633 error

    Hi,
    I am trying to export one of the production databases (10.2.0.4.0) using datapump - backup is failing with the following error.
    [UBASE2]:/backup/exports/scripts>more /backup/exports/cron/cron_UBASE_log
    Export Start
    Sat Oct 10 10:32:00 GMT 2009
    Export: Release 10.2.0.4.0 - 64bit Production on Saturday, 10 October, 2009 10:32:00
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    ORA-31626: job does not exist
    ORA-31633: unable to create master table "SYSTEM.FULL_UBASE"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPV$FT", line 871
    ORA-00955: name is already used by an existing object
    Export End
    Sat Oct 10 10:32:01 GMT 2009
    I tried to attach to the existing job to kill that, but i am getting the below error -
    [UBASE2]:/backup/exports/scripts>expdp attach=FULL_UBASE
    Export: Release 10.2.0.4.0 - 64bit Production on Saturday, 10 October, 2009 14:31:46
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Username: / as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    ORA-31626: job does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.KUPV$FT", line 438
    ORA-31638: cannot attach to job FULL_UBASE for user SYS
    ORA-31632: master table "SYS.FULL_UBASE" not found, invalid, or inaccessible
    ORA-00942: table or view does not exist
    As this is critical production database please help me how to resolve this.
    Thanks in Advance.
    Raju A
    Oracle DBA.

    Hi,
    Have you verified if your DBMS_AQ environment has been corrupted? If so, then you'll have to drop and recreate a number of queue related objects all over again. Furthermore, ORA-00942 appears to be the main problem as it is a case sensitivity error. You should change the table names to UPPERCASE and then try again.
    Hope this helps.
    Regards,
    Naveed.

  • Export scheduler job but chain step and chain rule failed with ORA-24150 ORA-06512 during executed sql script.

    Hi Folks,
    I used expdp utility to export all Oracle scheduler jobs and chains with below method, after that generate sql script by impdp, later on executing sql script encountered some errors.
    Only chain step and chain rule for executing script. Does anyone bright me some light? Thanks!
    My env: Oracle 11g + Oracle Linux 5.5
    My steps as below:
    1. export(expdp) oracle scheduler job(chain)
    2. generate sql script by impdp.
    3. remove orginal scheduler job(chain)
    4. execute sql script
    5. job with no chain well but job with chain failed
    [oracle@linux1 ~]$ expdp scott/tiger directory=db_dump_dir dumpfile=scott_job.dmp include=procobj:\" in \(select \
    > name from sys.obj$ where type\# in \(46,59,66,67,68,69,72,74,79\)\)\"  schemas=scott
    Export: Release 11.2.0.1.0 - Production on Tue Dec 3 17:42:31 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    Starting "SCOTT"."SYS_EXPORT_SCHEMA_01":  scott/******** directory=db_dump_dir dumpfile=scott_job.dmp include=procobj:" in (select name from sys.obj$ where type# in (46,59,66,67,68,69,72,74,79))" schemas=scott
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCOBJ
    Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
      /u03/database/usbo/BNR/dump/scott_job.dmp
    Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at 17:42:54
    [oracle@linux1 ~]$ impdp scott/tiger sqlfile=scott_job.sql directory=db_dump_dir dumpfile=scott_job.dmp logfile=imp_scott_job.log
    Import: Release 11.2.0.1.0 - Production on Tue Dec 3 17:43:04 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    Master table "SCOTT"."SYS_SQL_FILE_FULL_01" successfully loaded/unloaded
    Starting "SCOTT"."SYS_SQL_FILE_FULL_01":  scott/******** sqlfile=scott_job.sql directory=db_dump_dir dumpfile=scott_job.dmp logfile=imp_scott_job.log
    Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCOBJ
    Job "SCOTT"."SYS_SQL_FILE_FULL_01" successfully completed at 17:43:07
    [oracle@linux1 ~]$ more /u03/database/usbo/BNR/dump/scott_job.
    scott_job.dmp  scott_job.sql 
    [oracle@linux1 ~]$ more /u03/database/usbo/BNR/dump/scott_job.sql
    -- CONNECT SCOTT
    ALTER SESSION SET EVENTS '10150 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10904 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '25475 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10407 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10851 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '22830 TRACE NAME CONTEXT FOREVER, LEVEL 192 ';
    -- new object type path: SCHEMA_EXPORT/POST_SCHEMA/PROCOBJ
    BEGIN
    BEGIN
    dbms_rule_imp_obj.import_rule('"SCOTT"','"CHAIN_RULE_1"','1=1',NULL, 'First link in the chain.',0,NULL);
    END;
    COMMIT;
    END;
    BEGIN
    BEGIN
    dbms_rule_imp_obj.import_rule('"SCOTT"','"CHAIN_RULE_2"',':"CHAIN_STEP_1".COMPLETED = ''TRUE''',NULL, 'Second link in the chain.',0,NULL);
    END;
    COMMIT;
    END;
    BEGIN
    BEGIN
    dbms_rule_imp_obj.import_rule('"SCOTT"','"CHAIN_RULE_3"',':"CHAIN_STEP_2".COMPLETED = ''TRUE''',NULL, 'Third link in the chain.',0,NULL);
    END;
    COMMIT;
    END;
    BEGIN
    BEGIN
    dbms_rule_imp_obj.import_rule('"SCOTT"','"CHAIN_RULE_4"',':"CHAIN_STEP_3".COMPLETED = ''TRUE''',NULL, 'End of the chain.',0,NULL);
    END;
    COMMIT;
    END;
    BEGIN
    BEGIN
    dbms_rule_imp_obj.import_rule_set('"SCHED_RULESET$1"','"SCHED_EV_CTX$1"',NULL, 0);
    END;
    COMMIT;
    END;
    BEGIN
    dbms_scheduler.create_program('"TEST_PROC_1"','PLSQL_BLOCK',
    'BEGIN
                             INSERT INTO tb_schduler (id, descr, cr_date)
                             VALUES (tb_schduler_seq.NEXTVAL, ''test_proc_1'', SYSDATE);
                             COMMIT;
                           END;'
    ,0, TRUE,
    'Program for first link in the chain.'
    COMMIT;
    END;
    BEGIN
    dbms_scheduler.create_program('"TEST_PROC_3"','PLSQL_BLOCK',
    'BEGIN
                             INSERT INTO tb_schduler (id, descr, cr_date)
                             VALUES (tb_schduler_seq.NEXTVAL, ''test_proc_3'', SYSDATE);
                             COMMIT;
                           END;'
    ,0, TRUE,
    'Program for last link in the chain.'
    COMMIT;
    END;
    BEGIN
    dbms_scheduler.create_program('"TEST_PROC_2"','PLSQL_BLOCK',
    'BEGIN
                             INSERT INTO tb_schduler (id, descr, cr_date)
                             VALUES (tb_schduler_seq.NEXTVAL, ''test_proc_2'', SYSDATE);
                             COMMIT;
                           END;'
    ,0, TRUE,
    'Program for second link in the chain.'
    COMMIT;
    END;
    BEGIN
    dbms_scheduler.create_chain('"TEST_CHAIN_1"', evaluation_interval=>NULL, comments=>'A test chain.'
    , rule_set_name=>'"SCHED_RULESET$1"   '
    dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_1"', program_name=>'"TEST_PROC_1"');
    dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_2"', program_name=>'"TEST_PROC_2"');
    dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_3"', program_name=>'"TEST_PROC_3"');
    COMMIT;
    END;
    BEGIN
    dbms_scheduler.create_job('"TEST_CHAIN_1_JOB"',
    job_type=>'CHAIN', job_action=>
    'test_chain_1'
    , number_of_arguments=>0,
    start_date=>TO_TIMESTAMP_TZ('03-DEC-2013 05.38.56.718161000 PM +08:00','DD-MON-RRRR HH.MI.SSXFF AM TZR','NLS_DATE_LANGUAGE=english'), repeat_interval=>
    'freq=minutely; interval=2'
    , end_date=>TO_TIMESTAMP_TZ('03-DEC-2013 06.08.56.000000000 PM +08:00','DD-MON-RRRR HH.MI.SSXFF AM TZR','NLS_DATE_LANGUAGE=english'),
    job_class=>'"DEFAULT_JOB_CLASS"', enabled=>FALSE, auto_drop=>TRUE,comments=>
    NULL
    COMMIT;
    END;
    [oracle@linux1 ~]$ export ORACLE_SID=usbo
    [oracle@linux1 ~]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 3 17:44:43 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    sys@USBO> show parameter db_name
    NAME                                 TYPE                              VALUE
    db_name                              string                            usbo
    sys@USBO> conn scott/tiger;
    Connected.
    --remove job and chain.
    scott@USBO> EXEC DBMS_SCHEDULER.drop_job(job_name => 'test_chain_1_job');
    EXEC DBMS_SCHEDULER.drop_chain (chain_name  => 'test_chain_1');
    EXEC DBMS_SCHEDULER.drop_program (program_name  => 'test_proc_1');
    EXEC DBMS_SCHEDULER.drop_program (program_name  => 'test_proc_2');
    EXEC DBMS_SCHEDULER.drop_program (program_name  => 'test_proc_3');
    PL/SQL procedure successfully completed.
    scott@USBO> @/u03/database/usbo/BNR/dump/scott_job.sql
    Session altered.
    Session altered.
    Session altered.
    Session altered.
    Session altered.
    Session altered.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    BEGIN
    ERROR at line 1:
    ORA-24150: evaluation context SCOTT.SCHED_EV_CTX$1 does not exist
    ORA-06512: at "SYS.DBMS_RULEADM_INTERNAL", line 28
    ORA-06512: at "SYS.DBMS_RULE_IMP_OBJ", line 40
    ORA-06512: at line 3
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    BEGIN
    ERROR at line 1:
    ORA-24141: rule set SCOTT.SCHED_RULESET$1 does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.DBMS_ISCHED", line 1694
    ORA-01403: no data found
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1638
    ORA-06512: at line 5
    PL/SQL procedure successfully completed.

    Thanks all of you!
    Hi DK2010,
    I took some test that the data dict(dba_rule_sets/dba_evaluation_contexts) no any data returned after I had removed the job.
    So I tried to create evaluation context and re-executed script(only exception setion.) the first error has gone. For the second still have some issue.
    ---->no any returned
    scott@USBO> select * from dba_rule_sets where rule_set_owner='SCOTT';       
    no rows selected
    scott@USBO> select * from dba_evaluation_contexts WHERE evaluation_context_owner='SCOTT';
    no rows selected
    -->add new EVALUATION CONTEXT
    scott@USBO> exec DBMS_RULE_ADM.CREATE_EVALUATION_CONTEXT('SCOTT.SCHED_EV_CTX$1');
    PL/SQL procedure successfully completed.
    --->now it looks fine
    scott@USBO> BEGIN
      2  BEGIN
      3  dbms_rule_imp_obj.import_rule_set('"SCHED_RULESET$1"','"SCHED_EV_CTX$1"',NULL, 0);
      4  END;
      5 
      6  COMMIT;
      7  END;
      8  /
    PL/SQL procedure successfully completed.
    --->add new rule set, it prompt aleady exists
    scott@USBO> exec DBMS_RULE_ADM.CREATE_RULE_SET('SCOTT.SCHED_RULESET$1') 
    BEGIN DBMS_RULE_ADM.CREATE_RULE_SET('SCOTT.SCHED_RULESET$1'); END;
    ERROR at line 1:
    ORA-24153: rule set SCOTT.SCHED_RULESET$1 already exists
    ORA-06512: at "SYS.DBMS_RULEADM_INTERNAL", line 28
    ORA-06512: at "SYS.DBMS_RULE_ADM", line 138
    ORA-06512: at line 1
    -->chain rule still could not find.
    scott@USBO> @job_chain_rules.sql
    no rows selected
    -->rerun
    scott@USBO> BEGIN
      2  dbms_scheduler.create_chain('"TEST_CHAIN_1"', evaluation_interval=>NULL, comments=>'A test chain.'
      3  , rule_set_name=>'"SCHED_RULESET$1"   '
      4  );
      5  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_1"', program_name=>'"TEST_PROC_1"');
      6  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_2"', program_name=>'"TEST_PROC_2"');
      7  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_3"', program_name=>'"TEST_PROC_3"');
      8  COMMIT;
      9  END;
    10  /
    BEGIN
    ERROR at line 1:
    ORA-27477: "SCOTT.TEST_CHAIN_1" already exists 
    ORA-06512: at "SYS.DBMS_ISCHED", line 1148
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1598
    ORA-06512: at line 2
    -->drop chain
    scott@USBO> exec dbms_scheduler.drop_chain('TEST_CHAIN_1');
    BEGIN dbms_scheduler.drop_chain('TEST_CHAIN_1'); END;
    ERROR at line 1:
    ORA-27479: Cannot drop "SCOTT.TEST_CHAIN_1" because other objects depend on it
    ORA-06512: at "SYS.DBMS_ISCHED", line 1319
    ORA-06512: at "SYS.DBMS_ISCHED", line 1222
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1854
    ORA-06512: at line 1
    scott@USBO> exec dbms_scheduler.drop_chain('TEST_CHAIN_1',force=>TRUE);
    PL/SQL procedure successfully completed.
    scott@USBO> BEGIN
      2  dbms_scheduler.create_chain('"TEST_CHAIN_1"', evaluation_interval=>NULL, comments=>'A test chain.'
      3  , rule_set_name=>'"SCHED_RULESET$1"   '
      4  );
      5  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_1"', program_name=>'"TEST_PROC_1"');
      6  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_2"', program_name=>'"TEST_PROC_2"');
      7  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_3"', program_name=>'"TEST_PROC_3"');
      8  COMMIT;
      9  END;
    10  /
    BEGIN
    ERROR at line 1:
    ORA-24141: rule set SCOTT.SCHED_RULESET$1 does not exist   --->still returned no rule set
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.DBMS_ISCHED", line 1694
    ORA-01403: no data found
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1638
    ORA-06512: at line 5
    scott@USBO> exec DBMS_RULE_ADM.CREATE_RULE_SET('SCOTT.SCHED_RULESET$1')
    PL/SQL procedure successfully completed.
    scott@USBO> BEGIN
      2  dbms_scheduler.create_chain('"TEST_CHAIN_1"', evaluation_interval=>NULL, comments=>'A test chain.'
      3  , rule_set_name=>'"SCHED_RULESET$1"   '
      4  );
      5  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_1"', program_name=>'"TEST_PROC_1"');
      6  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_2"', program_name=>'"TEST_PROC_2"');
      7  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_3"', program_name=>'"TEST_PROC_3"');
      8  COMMIT;
      9  END;
    10  /
    BEGIN
    ERROR at line 1:
    ORA-27477: "SCOTT.TEST_CHAIN_1" already exists
    ORA-06512: at "SYS.DBMS_ISCHED", line 1148
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1598
    ORA-06512: at line 2
    scott@USBO> exec dbms_scheduler.drop_chain('TEST_CHAIN_1',force=>TRUE);
    PL/SQL procedure successfully completed.
    scott@USBO> BEGIN
      2  dbms_scheduler.create_chain('"TEST_CHAIN_1"', evaluation_interval=>NULL, comments=>'A test chain.'
      3  , rule_set_name=>'"SCHED_RULESET$1"   '
      4  );
      5  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_1"', program_name=>'"TEST_PROC_1"');
      6  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_2"', program_name=>'"TEST_PROC_2"');
      7  dbms_scheduler.define_chain_step('"TEST_CHAIN_1"', step_name=>'"CHAIN_STEP_3"', program_name=>'"TEST_PROC_3"');
      8  COMMIT;
      9  END;
    10  /
    BEGIN
    ERROR at line 1:
    ORA-24141: rule set SCOTT.SCHED_RULESET$1 does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.DBMS_ISCHED", line 1694
    ORA-01403: no data found
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 1638
    ORA-06512: at line 5
    Would you like to give me more clue?
    Thanks again.

  • Ora-06502:pl/sql and ora-06512 at sys.owa_util errors

    Greetings -
    I have just installed APEX 2.2 in my 9.2.0.7 database and am going through the exercises in the "2 Day+ Application Express Developer's Guide." I was making good progress, until I got to Chapter 5, How to Control Form Layout. I created the script "ht_emp", as instructed. Everything in the script works, except for the "create or replace trigger bi_ht_emp" part. It fails with the following errors:
    ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL", lone 328 ORA-06512: at "SYS.HTP", line 862 ORA-06512: at "SYS.HTP", line 977 ORA-06512: at "SYS.HTP", line 995 ORA-06512: at "FLOWS_020200.WWV_FLOW_SW_API", line 428 ORA-01003: no statement parsed. I have confirmed that nls_length_semantics = BYTE
    Any suggestions?
    Thanks in advance - Gail

    Scott -
    Here's the part of the script that chokes --
    CREATE OR REPLACE TRIGGER bi_ht_emp
    BEFORE INSERT ON ht_emp
    FOR EACH ROW
    BEGIN
    SELECT ht_emp_seq.nextval
    INTO :new.emp_id
    FROM DUAL;
    :new.rec_create_date := SYSDATE;
    END;
    Thanks fro helping -
    Gail

  • ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL"

    Was working on tutorial from the:
    Oracle Database Express Edition 2 Day Plus Application Express Developer Guide
    Working on the section 4: How to Control Form Layout.
    Ran into a problem trying to compile the Create HT-EMP Table script.
    keep getting this error for this particular segment creating the bu_ht_emp trigger:
    pp. 4-2 and 4-3
    CREATE OR REPLACE TRIGGER bi_ht_emp
    BEFORE INSERT ON ht_emp
    FOR EACH ROW
    BEGIN
    SELECT ht_emp_seq.nextval
    INTO :new.emp_id
    FROM DUAL;
    :new.rec_create_date := SYSDATE;
    END;
    ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL", line 354....etc
    I've check the syntax for the entire script and it all checks out. Does anyone have a clue why this is failing?

    If I'm looking at the same DDL, not seeing where it would throw an owa_util error, are you running it in the apex script editor?
    Just plain sqlplus doesn't like the empty line stuck in with the list of check constraints on the emp_dept column, after fixing that up (and dropping the sequence that got created on the first pass) the DDL and insert runs fine-

  • Getting ORA-06512: at "SYS.UTL_HTTP", line 1022 ORA-29270: too many open

    hi
    I am getting the following error while calling the procedure in the batch process
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-29270: too many open HTTP requests
    Could you please help me on this? As this is getting affected in the live databases.
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-29270: too many open HTTP requests
    CREATE OR REPLACE PROCEDURE Send_To_Spg(
    PTRANSACTION_ID               IN          VARCHAR2,
    PCHANNEL_TYPE               IN VARCHAR2 DEFAULT NULL,
    PCSS_ORDER_NUMBER          IN VARCHAR2 DEFAULT NULL,
    PTELEPHONE_NUMBER          IN VARCHAR2 DEFAULT NULL,
    PSCENARIO_TYPE               IN VARCHAR2 DEFAULT NULL,
    PCUSTOMER_REQUIRED_DATE IN          VARCHAR2 DEFAULT NULL,
    PCUSTOMER_REQUIRED_TIME IN          VARCHAR2 DEFAULT NULL,
    PCANCELLATION_REASON     IN          VARCHAR2 DEFAULT NULL,
    PCANCELLATION_NOTES          IN          VARCHAR2 DEFAULT NULL,
    PSMPF_RETENTION               IN          VARCHAR2 DEFAULT NULL,
    PEMERGENCY_WINBACK          IN          VARCHAR2 DEFAULT NULL,
    PCSS_PROJECT_ID               IN          VARCHAR2 DEFAULT NULL,
    PCSS_ORDER_NOTES          IN          VARCHAR2 DEFAULT NULL,
    PREASON_FOR_CESSATION     IN          VARCHAR2 DEFAULT NULL,
    P_RESPONSE                    OUT VARCHAR2,
    PSMART_USER_ID               IN VARCHAR2 DEFAULT NULL,
    PORACLE_ERROR               OUT VARCHAR2,
    PORACLE_ERROR_MESSAGE     OUT          VARCHAR2,
    PRESPONSE_TIME               OUT          NUMBER,
    PDATA_TRANSFER_STATUS     OUT          VARCHAR2)
    IS
    v_scenario_type               VARCHAR2(20); -- Varialble to Hold Time Out of every request to SPG
    v_transaction_time          NUMBER;          -- Total time in which Request to SPG was processed
    v_record_inserted_at     DATE;          -- Date/Time about the record insertion to the Error Handler
    v_start_time               NUMBER;          -- Variable to hold Start Time for calculationg Transaction Time
    v_url                         VARCHAR2(32767);-- URL to use when sending data to SPG
    vtransaction_id               VARCHAR2(18); -- Variable to hold Transaction ID for the request
    v_buffer                    VARCHAR2(32760);-- Variable to read response from the SPG interface
    v_timeout                    PLS_INTEGER; -- Time Out for each Transaction
    v_oracle_err_msg          VARCHAR2(600); -- Variable to hold Oracle Error Message
    v_resp                UTL_HTTP.RESP; -- Response Object
    v_req                UTL_HTTP.REQ; -- Request Object
    v_userid_pwd               SMT_ORACLE_PARAMETERS%ROWTYPE; --Variable declared to contain User ID & Password
    vl_RetCode          VARCHAR2(5000);
    vl_std_returnCode     VARCHAR2(3000);
    --PDATA_TRANSFER_STATUS Holds the Data Transfer Status which can have possible values as
    -- N => Data Has not been sent to SPG
    -- Y => Received Successful response from SPG
    -- F => On the First try to Send data to SPG Oracle Error Occured or response from SPG was a faulure
    -- S => On the Second try to Send data to SPG Oracle Error Occured or response from SPG was a faulure
    -- T => Data Has been transferred to the Error Log Table
    -- X => Data need not be transfered to Error Log Table.
    --Location of the timeout, URL & User Id & Password in Standing Data.
    c_url_stopwlr SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPG_WLR';-- Stop WLR URL
    c_url_cancelown SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPG_OWN';-- Cancel own URL
    c_url_cancelother SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPG_OTH';-- Cancel other URL
    c_url_amendcrd SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPG_CRD';--Amend CRD URL
    c_spg_useridpwd SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPGIDPWD'; --Contains user id and pwd
    ctimeout smt_parameters.parameter_code%TYPE:='SPGTO'; --This holds the timeout parameter
    BEGIN
         --In case the calling batch process can pass this value this SQL read will not be required & can be deleted
         --Read data transfer status for the transaction Id
         SELECT data_transfer_status INTO PDATA_TRANSFER_STATUS     FROM SPG_INTERFACE_TABLE
         WHERE transaction_id     =     PTRANSACTION_ID;
         --Record the start time
         v_start_time:=DBMS_UTILITY.GET_TIME;
         --If Data transfer status is S then send the record to error handler
         IF PDATA_TRANSFER_STATUS = 'S' THEN
              Error_Handler(PTRANSACTION_ID,PSMART_USER_ID,PORACLE_ERROR,PORACLE_ERROR_MESSAGE,v_record_inserted_at,PDATA_TRANSFER_STATUS);
         ELSE
         --In case Data Tranfer Status is something other than S then send the request to SPG
              --Initialise other variables which will be populated during the journey
              P_RESPONSE                    :=     '';
              PORACLE_ERROR               :=     NULL;
              PORACLE_ERROR_MESSAGE     :=     NULL;
              PRESPONSE_TIME               :=     0;
         --Read timeout parameter from standing data.
              BEGIN
                   SELECT VALUE INTO v_timeout FROM smt_parameters WHERE parameter_code=ctimeout;
              EXCEPTION
                   WHEN NO_DATA_FOUND THEN
                   v_timeout:=30;
              WHEN OTHERS THEN
                   v_timeout:=30;
              END;
         -- Construct the URL for Stop WLR Scenario
              IF PSCENARIO_TYPE = 'STOP_WLR' THEN
                   BEGIN
                   -- Read the Initial URL from Standing Data
                   SELECT VALUE
                        INTO v_url
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE parameter_code = c_url_stopwlr
                        AND host_id = ( SELECT host_id
                                                      FROM SMART_HOSTS A
                                                      WHERE EXISTS ( SELECT 1
                                                                     FROM DB_PARAMETERS b
                                                                     WHERE A.hostname = b.hostname
                                                                     AND A.database_id = b.database_id));
                   --handle unforseen exception
                   EXCEPTION
                   WHEN NO_DATA_FOUND THEN
                        v_url:='Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_winback_details'; --After testing the same, URL will be fetched from the Query
                   WHEN OTHERS THEN
                        v_url:='Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_winback_details'; --After testing the same, URL will be fetched from the Query
                   END;
                   --construct the URL depending on the parameters to be passed to the url
                   v_url := v_url || '?';
                   v_url := v_url || 'p_data_entered=' || Smart_Urlencode('xmloverhttp') || '&';
                   v_url := v_url || 'p_channel_type=' || Smart_Urlencode(PCHANNEL_TYPE)|| '&';
                   v_url := v_url || 'p_css_start_order_no=' || Smart_Urlencode(PCSS_ORDER_NUMBER)|| '&';
                   v_url := v_url || 'p_tel_no=' || Smart_Urlencode(PTELEPHONE_NUMBER)|| '&';
                   v_url := v_url || 'p_crd=' || Smart_Urlencode(PCUSTOMER_REQUIRED_DATE)|| '&';
                   v_url := v_url || 'p_take_over_time=' || Smart_Urlencode(PCUSTOMER_REQUIRED_TIME)|| '&';
                   v_url := v_url || 'p_retainsmpf=' || Smart_Urlencode(PSMPF_RETENTION)|| '&';
                   --v_url := v_url || 'p_emergency_winback='                    || Smart_Urlencode(PEMERGENCY_WINBACK)|| '&';
                   v_url := v_url || 'p_projectno=' || Smart_Urlencode(PCSS_PROJECT_ID)|| '&';
                   v_url := v_url || 'p_ordernotes=' || Smart_Urlencode(PCSS_ORDER_NOTES)|| '&';
                   v_url := v_url || 'p_reason_cessation=' || Smart_Urlencode(PREASON_FOR_CESSATION);
              ELSIF PSCENARIO_TYPE='CANCEL_OWN' THEN
              --Fetch the URL for cancel own from standing data.
                   BEGIN
                        SELECT VALUE
                        INTO v_url
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE parameter_code = c_url_cancelown
                        AND host_id = ( SELECT host_id
                                                      FROM SMART_HOSTS A
                                                      WHERE EXISTS ( SELECT 1
                                                                     FROM DB_PARAMETERS b
                                                                     WHERE A.hostname = b.hostname
                                                                     AND A.database_id = b.database_id));
              --handle unforseen exception
                   EXCEPTION
                             WHEN NO_DATA_FOUND THEN
                             v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_cancelown_details'; --After testing the same, URL will be fetched from the Query
                   WHEN OTHERS THEN
                             v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_cancelown_details'; --After testing the same, URL will be fetched from the Query
                   END;
              --construct the URL
              v_url := v_url || '?';
              v_url := v_url || 'p_data_entered=' ||Smart_Urlencode('xmloverhttp')|| '&';
              v_url := v_url || 'p_channel_type=' ||Smart_Urlencode(PCHANNEL_TYPE)|| '&';
              v_url := v_url || 'p_css_start_order_no=' ||Smart_Urlencode(PCSS_ORDER_NUMBER)|| '&';
              v_url := v_url || 'p_tel_no=' ||Smart_Urlencode(PTELEPHONE_NUMBER)|| '&';
              v_url := v_url || 'p_cancel_reason=' ||Smart_Urlencode(PCANCELLATION_REASON)|| '&';
              v_url:= v_url || 'p_cancel_notes=' ||Smart_Urlencode(PCANCELLATION_NOTES);
              ELSIF PSCENARIO_TYPE='CANCEL_OTHER' THEN
              --Fetch the URL for cancel own from standing data.
              BEGIN
              SELECT VALUE
                        INTO v_url
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE parameter_code = c_url_cancelother
                        AND host_id = ( SELECT host_id
                                                      FROM SMART_HOSTS A
                                                      WHERE EXISTS ( SELECT 1
                                                                     FROM DB_PARAMETERS b
                                                                     WHERE A.hostname = b.hostname
                                                                     AND A.database_id = b.database_id));
              --handle unforseen exception
              EXCEPTION
                   WHEN NO_DATA_FOUND THEN
                        v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_cancelother_details'; --After testing the same, URL will be fetched from the Query
                   WHEN OTHERS THEN
                        v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_cancelother_details'; --After testing the same, URL will be fetched from the Query
              END;
              --construct the URL
              v_url := v_url || '?';
              v_url := v_url || 'p_data_entered=' ||Smart_Urlencode('xmloverhttp')|| '&';
              v_url := v_url || 'p_channel_type=' ||Smart_Urlencode(PCHANNEL_TYPE)|| '&';
              v_url := v_url || 'p_css_stop_order_no=' ||Smart_Urlencode(PCSS_ORDER_NUMBER)|| '&';
              v_url := v_url || 'p_tel_no=' ||Smart_Urlencode(PTELEPHONE_NUMBER)|| '&';
              v_url := v_url || 'p_cancel_reason=' ||Smart_Urlencode(PCANCELLATION_REASON);
              ELSIF Pscenario_type='AMEND_CRD' THEN
              --Fetch the URL for cancel own from standing data.
              BEGIN
              SELECT VALUE
                        INTO v_url
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE parameter_code = c_url_amendcrd
                        AND host_id = ( SELECT host_id
                                                      FROM SMART_HOSTS A
                                                      WHERE EXISTS ( SELECT 1
                                                                     FROM DB_PARAMETERS b
                                                                     WHERE A.hostname = b.hostname
                                                                     AND A.database_id = b.database_id));
              --handle unforseen exception
              EXCEPTION
              WHEN NO_DATA_FOUND THEN
                   v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_amendcrd_details'; -- After testing the same , URL will be fetched from the Query
              WHEN OTHERS THEN
                   v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_amendcrd_details'; -- After testing the same , URL will be fetched from the Query
              END;
              --construct the URL
              v_url := v_url || '?';
              v_url := v_url || 'p_data_entered=' ||Smart_Urlencode('xmloverhttp')|| '&';
              v_url := v_url || 'p_channel_type=' ||Smart_Urlencode(PCHANNEL_TYPE)|| '&';
              v_url := v_url || 'p_css_start_order_no=' ||Smart_Urlencode(PCSS_ORDER_NUMBER)|| '&';
              v_url := v_url || 'p_tel_no=' ||Smart_Urlencode(PTELEPHONE_NUMBER)|| '&';
              v_url := v_url || 'p_crd='                         ||Smart_Urlencode(PCUSTOMER_REQUIRED_DATE)|| '&';
              v_url := v_url || 'p_css_change_order_numbers='||Smart_Urlencode(PCANCELLATION_REASON);
              END IF;
              --this is start of setting parameters for utl http object. the show begins...
              utl_http.set_transfer_timeout(v_timeout);
              --Set the wallet
              --XXXXX e.g.UTL_HTTP.SET_WALLET(?file:DirectoryPath?,'put password here?);
              --Set proxy
              --YYYYY e.g. utl_http.set_proxy(p_proxy_in, p_no_proxy_domains_in);
              v_url := REPLACE(v_url,'%27%27','%27'); -- Fix to ensure Double Quotes are converted to Single Quotes
              --set the required URL to utl http.
              v_req := utl_http.begin_request(v_url);
              --Authentication setting
              --Fetch the user id and password from stnding data.
              BEGIN
                   SELECT *
                        INTO v_userid_pwd
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE PARAMETER_CODE=c_spg_useridpwd
                        AND HOST_ID = ( SELECT HOST_ID
                                            FROM SMART_HOSTS A
                                            WHERE EXISTS ( SELECT 1
                                                                FROM DB_PARAMETERS B
                                                                WHERE A.HOSTNAME = B.HOSTNAME
                                                                AND A.DATABASE_ID = B.DATABASE_ID));
              EXCEPTION
                   WHEN NO_DATA_FOUND THEN
                   P_RESPONSE := 'ORACLE_ERROR: USER id AND Password NOT configured IN SMT_ORACLE_PARAMETERS:SPGIDPWD';
                   WHEN OTHERS THEN
                   P_RESPONSE := 'ORACLE_ERROR: USER id AND Password NOT configured IN SMT_ORACLE_PARAMETERS:SPGIDPWD';
              END;
              --utl_http.set_authentication(v_req, p_username_in, p_password_in);
              utl_http.set_authentication(v_req, v_userid_pwd.description, v_userid_pwd.VALUE);
              v_resp := utl_http.get_response(v_req);
              --Fill in the the response time
              PRESPONSE_TIME := (DBMS_UTILITY.GET_TIME - v_start_time)/100;
              IF v_resp.reason_phrase = 'OK' THEN
                   -- Fetch the response
                   BEGIN
                        LOOP
                        utl_http.read_line(v_resp, v_buffer);
                             P_RESPONSE := P_RESPONSE || v_buffer;
                        END LOOP;
                             utl_http.end_response(v_resp);
                        EXCEPTION
                        WHEN utl_http.end_of_body THEN
                        utl_http.end_response(v_resp);
                        P_RESPONSE := P_RESPONSE || v_buffer;
                   END;
              ELSIF v_resp.reason_phrase <> 'OK' OR P_RESPONSE = '' THEN
                   --error handling starts
                   --If the HTTP Status is not OK then store the error information
                   PORACLE_ERROR_MESSAGE     :=     'Status Code: '|| v_resp.STATUS_CODE||'. Reason Phrase ' ||v_resp.reason_phrase;
                   P_RESPONSE                    :=     'ORACLE_ERROR: '||     ' Reason Phrase ' ||     v_resp.reason_phrase;
                   PORACLE_ERROR               :=     v_resp.STATUS_CODE;
              END IF;
              --In case we got successful response from SPG
              IF P_RESPONSE LIKE '%<RetCde>0</RetCde>%' THEN
                   PDATA_TRANSFER_STATUS     :=     'Y';
              ELSE
                   BEGIN
    SELECT message
                                  INTO vl_std_returnCode
                                  FROM SMT_MESSAGES
                                  WHERE MESSAGE_CODE='SPGANTIDTS';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
         vl_std_returnCode := '-12545,-29273,-1,401,';
    WHEN OTHERS THEN
                        vl_std_returnCode := '-12545,-29273,-1,401,';
    END;
                   --In case there was an error do not update Data Transfer Status
                   IF PORACLE_ERROR <> NULL AND INSTR(vl_std_returnCode, PORACLE_ERROR || ',', 1, 1) <> 0 THEN
                             PDATA_TRANSFER_STATUS:=PDATA_TRANSFER_STATUS;
                   ELSE
                        vl_RetCode := SUBSTR(P_RESPONSE, INSTR(P_RESPONSE,'<RetCde>', 1, 1),
                        INSTR(P_RESPONSE,'</RetCde>',1,1)+9 - INSTR(P_RESPONSE,'<RetCde>', 1, 1));
                        BEGIN
                             SELECT VALUE
                                  INTO vl_std_returnCode
                                  FROM SMT_ORACLE_PARAMETERS
                                  WHERE PARAMETER_CODE='SPGRCS'
                                  AND HOST_ID = ( SELECT HOST_ID
                                       FROM SMART_HOSTS A
                                       WHERE EXISTS ( SELECT 1
                                                           FROM DB_PARAMETERS B
                                                           WHERE A.HOSTNAME = B.HOSTNAME
                                                           AND A.DATABASE_ID = B.DATABASE_ID));
                   EXCEPTION
                        WHEN NO_DATA_FOUND THEN
                             vl_std_returnCode := '<RetCde>4244</RetCde><RetCde>4245</RetCde><RetCde>4246</RetCde>';
                        WHEN OTHERS THEN
                             vl_std_returnCode := '<RetCde>4244</RetCde><RetCde>4245</RetCde><RetCde>4246</RetCde>';
                        END;
                        IF INSTR(vl_std_returnCode, vl_RetCode, 1, 1) <> 0 THEN
                             --needs not to re attempted.
                             PDATA_TRANSFER_STATUS:='X';
                        ELSE
                             --In case we did'nt got SUCCESSFUL response FROM SPG THEN UPDATE the Data Transfer Status so that the failed requests can be picked up BY the NEXT batch job RUN
                             IF PDATA_TRANSFER_STATUS='N' THEN
                                  --initially if data transfer status was N then update it now to F
                                  PDATA_TRANSFER_STATUS     :=     'F';
                             ELSIF PDATA_TRANSFER_STATUS='F' THEN
                                  --initially if data transfer status was N then update it now to S
                                  PDATA_TRANSFER_STATUS     :=     'S';
                             END IF;
                        END IF;
                   END IF;
              END IF;
              --Now Update all the modified Values
         UPDATE SPG_INTERFACE_TABLE
                   SET     response          =     P_RESPONSE,
                   data_transfer_status     =     PDATA_TRANSFER_STATUS,
                   oracle_error               =     PORACLE_ERROR,
                   oracle_error_message     =     PORACLE_ERROR_MESSAGE,
                   response_time               =     PRESPONSE_TIME
                   WHERE transaction_id     =     PTRANSACTION_ID;
              COMMIT;
    END IF;
    EXCEPTION
         WHEN OTHERS THEN
         --Handling the unhandled exception
         PORACLE_ERROR               :=     SQLCODE;
         PORACLE_ERROR_MESSAGE     :=     SQLERRM;
         P_RESPONSE                    :=     'ORACLE_ERROR: '|| PORACLE_ERROR_MESSAGE;
         PRESPONSE_TIME               :=     (DBMS_UTILITY.GET_TIME - v_start_time)/100;
         SELECT data_transfer_status INTO PDATA_TRANSFER_STATUS
         FROM SPG_INTERFACE_TABLE
         WHERE transaction_id=PTRANSACTION_ID;
         --New functionality to update the oracle error and oracle error message and not the Data Transfer Status
    BEGIN
    SELECT message
    INTO vl_std_returnCode
    FROM SMT_MESSAGES
    WHERE MESSAGE_CODE='SPGANTIDTS';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    vl_std_returnCode := '-12545,-29273,-1,';
    WHEN OTHERS THEN
    vl_std_returnCode := '-12545,-29273,-1,';
    END;
         vl_RetCode     :=     PORACLE_ERROR || ',';
    IF INSTR(vl_std_returnCode, vl_RetCode, 1, 1) <> 0 THEN
    --If the error is found in above maintained standing data do not change the Data Transfer Status
                   pdata_transfer_status:=pdata_transfer_status;
    ELSE
              IF pdata_transfer_status='N' THEN
                             PDATA_TRANSFER_STATUS     :=     'F';
                             DBMS_OUTPUT.PUT_LINE('DUE TO ERROR DATA COULDN''T GET TRANSFERED TO SPG FOR TRANSACTION'||' '||PTRANSACTION_ID);
                             DBMS_OUTPUT.PUT_LINE(SQLERRM);
              ELSIF pdata_transfer_status='F' THEN
                             PDATA_TRANSFER_STATUS     :=     'S';
                             DBMS_OUTPUT.PUT_LINE('DUE TO ERROR DATA COULDN''T GET TRANSFERED TO SPG FOR TRANSACTION'||' '||PTRANSACTION_ID);
                             DBMS_OUTPUT.PUT_LINE(SQLERRM);
    ELSE
                             DBMS_OUTPUT.PUT_LINE('Failure WHEN sending data TO Error LOG. Data Transfer Status IS ' || PDATA_TRANSFER_STATUS || '. TRANSACTION ID '|| PTRANSACTION_ID);
              END IF;
    END IF;
              --Now update all the information gathered above to the table
         UPDATE SPG_INTERFACE_TABLE
              SET     response          =     P_RESPONSE,
              data_transfer_status     =     PDATA_TRANSFER_STATUS,
              oracle_error               =     PORACLE_ERROR,
              oracle_error_message     =     PORACLE_ERROR_MESSAGE,
              response_time               =     PRESPONSE_TIME
              WHERE transaction_id     =     PTRANSACTION_ID;
              COMMIT;
    END;
    /

    I have fixed the problem by own.
    Seems there are some while space in the endpoint url.
    Fix
    http_req:= utl_http.begin_request
    trim(l_endpoint_url)
    ,'POST'
    ,'HTTP/1.1'
    It works...
    Regards
    BS

  • Oem 12.1.0.3 installer fails with ora-01017

    Greetings,
    I am attempting to upgrade my OEM 12.1.0.1 installation to 12.1.0.3. I am following the instructions in the Oracle Enterprise Manager Cloud Control Upgrade Guide and Oracle Support Note 1568143.1. I have verified that all prerequisites are met and have installed patch 11061801 to the repository. The repository and OMS are on different machines. The 12.1.0.1 installation is able to connect to the repository, it has been running successfully for some time now. On the OMS server I stopped the OMS and the Agent and I invoke the 12.1.0.3 installer. I follow the steps and when it gets to the connection page it fails with ORA-01017. The messages are shown -
    1. Verify if the SYS password you entered is valid.
    2. Verify if the database initialization parameter REMOTE_LOGIN_PASSWORDFILE is set to either Shared or Exclusive.
    3. Verify if a password file with the file name orapw<SID> exists in the <ORACLE_HOME>/dbs directory.
    All conditions are met:
    -bash-3.2$ echo $ORACLE_SID
    oemrepos
    SQL> connect sys as sysdba
    Enter password:
    Connected.
    SQL> connect sysman
    Enter password:
    Connected.
    SQL> show parameter remote_login_passwordfile
    NAME                                 TYPE        VALUE
    remote_login_passwordfile            string      EXCLUSIVE
    -bash-3.2$ ls -l $ORACLE_HOME/dbs/orapwoemrepos
    -rw-r----- 1 oracle dba 1536 Jan 30  2013 /usr/local/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/orapwoemrepos
    I am able to connect remotely from another machine. sqlplus is not installed on the OMS server.
    I am completely stumped and in need of assistance. Searching the web only indicates that I need to insure that the above listed conditions should be met, they are. If anyone has any suggestions I would appreciate the help.
    Thank you.
    Bill Wagman

    On repository server , can you login as sys user ?
    Try to connect through listener and share the result.
    sqlplus sys/<password>@<connectstring> as sysdba
    Thanks
    Rajesh

  • ORA-06512: at "SYS.DBMS_XMLGEN", (ORA-00942: table or view does not exist)

    Hey Guys, it's Xev.
    I decide to  use SQL and XML and it works in one scenario, but in another scenario, it doesn't.
    Here is the Code, I am passing in two variables, First, I pass in the table_name and then i pass in the schema.
    If I am doing this with the "user" connected and it's looking in it's own schema, it's find the results, like so, but if i try to execute this code while not
    connected to the same user i am searching on i get this error.
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 -  "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problem
    This code works only of you are connected to the user that you are searching on.
    But if you search for another user tables, it's blows up and gives the XML error above...
    SET SERVEROUTPUT ON
    exec DBMS_OUTPUT.ENABLE(1000000);
    VAR search_string VARCHAR2(28)
    EXEC :search_string := '^[0-9]{3}-[0-9]{2}-[0-9]{4}$'
    COLUMN "Searchword"     FORMAT A28
    COLUMN "Table"     FORMAT A9
    COLUMN "Column/Value" FORMAT A50
    SELECT DISTINCT SUBSTR (:search_string, 1, 28) "Searchword",
                     SUBSTR (table_name, 1, 14) "Table",
                     SUBSTR (t.column_value.getstringval (), 1, 50) "Column/Value"
        FROM   dba_tab_cols,
        --where owner = ('&SCHEMA_NAME')
                TABLE
                  (XMLSEQUENCE
                 (DBMS_XMLGEN.GETXMLTYPE
                    ( 'SELECT ' || column_name ||
                     ' FROM ' || table_name ||
                   ' WHERE REGEXP_LIKE
                         (' || column_name || ','''
                        || :search_string || ''')'
                  ).extract ('ROWSET/ROW/*'))) t
      --WHERE  table_name IN ('FIND_TEST')
      WHERE table_name = upper('&TABLE_NAME')
      AND OWNER = upper('&SCHEMA_NAME')
      ORDER  BY "Table"
    Can someone please explain how (DBMS_XMLGEN) works, and why it's throwing that error??
    thanks,
    Xev.

    It has nothing to do with DBMS_XMLGEN.GETXMLTYPE. It simply means user executing your SQL has no select privilege on table &SCHEMA_NAME.&TABLE_NAME.
    SY.

Maybe you are looking for

  • My Ipad 3 has no sound.

    When I go into settings and click on sound then move the thing up and down I hear sound but when I go into any of my apps there is no sound. In any of themmy music or anything HELP!!!!!!!

  • Why has my music disappeared and how can I get it back?

    So its been a few weeks since I last used my iPod Touch (3rd gen, 64gb), and this evening I decided to resync it with iTunes as I had added a couple of new albums these last few weeks (Coldplay and an xmas album, not that it matters of course). After

  • IBCM Software updates, Do I need an Internet SUP or not?

    Hi, A quick description of our current setup (relevant bits at least): Site server Windows Server 2012 R2 with ConfigMgr 2012 R2 C3 primary site, with intranet client only SUP DMZ server Windows Server 2012 R2 with MP and DP roles installed (no SUP)

  • How to share iCloud Drive public link?

    Is it possible to share a public link of a file from iCloud Drive? If not, will this be a future feature? Dropbox and other have this feature and I think it's really important.

  • Adding sounds to alerts

    I was wondering if there was a way of adding more sounds to the system alert sounds like frog, basso, glass etc? Thanks