Procedure successful when using dbms_job, but fails in a shell script

I have a procedure which is throwing the following error when run from a shell script. This procedure completes successfully when run using dbms_job
ORA-00164 distributed autonomous transaction disallowed within migratable distributed transaction

Mohan et al,
When I get an ORA error that I don't understand I plug it into Google; use the whole error code, ie 'ORA-00164'.
The second link in this case gives a reasonable explanation of what is happening.
http://www.dbasupport.com/oracle/ora9i/autonomoustrans.shtml
Cheers,
Colin

Similar Messages

  • My keypad keeps disappearing when using google -- but only in the horizontal position.  In vertical, it works fine.  I have powered off and on, checked that Safari Instant is on, and cleared Safari cache.  Any help will be appreciated.

    My keypad keeps disappearing when using google -- but only in the horizontal position.   Vertically, it works fine.  I have powered off and then back on.  I have checked that Safari instant is on, and I have cleared Safari cache.  Nothing has worked so far.

    Okay -- it fixed itself.  Without any intervention, after all else had failed, and I was willing to live evermore with vertical searches.  If only everything else in my house mysteriously recovered from the broken state.
    Have no idea what was/is going on with the disappearing keypad.

  • I can't seem to use the 'Check seats' link on Delta when I use Firefox but Safari works fine. I get the message 'not available at this time' when using Firefox but when I go to Safari it works fine.

    I can't seem to use the 'Check seats' link on the Delta Airlines site when I use Firefox but Safari works fine. I get the message 'not available at this time' when using Firefox but when I go to Safari it works fine. I love Firefox but this sucks!

    That issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies

  • U/tube videos open when using Safari but will not open when using Firefox.

    u/tube videos open fine when using Safari but will not open when using Firefox. With Firefox I get the unhighlighted Quicktime symbol with a question mark in the center. WHY?? Any help appreciated --- Toroya

    Hmmmm, strange you view YouTube in Safari & not FF. Which version of FF are you using?
    Try the following:
    Repair permissions & restart.
    Make sure you have the latest versions of Adobe Flash Player Software
    QuickTime Preferences > Advanced > MIME Stettings > Miscellaneous.
    Deactivate the "Flash Media" option.

  • I have some web pages that loaded completely when using 3G but partially loaded using Wifi.

    I have some web pages that loaded completely when using 3G but partially loaded (only text without any images ) using Wifi. Is it a site specific issue?

    Can you rule out the NoScript extension as a cause of the issues on those sites? Even if you allow the main site to run scripts, often a website will spread its content over additional servers, so you may need to visit the "S" button menu a second or third time to get full functionality. (Over time, you'll recognize some the servers as being for ads, tracking, or sharing buttons and you can just let those parts of the page not work.)

  • I cannot paste into the body a a Gmail message when using FFox but can di so using IE.altho

    I cannot paste into the body a a Gmail message when using Firefox but can do so using IE
    Occasionally when I paste only portion of the text appears but now I cannot paste any text at ll

    Hello ymda, '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    Restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    Thank you

  • Firefox throws "This Connection is Untrusted" when using hostname, but not when using IP address

    I am remotely accessing a website which has iFrame in it. The website uses https, but iFrame tag has "src" pointing to a site using http only. However, when I remotely go to the site, iFrame shows the message below although the ''src" url is http only (there is no SSL certificate) when I use IP address (https://10.10.101.156:8006/apprecovery/admin/Core/Storage) in address bar instead of hostname (https://hostname:8006/apprecovery/admin):
    ===
    This Connection is Untrusted
    You have asked Firefox to connect
    securely to d37t50w1, but we can't confirm that your connection is secure.
    Normally, when you try to connect securely,
    sites will present trusted identification to prove that you are
    going to the right place. However, this site's identity can't be verified.
    What Should I Do?
    If you usually connect to
    this site without problems, this error could mean that someone is
    trying to impersonate the site, and you shouldn't continue.
    d37t50w1 uses an invalid security certificate.
    The certificate is not trusted because it is self-signed.
    (Error code: sec_error_ca_cert_invalid)
    ===
    Why is it giving this when using hostname but not when IP address is using?

    Corrected first para above:
    I am remotely accessing a website which has iFrame in it. The website uses https, but iFrame tag has "src" pointing to a site using http only. However, when I remotely go to the site, iFrame shows the message below although the "src" url is http only (there is no SSL certificate) when I use hostname address (https://<hostname>:8006/apprecovery/admin) in address bar. But I dont see the message in iFrame when I instead use IP Address (https://<IP Address>:8006/apprecovery/admin) to go to main website.

  • When using the Save Layer Comps to PDF Script, can you change the PDF settings. I need both Smallest File Size and Press Quality?

    When using the Save Layer Comps to PDF Script, can you change the PDF settings. I need both Smallest File Size and Press Quality? Thanks in advance to the group for assisting with this matter.
    — John

    No, there isn't. The way you're using the file is not recommended. You
    should use a review tracker to avoid getting in the way of one another.

  • Using dbms_job but it can't start automatically

    I want to use dbms_job for job scheduling in Oracle 8i but got some serious problem.
    [Question 1]
    If I execute dbms_job like following, I've error :
    [Execute]
    dbms_job.submit(jobno,
    'my_proc',
    sysdate,
    'sysdate + 1/86400');
    [Error]
    declare
    ERROR at line 1:
    ORA-06550: line 1, column 149:
    PLS-00103: Encountered the symbol "END" when expecting one of the following:
    := . ( % ;
    The symbol ";" was substituted for "END" to continue.
    ORA-06512: at "SYS.DBMS_JOB", line 72
    ORA-06512: at "SYS.DBMS_JOB", line 140
    ORA-06512: at line 18
    If I execute dbms_job like following, I've n o error message.
    [Execute]
    ----------------------------------dbms_job.submit(jobno,
    'my_proc',
    sysdate,
    'sysdate + 1/86400',
    true,
    123,
    true);
    How come it is required to input such default parameter.
    [Question 2]
    Even I can submit the job successfully, it can't run automatically.
    If I try to force it to run by executing dbms_job.run(jobno, true), I've the following error :
    [Error]
    ERROR at line 1:
    ORA-12011: execution of 1 jobs failed
    ORA-06512: at "SYS.DBMS_IJOB", line 394
    ORA-06512: at line 1
    My config for my server is like this :
    job_queue_processes = 2
    job_queue_interval = 1
    By checking the value from user_jobs, I found that next_date, next_sec are not refreshed and with broken = 'N' and failures = 0.
    Sometimes if I restart the server or compile the what "my_proc", the job run automatically.
    Can anyone help me to solve it ?
    Rgds,
    Edward
    null

    I've found syntax error in your code.
    You forgot to put ';' after the call(my_proc) to the procedure. It should look like as mentioned
    below.
    dbms_job.submit(jobno,
    'my_proc;',
    sysdate,
    'sysdate + 1/86400');
    It should work now.
    null

  • Procedure compiles on Oracle 10g but fails to do so on Oracle 9i

    Hi,
    We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
    SQL> show err
    Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
    LINE/COL ERROR
    22/8 PL/SQL: SQL Statement ignored
    31/37 PL/SQL: ORA-00907: missing right parenthesis
    the 9i version
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    10g version
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE 10.1.0.2.0 Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    If any body knows the soln, please help
    Thanks in advance
    Gibs
    Procedure
    CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
    in_emp_id IN VARCHAR,
    in_start_date IN DATE,
    in_end_date IN DATE,
    non_complog OUT Types.ref_cursor
    IS
    BEGIN
    OPEN non_complog
    FOR
    SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
    vcname AS plan_name, start_date, nid AS nid
    FROM (SELECT *
    FROM ((SELECT employee_id, NAME
    FROM hrsample_bridge.ath_employee
    WHERE ( (in_emp_id IS NULL AND 1 = 1)
    OR (in_emp_id IS NOT NULL
    AND employee_id = in_emp_id
    )) CROSS JOIN (SELECT vcname
    FROM orahrsamplecore.athobjectinstance
    WHERE compliance_status = 1
    AND ( (in_start_date IS NULL
    OR (dtcompreissue
    BETWEEN in_start_date
    AND in_end_date
    )))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
    employee_id
    AND c.plan_name =
    vcname
    WHERE c.emp_id IS NULL
    AND ( ( (in_emp_id IS NULL)
    OR ( in_emp_id IS NOT NULL
    AND NOT EXISTS (
    SELECT 1
    FROM COMPTRACKLOG
    WHERE plan_name = vcname
    AND c.emp_id = in_emp_id )
    AND ( (in_start_date IS NULL)
    OR ( (in_start_date IS NOT NULL)
    AND c.end_date BETWEEN in_start_date AND in_end_date
    ORDER BY c.emp_id, c.plan_name ASC;
    END;
    /

    Hi,
    We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
    SQL> show err
    Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
    LINE/COL ERROR
    22/8 PL/SQL: SQL Statement ignored
    31/37 PL/SQL: ORA-00907: missing right parenthesis
    the 9i version
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    10g version
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE 10.1.0.2.0 Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    If any body knows the soln, please help
    Thanks in advance
    Gibs
    Procedure
    CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
    in_emp_id IN VARCHAR,
    in_start_date IN DATE,
    in_end_date IN DATE,
    non_complog OUT Types.ref_cursor
    IS
    BEGIN
    OPEN non_complog
    FOR
    SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
    vcname AS plan_name, start_date, nid AS nid
    FROM (SELECT *
    FROM ((SELECT employee_id, NAME
    FROM hrsample_bridge.ath_employee
    WHERE ( (in_emp_id IS NULL AND 1 = 1)
    OR (in_emp_id IS NOT NULL
    AND employee_id = in_emp_id
    )) CROSS JOIN (SELECT vcname
    FROM orahrsamplecore.athobjectinstance
    WHERE compliance_status = 1
    AND ( (in_start_date IS NULL
    OR (dtcompreissue
    BETWEEN in_start_date
    AND in_end_date
    )))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
    employee_id
    AND c.plan_name =
    vcname
    WHERE c.emp_id IS NULL
    AND ( ( (in_emp_id IS NULL)
    OR ( in_emp_id IS NOT NULL
    AND NOT EXISTS (
    SELECT 1
    FROM COMPTRACKLOG
    WHERE plan_name = vcname
    AND c.emp_id = in_emp_id )
    AND ( (in_start_date IS NULL)
    OR ( (in_start_date IS NOT NULL)
    AND c.end_date BETWEEN in_start_date AND in_end_date
    ORDER BY c.emp_id, c.plan_name ASC;
    END;
    /

  • SW updater seems to work when using EDGE but not w...

    i used to check for updates via wifi and SW updater .i always got refreshing failed.but when i tried via EDGE it worked partially .it showed the update "ovi unlimited maps" and sucessfully downloaded it  but failed to install it ..any ideas?

    Try going to wlan settings and select start web browsing, then select menu and go to sw app and check for updates you should then be able to download and install apps.
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • The page at docviewer at my company's website displays this error when using FireFox but not hwne using I.E. "ERROR: JAS MiscUtils AX Control not installed!"

    When using Fire Fox to view documents at my company's website, the following message occurs:
    "ERROR: JAS MiscUtils AX Control not installed!"
    This error does not occur when I use I.E.

    That error message probably refers to a missing ActiveX control, which is why it doesn't work in Firefox but does in Internet Explorer.
    https://support.mozilla.com/en-US/kb/ActiveX

  • Cannot get the details in ME2N when using ALV but can when using BEST

    Hi experts,
    Could you let me know why I am not able to get the results when using ALV as Scope of List in ME2N Transaction, but can get data when using BEST?
    Regards,
    Pri

    Hi Priya,
    Check the following :
    IMG-> Materials Management-> Purchasing-> Reporting-> Scope of List->Define Scope of List
    Here select ALV and click details.
    Check the check boxes you need.
    Cheers,
    Satish

  • Import Successful in one TRACK but failed another TRACK

    Hi Experts,
    I am on EP7.0 SP11, ERP2005, NW2004s.
    I created two tracks for ESS modifications.
    TRACK1: defined Runtime Systems: NWDI DEV = NWDI CONS, TEST
        1. checked in the components
        2. <b> Imported the components in DEV system: Import is successful</b>
        3. Did not import the components into CONS system, test system
        4. Imported the development configuration of DEV system into NWDS. I can see all the ESS applications. Active DCs , InActive DC views, etc.
    TRACK2:defined Runtime Systems: NWDI DEV = NWDI CONS, TEST
        1. checked in the components
        2.  Started Import of the components into DEV system one by one and SAP_ESS is last one:
        <b> Simultaneously, the components with status "import finished" are imported into CONS system. I did this while import of the last component SAP_ESS into DEV system is still running in the same TRACK</b>.</b>.
    I do not know why import in one track is successful and in another is failed. Am I missing in the sequence of activities for the two tracks.
    Regards,

    Solved on my own.

  • Unable to read e-mails off of Hotmail when using Firefox, but I can with Internet Explorer. Hotmail seems to be the only one I have trouble with.

    Having trouble doing different functions on Hotmail when using Firefox. Doesn't seem to be a problem with other sites. Also, no trouble using Hotmail when using Internet Explorer. This just started, yesterday.

    I had no problem using Hotmail yesterday on Firefox 10.0.2
    Try clearing your cache and if necessary the site cookies.
    * [[deleting cookies#w_delete-cookies-for-a-single-site]]_delete-cookies-for-a-single-site
    *[[how to clear the cache]]
    * also ensure [[javascript]] is enabled

Maybe you are looking for

  • Scanning to computer from HP Office jet 6600

    I have a Mac OS X 10.9.4. It will not allow me to scan to my computer. I get a notice that Scan to computer cannot be enabled. I have tried downloading from HP, and still no luck. Any ideas or instructions on what I can do?

  • Pricing Procedure in SRM

    Hi, Can anyone explain how pricing procedcure works in SRM system. do we need to maintains Pricing procedure in MM? Thanks, Raj

  • Who wants a black Audigy Platinum faceplate

    Ok, as far as I could tell, Creative teased us with the promise of a black faceplate that we could purchase separately, but then never actually made it available. They just had their next generation products include them, hoping we'd fork out some ex

  • What is my questions for my iPad?, What is my questions for my iPad?

    Uh hi Apple my i forgot my questions and I can't buy any thing

  • Keyboard volume bottons not responding

    I have a Mac Pro, I have it connected via cable to my sterio speakers, the sound plays out of the speakers, however the volume buttons on my keyboard will only control the Mac Pro speaker on the computer, sometimes just with clicking all sorts of ran