Import failing with ORA-20001: GET_BLOCK Error

Hi All,
I'm attempting to install an export of our Application into the LIVE environment (something I've done many times before), and it's failing with the following error message: -
ORA-20001: GET_BLOCK Error. ORA-20001: GET_STMT error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 698, column 1: PLS-00103: Encountered the symbol ",'#DD#','#EE#');" when expecting one of the following: ) , * & = - + < / > at in is mod remainder not rem <an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_
The only part of the message that makes any sense to me is the '#DD#','#EE#' which looks like part of a Javascript Passback Function from one of the pages.
Can anyone throw any light on why I'm getting this error message?
Thanks,
Mike

Scott,
I managed to track down the error. A column link URL I'm using calls a Javascript Passback Function as follows: -
javascript:passBack('#A#','#B#','#C#','#D#','#E#','#F#','#G#','#H#','#I#','#J#','#K#','#L#','#M#','#N#','#O#','#P#','#Q#','#R#','#S#','#T#','#U#','#W#','#X#','#Y#','#Z#','#AA#','#BB#','#CC#','#DD#','#EE#');
By reducing the length of this the import now works. The confusing part is that this was working previously.
Cheers,
Mike

Similar Messages

  • Import Error ORA-20001:GET_BLOCK Error

    We are trying to upgrade from HTML DB version 1.4 to 1.6, and we have encountered some issues with one of our applications. I tried to import our app using the Create Application->Based on an Application Export File option, specifying we would like to reuse the application id inside the export file, and also specifying the app to be a Run/Build Application. During the installation, I received this error:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-00001: unique constraint (FLOWS_010600.WWV_FLOW_FLOW_PK) violated <pre>begin wwv_flow_api.create_flow( p_id =>122, p_display_id=>122, p_owner => 'TESTMGR', p_name => 'TEST', p_alias => '122', p_page_view_logging => 'YES', p_default_page_template=> 40824759845482865 + wwv_flow_api.g_id_offset, p_printer_friendly_template=> 40824564374
    Keep in mind, when I received this error, no apps were present on our test server or in any of our workspaces. Even after receiving this error, I was able to see the application in my workspace, and run through some of the pages and they appeared to be running okay(app contains 101 pages).
    I wanted to check to see if anyone knew what this error meant, so I don't spend hours upon hours testing something that isn't broken in the first place.
    Here's what else I noticed:
    I tried to reinstall the application over itself to see if I could recreate the error, but it installed fine.
    I deleted the app, installed the app telling HTML DB to reuse the app_id in the export file, and received the error again.
    But then I deleted the app altogether to try a different approach. I allowed HTML DB to auto assign the app_id and the app installed fine.
    What is even more strange, I imported and installed one of our smaller apps (only 14 pages, by telling HTML DB to reuse the application id present in the export file). That application installed perfectly without a hitch.
    So I guess my questions are:
    What does that error mean? Is it detremental to the usage of an app?
    Why do I only get the error with one application and not with another when I tell HTML DB to reuse the application id inside the export file?
    By the way,
    Export file sizes:
    Large App w/ error - 4.90MB
    Small App w/o error - 272KB
    Thank you for your help in advance!!!

    Thanks in Advance
    I am facing same issue of Primary key voilation. This error comes even when the application is imported first time.
    Other applications are importng file
    Details of error are as fallows
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-00001: unique constraint (FLOWS_010500.WWV_FLOW_FLOW_PK) violated
    1852::begin
    wwv_flow_api.create_flow(
    p_id =>604,
    p_display_id=>604,
    p_owner => 'HMSIPD',
    p_name => 'IPD',
    p_alias => '604',
    p_page_view_logging => 'YES',
    p_default_page_template=> 210607950065627880 + wwv_flow_api.g_id_offset,
    p_printer_friendly_template=> 210607443998627880 + wwv_flow_api.g_id_offset,
    p_default_region_temp
    Size of application is : 5 MB
    Regards,
    Ankur Diwan

  • ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuc

    Hi All,
    I have exported a application and after that imported and tried to install it then i am getting this error:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 5, column 1: PLS-00306: wrong number or types of arguments in call to 'CREATE_REPORT_COLUMNS' ORA-06550: line 5, column 1: PL/SQL: Statement ignored <pre>declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=&gt; 29524721731534348 + wwv_flow_api.g_id_offset, p_region_id=&gt; 29524015959534345 + wwv_flow_api.g_id_offset, p_flow_id=&gt; wwv_fl
    History which happen:
    everything was working fine in my workspace but 2 days back one of team member created customer demo application in the same work space so login was also failing and after struggling oneday i got that my authentication function was get overwritten by the demo user authentication so again i chaned by my bakup function now authentication is working but when i export my new developed application and tried to replace the existing application then i am getting the erroe which i have mention before.
    1: I tried to replace by existing one
    2: i tried to assign new application id
    nothing is working so is it problem occues due to new demo application creation which i have deleted or other problem if other then how to solve if by demo then what i need to do .
    But all applications are working well not able to install which i need to do with new developed application.
    Please help me i am in tough situation.
    Thanks in advance,
    Amit

    Amit,
    The next useful test would be to run the file in SQL*Plus, connected as the application parsing schema. If it works, you will have imported the application. After that, please send me the file ([email protected]) and I'll figure out where the trouble is. If it fails in SQL*Plus, try to isolate the failing block. You'll get a pretty good idea by the prompts echoed to the output indicating the import progress.
    Scott

  • ORA-20001 GET_BLOCK-ERROR during the installation of an application

    hi people,
    I' ve got the following error during the installation of an application in apex 2.2.
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-02047: cannot join the distributed transaction in progress <pre>begin execute immediate 'alter session set nls_numeric_characters='''||wwv_flow_api.g_nls_numeric_chars||'''';end;</pre>
    Can anybody help me?
    Message was edited by:
    user512746

    hi,
    db-version is oracle 10g r2
    os windows server 2003
    the error occured when two ore more people working in their workspaces but not when only one person working in his workspace
    Message was edited by:
    user512746
    Message was edited by:
    user512746

  • Copy Application - ORA-20001: GET_BLOCK Error. ORA-20001:

    Hi
    I am unable to make a copy of one of my apex applications, I get the error
    ORA-20001: GET_BLOCK Error. ORA-20001:
    Does anyone know how i can resolve this?
    Thanks in advance

    jk_apex_newby wrote:
    hi eric.
    i m getting same error. my development and reproduction specifications are as followsActually, if you read the OPs second message, you'll discover that it isn't entirely the same:
    >
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-02047: cannot join the distributed transaction in progress <pre>begin execute immediate 'alter session set nls_numeric_characters=''.,'''; end; </pre>versus:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-06550: line 13, column 50: PLS-00103: Encountered the symbol &amp;quot;end-of-file&amp;quot;
    when expecting one of the following: &amp;lt;an identifier&amp;gt; &amp;lt;a double-quoted delimited-identifier&amp;gt;
    current delete exists prior &lt;pre&gt;declare h varchar2(32767) := null;
    begin wwv_flow_api.create_page_item( p_id=&amp;gt;3689529102880585 + wwv_flow_api.g_id_offset, p_flow_id=&amp;gt; wwv_fAs such I would highly recommend creating a brand new post and perhaps include a reference to this thread - you will likely get more help more quickly if you do...
    JC: I see that you have already posted a 2nd thread. Never mind...
    Edited by: Joel_C on 01-Nov-2011 14:30

  • Import failing with ORA 3113 end of file on communication channel error

    While doing a schema level import on oracle 9.2.0.6 enterprise edition db, i get IMP 00003 with ORA 3113 error.
    The import job fails particularly at one point where it tries to create a view with around 7000 lines.
    Now I tried to create this view manually by executing the sql statement and get the same error.
    As an another exercise when i pick up just a few lines say first 10 or 15 of the view definition, the view gets created in no time.
    So, is there any limitation with Oracle as to how many lines a view can hold or buffer space or something.
    Here is the sample code:
    create or replace view uix_kana_kanji_c_evw as
    select 'EFBC90' as kana_kanji_char from dual
    union select 'EFBC91' as kana_kanji_char from dual
    union select 'EFBC92' as kana_kanji_char from dual
    union select 'EFBC93' as kana_kanji_char from dual
    union select 'EFBC94' as kana_kanji_char from dual
    union select 'EFBC95' as kana_kanji_char from dual
    union select 'EFBC96' as kana_kanji_char from dual
    union select 'EFBC97' as kana_kanji_char from dual
    union select 'EFBC98' as kana_kanji_char from dual
    union select 'EFBC99' as kana_kanji_char from dual
    union select 'EFBCA1' as kana_kanji_char from dual
    union select 'EFBCA2' as kana_kanji_char from dual
    union select 'EFBCA3' as kana_kanji_char from dual
    union select 'EFBCA4' as kana_kanji_char from dual
    union select 'EFBCA5' as kana_kanji_char from dual
    union select 'EFBCA6' as kana_kanji_char from dual
    union select 'EFBCA7' as kana_kanji_char from dual

    ORA-3113 is a generic error. The bad news is there are slightly less than a million combination of OS, platform, versions and events that might cause it to happen.
    The good news is there should be a message in the alert log whenever this occurs. If you're lucky there may be .TRC file as well (check udump directory as well as bdump). The contents of the file(s) should give you some guidance about what causes it to happen. If you still need help from us you'll need to post some concrete details for us to ponder.
    Good luck, APC

  • OATM Generation Migration commands failing with ORA-20001: TBS doesnt exist

    Generating Migration Commands for Schema %...
    03-OCT-2011 13:55:25
    DECLARE
    ERROR at line 1:
    ORA-20001: Tablespace APPS_TS_TX_IDX does n
    ot exist.
    ORA-06512: at "APPS.FND_TS_MIG_UTIL", line 98
    ORA-06512: at "APPS.FND_GEN_MIG_CMDS", line 893
    ORA-06512: at "APPS.FND_GEN_MIG_CMDS", line 2108
    ORA-06512: at "APPS.FND_GEN_MIG_CMDS", line 2144
    ORA-06512: at line 18
    Please advise.
    Thanks,
    Sravan

    Hi Sravan;
    What those line(in error) refer? Please see below
    Re: OATM problems
    If its not help than i suggest Rise SR while waiting other forum user response here
    Regard
    Helios

  • Import fails with ORA-01435: user does not exist?

    I have a dump of a 8i database done with FULL=Y. I have tried to import this into an XE beta 3 instance with FULL=Y, but I keep getting ORA-01435: user does not exist. Is this expected behavior because of some XE thing or is it me being an idiot? I would have expected the imp program to ignore that the tablespaces are not the same and just stuffed everything into the default tablespace of the current user (SYSTEM) and creating unknown schemas whenever one was encountered.
    Regards Pete

    Peter,
    could you please post the command line of the import and the logfile, so that we can get a bit more of information?
    Thanks,
    ~Dietmar.

  • Import fails with error unique constraint

    Hello,
    I try to import an APEX Application from Version 2.2 to APEX Version 2.0.
    I get the following error message:
    ORA-20001: GET_BLOCK-Fehler. ORA-20001: GET_STMT-Fehler. ORA-20001: Die Ausführung der Anweisung war nicht erfolgreich. ORA-00001: unique constraint (FLOWS_020000.WWV_FLOW_REGION_UPD_RPT_CI1) violated<pre>
    &lt;br&gt;begin&lt;br&gt; &lt;br&gt;---------------------------------------&lt;br&gt;-- ...updatable report columns for page 60&lt;br&gt;--&lt;br&gt; &lt;br&gt;begin&lt;b
    For the Import I chose the option "Auto Assign New Application ID".
    Has anyone an Idea, why the import fails?
    (Export from Version 2.2 and Import to a different Workspace in Version 2.2 is successful)
    Thank you for your responses,
    Carola

    Carola,
    I have no idea why this is happening. You may send the application export file (or the export file for page 60 only) to [email protected] and I will check it.
    Scott

  • Req import fails with POCIRM-24a: ORA-01400:

    Req import fails with.
    POCIRM-24a: ORA-01400: cannot insert NULL into ("PO"."PO_REQ_DISTRIBUTIONS_ALL"."D

    Please post the details of the application release, database version and OS.
    Req import fails with.
    POCIRM-24a: ORA-01400: cannot insert NULL into ("PO"."PO_REQ_DISTRIBUTIONS_ALL"."DPlease follow the steps in these docs for details about the error.
    Adding To Cart Delivers Error - ORA-01400: Cannot Insert NULL Into ("PO"."PO_REQUISITION_LINES_ALL"."DELIVER_TO_LOCATION_ID") [ID 580002.1]
    FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
    Thanks,
    Hussein

  • 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

  • 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

  • ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error

    Hello DBAs,
    I am trying to schedule a shell script through dbms_scheduler.CREATE_JOB
    My database version is 10.2.0.3.0.
    I can successfully schedule the job, but while running, it throwing ORA-27369 with out exit code.
    Given below are the actions performed -
    -- Created shel scripts-
    $ cat shell01.sh
    ./test.sh >> test.log
    $
    $ cat test.sh
    sqlplus -s "/ as sysdba" <<EOF
    SELECT SUBSTR(host_name,0,10) host_name, instance_name, status,TO_CHAR(startup_time,'dd-mm-yy hh24:mi:ss') startup_time
    FROM v\$instance;
    disconnect;
    exit;
    EOF
    -- Granting privileges - (eventhough I have tried from 'SYS' schema)
    GRANT create Job, create external job, execute any class, execute any program , manage scheduler to sys;
    -- Drop job with name RUN_SHELL01
    BEGIN
    dbms_scheduler.drop_job('RUN_SHELL01');
    END;
    -- Schedule job with name RUN_SHELL01
    BEGIN
    dbms_scheduler.CREATE_JOB
         (job_name           => 'RUN_SHELL01',
         job_type           => 'EXECUTABLE',
         job_action           => '/home/ora1023/shell01.sh',
    start_date           => '18-AUG-09 05:37:00 AM',
         end_date          => NULL,
         repeat_interval      => 'FREQ=MINUTELY',
         enabled           => false,
         comments           => 'Run shell-script');
    END;
    --Enable job
    BEGIN
    dbms_scheduler.enable('RUN_SHELL01');
    END;
    -- Checking status
    SELECT owner, job_name, enabled FROM dba_scheduler_jobs;
    select JOB_NAME,STATUS,ERROR# from dba_scheduler_job_run_details where job_name='RUN_SHELL01';
    -- Executing the job
    SQL> exec dbms_scheduler.run_job('RUN_SHELL01');
    BEGIN dbms_scheduler.run_job('RUN_SHELL01'); END;
    ERROR at line 1:
    ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 1
    Anybody please suggest a solutions for this -

    My shell script will work as below -
    user01@test01:/home/user01 : cat shell01.sh
    ./test.sh >> test.log
    user01@test01:/home/user01 :
    user01@test01:/home/user01 :
    user01@test01:/home/user01 : cat test.sh
    sqlplus -s "/ as sysdba" <<EOF
    SELECT SUBSTR(host_name,0,10) host_name, instance_name, status,TO_CHAR(startup_time,'dd-mm-yy hh24:mi:ss') startup_time
    FROM v\$instance;
    disconnect;
    exit;
    EOF
    user01@test01:/home/user01 : ./shell01.sh
    user01@test01:/home/user01 : ls -ltr
    -rw-r--r-- 1 ora1023 dba 155 Aug 26 05:28 test.log
    user01@test01:/home/user01 : cat test.log
    HOST_NAME INSTANCE_NAME STATUS STARTUP_TIME
    test01 oft1 OPEN 18-08-09 08:22:45
    user01@test01:/home/user01 :
    ** I think this shell script is working fine! ..its only for testing..
    and while we are querying dba_scheduler_job_run_details for additional info-
    SQL> select s.STATUS ,s.ADDITIONAL_INFO from dba_scheduler_job_run_details s where s.job_name='RUN_SHELL01';
    STATUS
    ADDITIONAL_INFO
    STANDARD_ERROR="execve: Exec format error"
    FAILED
    ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error
    STANDARD_ERROR="execve: Exec format error"
    I think Metalink Doc ID: 555160.1 (Schedular Job of Type 'EXECUTABLE' Fails with ORA-27369 "exit code: 255" STANDARD_ERROR="execve: Exec format error"). Will help me to solve this issue Since i am using ksh -
    # echo $SHELL
    /bin/ksh
    Edited by: Rajesh Menon on Aug 25, 2009 9:21 PM

  • ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error STAN

    ORA-27369: job of type EXECUTABLE failed with exit code: Unknown error STANDARD_ERROR="execve: Exec format error"
    #!/usr/bin/ksh
    /bin/find /u08/oradba/S036/archlog -name "*.arc" -exec rm -f {} \;
    Simple shell script gives above error when scheduled through dbms_scheduler. I did check metalink notes everything seems to be in order.
    Thanks,
    Siva

    Hi,
    Make sure the script is set to be executable (chmod a+rx script.sh) and that /usr/bin/ksh exists and is executable.
    If it still doesn't work post the new error message and the output of "ls -l script.sh" and also your exact Oracle version. Also try running the shell script directly at the command line (e.g. ./script.sh).
    Hope this helps,
    Ravi.

  • Import failing with no errors

    Import failing with no errors
    All it says in logs for each table is
    . . skipping table "<table_name>"
    It's a full import from a 10.2.03 db into a 10.2.0.3 db

    Hi,
    "INDEXFILE" , this is parameter is specified, index-creation statements for the requested mode are extracted and written to the specified file, rather than used to create indexes in the database. No database objects are imported.
    Due to that that Objects are skipping.
    The INDEXFILE parameter can be used only with the FULL=y, FROMUSER, TOUSER, or TABLES parameters.
    Else you can perform a two step process as stated by Amardeep.
    - Pavan Kumar N

Maybe you are looking for

  • Language packs: Everything's at 99%

    Hi, I've got WSUS on Server 2012 R2 and 10 Server 2012 R2 servers. WSUS is quite happily installing all the patches, but they're all stuck at 99% compliance. They're all reporting back that the UK language pack KB2839636 isn't installed. They all hav

  • No PReq Item Category for 3rd Party Order

    Hello, I am trying to set up the 3rd party process but having a problem with the item category in the generated purchase requisition. I know that my sales order item has a schedule line category of CS. This should create a purchase requisition item w

  • DISPLAY DRIVER AMD HAS STOPPED WORKING AND SUCCESSFUL​LY RECOVERED

    This is occuring several  times. Iam using window 7 64 bits what shall I do

  • Sql server 2012 reports

    If i develope reports using SQL server 2012 reporting services, can i upload the reports on SQL server 2005 report server and SQL server 2008 Report server ?? h2007

  • Sales view in the material masterq

    Hi All, Is there any posibilities to keep a check in the material master creations (Sales View) " If plant data storage view does not exist for a material" system will not allow to extend a sales view in the same plant. Thanks in advance Samir Bhatt