ORA-12001 : execution of 1 Job faile ORA-06512

Hello,
I am execute a procedure than run a Job of Visual Basic 6.0, the connection is with oo4o.
This code :
PROCEDURE SP_EXECUTE_PROC
DBMS_JOB.SUBMIT(n_jobnow, 'BEGIN USROWSUC.USP_PRC_VERIF_PREC; END;', SYSDATE, 'NULL');
DBMS_JOB.RUN(n_jobnow);
COMMIT;
END;
The error is the next :
ORA-12011: execution of 1 jobs failed ORA-06512: at "USROWSUC.SP_EXECUTE_PROC", line 27
ORA-06512: at line 1.
This error is only once, the next execution is ok
The database es Oracle 8.1.7.
Help me please!
Best regards,
Joseph

Why you don't call your USROWSUC.USP_PRC_VERIF_PREC procedure directly from VB? You have the same result.
VERY VERY BAD: Executing your job you will create each time a new DB-JOB.
If you want to mantain your very bad procedure try to move the commit statement after the submit call.
PROCEDURE SP_EXECUTE_PROC
  DBMS_JOB.SUBMIT(n_jobnow, 'BEGIN USROWSUC.USP_PRC_VERIF_PREC; END;', SYSDATE, 'NULL');
  COMMIT;
  DBMS_JOB.RUN(n_jobnow);
END;Bye, Aron

Similar Messages

  • This job fail

    Hi ,
    I have scheduled a job and it failed with these errors :
    Error running job 62:
    ORA-12011: execution of 1 jobs failed
    ORA-06512: at "SYS.DBMS_IJOB", line 406
    ORA-06512: at "SYS.DBMS_JOB", line 272
    ORA-06512: at line 1
    what i dun understand is that procedure only has < 100 lines and the error is asking me to look at line 406 & 207 .
    some info : the procedure getting data from v$sort_usage , v$session , v$sort_segment (not sure if this is an issue but when i manually run it in pl/sql it could be run with no problem but not as a scheduled job)
    appreciate ur advise
    tks & rdgs

    I'm getting the same exact errors. I'm also new to the whole dbms_job package. I've read up a quite a bit on the syntax of the package/parameters and read some threads here, but still no joy.
    Since the OP didn't post his code here's how I submitted my job:
    declare
    v_id number;
    p_proc varchar2(2000);
    begin
    -- netops.run_dump_csv() is a defined procdure that takes no parameters
    -- I've tried it with/without the parentheses - shown with
    p_proc := 'netops.run_dump_csv()';
    dbms_job.submit(job=>v_id, what=>p_proc||';', next_date=>sysdate + 1, interval=>'trunc(sysdate)+1+(1/24)');
    commit;
    end;
    It submits fine but Oracle doesn't like it at runtime. I assume I'm passing some bad values somewhere, but darned if I can tell where. Any help anyone?
    Earl
    P.S. I assuming I can test this by running:
    begin
    dbms_job.run(2826); --2826 is the job number
    end;
    Message was edited by:
    Earl

  • Import job failes with ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT

    Hello everyone,
    I need a help on importing data from a schema in server 1 to the same schema in server 2 via network link. I receive following error when I try to submit a job on Enterprise Manager:
    Import Submit Failed
    ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 5806 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 7812 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 8608 ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT_JOBS", line 273 ORA-06512: at "SYSMAN.MGMT_JOBS", line 86 ORA-06512: at line 1
    Sql of the job:
    declare
    h1 NUMBER;
    begin
    h1 := dbms_datapump.open (operation => 'IMPORT', job_mode => 'FULL', remote_link => 'B_PROD_LINK', job_name => 'BIMPORTFRMPRDTORPT4', version => 'COMPATIBLE');
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    dbms_datapump.add_file(handle => h1, filename => 'IMPORT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    dbms_datapump.set_parameter(handle => h1, name => 'REUSE_DATAFILES', value => 0);
    dbms_datapump.set_parameter(handle => h1, name => 'TABLE_EXISTS_ACTION', value => 'TRUNCATE');
    dbms_datapump.set_parameter(handle => h1, name => 'SKIP_UNUSABLE_INDEXES', value => 0);
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    dbms_datapump.detach(handle => h1);
    end;
    It says network link is active when I test the network link to make sure its connectivity. I create the network link as a system account. I'm trying to do an import from an Oracle database 10.2.0.2 to 11.2.0.1. My 10g database is on ms windows 2003x64 while my 11g database is on OEL 5.4x64.
    What should I do for now?
    Thank you.
    Edited by: user12144220 on Nov 4, 2012 5:02 AM

    It will be wise to run the Oracle supply streams health check script to check your existing streams environment.
    From the result, you can also open a tar with Oracle to see if they can help you with the setup.
    In addition to the ORA-01403 error, you can also run some of the Oracle Streams packages (Managing Apply Errors) to see the full detail of what is missing that caused the Ora-01403 error.
    I will also try to implement a smoke test using the simple heartbeat table suggested by Oracle Streams, if that is working, then you can begin your full scale setup in your environment knowing that the base Streams Structure is setup correctly.
    HTH

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

  • 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

  • ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10700: preference does not exist: global_lexer ORA-06512: at "CTXSYS.DRUE", line 160 ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    database version 11.2.0.4
    rac two node
    CREATE INDEX MAXIMO.ACTCI_NDX3 ON MAXIMO.ACTCI
    (DESCRIPTION)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('lexer global_lexer language column LANGCODE')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    Like the error message says, you don't have a global_lexer.  So, you need to create a global_lexer and that lexer must have at least a default sub_lexer, then you can use that global_lexer in your index parameters.  Please see the demonstration below, including reproduction of the error and solution.
    SCOTT@orcl12c> -- reproduction of problem:
    SCOTT@orcl12c> CREATE TABLE actci
      2    (description  VARCHAR2(60),
      3      langcode     VARCHAR2(30))
      4  /
    Table created.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    SCOTT@orcl12c> -- solution:
    SCOTT@orcl12c> DROP INDEX actci_ndx3
      2  /
    Index dropped.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('global_lexer', 'multi_lexer');
      3    CTX_DDL.CREATE_PREFERENCE ('english_lexer', 'basic_lexer');
      4    CTX_DDL.ADD_SUB_LEXER ('global_lexer', 'default', 'english_lexer');
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    Index created.

  • SQL Server Agent job fails with error : The package execution returned DTSER_FAILURE (1).

    Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 10:00:01 AM Error: 2014-08-15 10:00:07.20
    Code: 0xC0047062 Source: Data Flow Task LEAN [6761]
    Description: Teradata.Client.Provider.TdException: [Teradata Database] [3006] Logons are disabled.
    at Teradata.Client.Provider.WpMessageManager.CheckForError()
    at Teradata.Client.Provider.WpMessageManager.ProcessResponse()
    at Teradata.Client.Provider.WpLogonManager.Action()
    at Teradata.Client.Provider.WpSession.ManagerAction(WpMessageManager manager, UtlStopwatchWrapper watch, Int32 connectionTimeout)
    at Teradata.Client.Provider.WpSession.Open(Int32 connectionTimeout, String password)
    at Teradata.Client.Provider.WpSession.Open(Int32 connectionTimeout)
    at Teradata.Client.Provider.Connection.Open(UtlConnectionString connectionString, UInt32 timeout)
    at Teradata.Client.Provider.ConnectionPool.CreateConnection(UInt32 timeout)
    at Teradata.Client.Provider.ConnectionPool.GetConnectionFromPool(Object owningObject)
    at Teradata.Client.Provider.ConnectionFactory.GetConnection(Object owningObject, UtlConnectionString connStr)
    at Teradata.Client.Provider.TdConnection.Open()
    at Microsoft.SqlServer.Dts.Runtime.ManagedHelper.GetManagedConnection(String assemblyQualifiedName, String connStr, Object transaction)
    at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager100.AcquireConnection(Object pTransaction)
    at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction)
    at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper100 wrapper, Object transaction)
    End Error Error: 2014-08-15 10:00:07.35 Code: 0xC0047017 Source: Data Flow Task SSIS.Pipeline
    Description: component "LEAN" (6761) failed validation and returned error code 0x80004005. End Error Error: 2014-08-15 10:00:07.48
    Code: 0xC004700C Source: Data Flow Task SSIS.Pipeline Description: One or more component failed validation.
    End Error Error: 2014-08-15 10:00:07.60 Code: 0xC0024107 Source: Data Flow Task
    Description: There were errors during task validation. End Error
    DTExec: The package execution returned DTSER_FAILURE (1). Started: 10:00:01 AM Finished: 10:00:07 AM
    Elapsed: 6.692 seconds. The package execution failed. The step failed.
    SQL Server agent job fails with above error, Please let me know process tohandle it.
    Thanks,
    Vishal.

    The error message suggests its the issue with Teradata source database to which SSIS tries to connect within the data flow task. Make sure Teradata database is available and LOGON is enabled.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • OWB Repository creation failed at the end with ORA-01403 & ORA-06512

    I got the below error during the OWB Repository Creation on RAC Database which is newly created(11.2.0.3)
    =========================================
    java.lang.Exception: The workspace user installation failed on user(s):
    owb_cdr:
    java.lang.Exception: ORA-01403: no data found
    ORA-06512: at "OWBSYS.GETROLESTARTED", line 31
    ORA-06512: at line 1
    =========================================
    I was checking this MOM: OWB Design Client Fails to Connect to Repository With ORA-06512: at "OWBSYS.GETROLESTARTED" (Doc ID 1355764.1)
    But why this is happening for first time as this is a Fresh database.
    Can anyone help on this??? Any workaround for this issue?

    I got the below error during the OWB Repository Creation on RAC Database which is newly created(11.2.0.3)
    =========================================
    java.lang.Exception: The workspace user installation failed on user(s):
    owb_cdr:
    java.lang.Exception: ORA-01403: no data found
    ORA-06512: at "OWBSYS.GETROLESTARTED", line 31
    ORA-06512: at line 1
    =========================================
    I was checking this MOM: OWB Design Client Fails to Connect to Repository With ORA-06512: at "OWBSYS.GETROLESTARTED" (Doc ID 1355764.1)
    But why this is happening for first time as this is a Fresh database.
    Can anyone help on this??? Any workaround for this issue?

  • ORA-12012: error on auto execute of job 754461 ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing ORA-06512: at "SYS.UTL_SMTP", line 20 ORA-06512: at "SYS.UTL_SMTP",

    Hi ,
    I am getting below error frequently in alert log of database.
    ORA-12012: error on auto execute of job 754461
    ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "APPS.EIS_UTIL_PKG", line 94
    ORA-06512: at "APPS.HKD_PO_ADDON_PKG", line 110
    ORA-06512: at line 1

    You have a job running in the database. Its job ID is 754461
    It looks as if that job runs APPS.HKD_PO_ADDON_PKG
    That job is attempting to send mail using UTL_SMTP and apparently passing some strange value to SMTP server for the RCPT TO: parameter.

  • 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

  • Worker fails when running MSDODPCODE.sql causing ORA-33290 and ORA-06512

    Hi All,
    Hopefully somebody can help / point me in the right direction. I'm testing the process of upgrading our R12.0.5 Financials (Database 10.2.0.4) to R12.1.3 and have hit a problem when applying the 12.1.1 Maintenance Pack.
    The worker has failed with the following in it's log file.
    "sqlplus -s APPS/***** @/u01/app/applmgr/CGSYSTST/apps/apps_st/appl/msd/12.0.0/patch/115/sql/MSDODPCODE.sql
    begin
    ERROR at line 1:
    ORA-33290: Analytic workspace ODPCODE cannot be attached in the mode you requested because another user has it attached in an incompatible mode.
    ORA-06512: at "SYS.DBMS_AW", line 67
    ORA-06512: at "SYS.DBMS_AW", line 131
    ORA-06512: at "SYS.DBMS_AW", line 792
    ORA-06512: at "SYS.DBMS_AW", line 767
    ORA-06512: at "APPS.MSD_AW_LOADER", line 10
    ORA-06512: at line 3"
    It might be worth noting that I also hit the same problem when testing RUP 6 for R12.0.6 - it was partially because of this that I decided to scrap going to 12.0.6 1st and go straight to R12.1.3 - making it a much bigger upgrade.
    Thanks
    Andy

    Hi Taher,
    1st few lines from /u01/app/oracle/CGSYSTST/db/tech_st/10.2.0/admin/CGSYSTST_trinity/udump/cgsystst_ora_7942.trc are....
    Dump file /u01/app/oracle/CGSYSTST/db/tech_st/10.2.0/admin/CGSYSTST_trinity/udump/cgsystst_ora_7942.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORACLE_HOME = /u01/app/oracle/CGSYSTST/db/tech_st/10.2.0
    System name: Linux
    Node name: TRINITY
    Release: 2.6.16.60-0.39.3-smp
    Version: #1 SMP Mon May 11 11:46:34 UTC 2009
    Machine: x86_64
    Instance name: CGSYSTST
    Redo thread mounted by this instance: 1
    Oracle process number: 17
    Unix process pid: 7942, image: oracle@TRINITY
    *** ACTION NAME:() 2011-03-07 12:07:03.718
    *** MODULE NAME:(SQL*Plus) 2011-03-07 12:07:03.718
    *** SERVICE NAME:(CGSYSTST) 2011-03-07 12:07:03.718
    *** SESSION ID:(341.32826) 2011-03-07 12:07:03.718 Exception signal: 11 (SIGSEGV), code: 1 (Address not mapped to object), addr: 0x2af815d5ce17, PC: [0x2af713076608, intelfast_memcpy.A()+10]
    *** 2011-03-07 12:07:03.718
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [_intel_fast_memcpy.A()+10] [SIGSEGV] [Address not mapped to object] [0x2AF815D5CE17] [] [] Current SQL statement for this session:
    begin
    -- attach code aw
    msd_aw_loader.attach_code_aw;
    -- create temp marker variable to prevent individual scripts from updating
    dbms_aw.execute('define _noupdate session boolean'); end;
    Andy

  • ORA-06502/ORA-06512 at execution owa_util.mime_header

    Hi, APEX gurus!
    I try to write a procedure to display bfile contention /images/ into APEX page.
    I have a table :
    -TEMP_FLAGS (ID NUMBER(3) NOT NULL, NAME BFILE)
    - procedure display_country_flags_bfile
    display_country_flags_bfile (p_id NUMBER) is
    CURSOR c_flags(p_flag NUMBER) IS
    SELECT name
    FROM temp_flags_bfile
    WHERE id = p_flag;
    r_flags c_flags%ROWTYPE;
    v_bfile bfile;
    lgh_file number;
    v_dir_alias varchar2(256);
    v_filename varchar2(256);
    v_mime varchar2(255);
    begin
    open c_flags(p_id);
    fetch c_flags INTO r_flags;
    CLOSE c_flags;
    v_bfile := r_flags.name;
    dbms_lob.filegetname(v_bfile, v_dir_alias, v_filename);
    lgh_file := dbms_lob.getlength(v_bfile);
    Dbms_Lob.Fileopen(v_bfile, Dbms_Lob.File_Readonly);
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    htp.p('Content-length: '||lgh_file);
    htp.p('Content-Disposition: attachment; filename="'||v_filename||'"');
    owa_util.http_header_close;
    wpg_docload.download_file(v_bfile);
    Dbms_Lob.Fileclose(v_bfile);
    end display_country_flags_bfile;
    If i execute directly in Toad i get error below:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 354
    ORA-06512: at "SYS.OWA_UTIL", line 413
    ORA-06512: at "STAT.DISPLAY_COUNTRY_FLAGS_BFILE", line 20
    ORA-06512: at line 1
    In Report attributes of APEX page, i use HTML expression to populate column value as call this procedure with appropriate parameter but image just not showing.
    I appreciate any help and opinion.
    P.S. I'm a newbie in APEX and have minimal experience.
    P.S.2 I forgot - Oracle 10g XE and APEX 2.1 built-in
    Thanks, Rado
    Edited by: user7637288 on 16-Dec-2008 05:12

    Thanks, rafix.
    But i'm using Oracle XE with storage limit /1GB/ and i don't want store any images in database. I prefer to use bfile type with link to files on OS level.
    By the way , just for tests, i try to use blobs on my own table with simular procedure, which throws the same error - with owa_util.mime_header. And think that the problem is related to owa_util package.
    My APEX version is 2.1 - built-in in Oracle XE, not 3.1

  • 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

  • Invoice Validation Error ORA-06512: at "APPS.AP_APPROVAL_PKG", line 111124

    All,
    I am getting below error message from log file after Invoice Validation program error out, please advise.
    I could not search on "ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124" search, but found other errors and able to see we are very much higher file version than the note id advised.
    Please help any one for this issue.
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APPRVL module: Invoice Validation
    Current system time is 01-MAR-2013 03:40:12
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_option='All'
    p_inv_start_date='2013/02/01 00:00:00'
    p_inv_end_date='2013/02/28 00:00:00'
    p_trace_flag='N'
    p_commit_size='1000'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    MSG-00101: Error occured in BATCH_APPROVAL()
    MSG-00102: Error Code : -20001
    MSG-00103: Error Message : ORA-20001:
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124
    MSG-00000: When Others:User-Defined Exception
    REP-1419: 'beforereport': PL/SQL program aborted.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1419: MSG-00101: Error occured in BATCH_APPROVAL()
    MSG-00102: Error Code : -20001
    MSG-00103: Error Message : ORA-20001:
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124
    MSG-00000: When Others:User-Defined Exception
    REP-1419: 'beforereport': PL/SQL program aborted.
    Report Builder: Release 10.1.2.3.0 - Production on Fri Mar 1 03:40:15 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 42770000.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 01-MAR-2013 04:06:57
    ---------------------------------------------------------------------------

    Please post the details of the application release, database version and OS.
    Please also see these docs.
    Invoice Validation (APPRVL) Errors Out With ORA-20001: APP-SQLAP-10000: ORA-00060 [ID 1460249.1]
    R12: Invoice Validation Is Failing When Running With Parameter 'ALL' [ID 1115016.1
    R12 Payables Invoice Validation Error: Unexpected error occurred during Tax Calculation. [ID 961182.1
    Ap Invoice Validation Errors: P-1419: Msg-00101: Error Occured In Batch_approval [ID 1140828.1]
    Invoice Validation Error : REP-1419:ERROR OCCURED IN BATCH_APPROVAL() [ID 1120213.1]
    R12: Validate Invoice Errors APP-SQLAP-10000, ORA-01403 and ORA-20001 [ID 1308869.1]
    Thanks,
    Hussein

  • 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

Maybe you are looking for