ORA-01086: savepoint 'L_SAVEPOINT' never established in this session or is invalid Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience Should we burninate the [wrap] tag? The Ask Question Wizard is Live!Oracle ORA-01086: savepoint never establishedSave point never created errorHow do I check whether a savepoint has been established before issuing a rollback?calling PLSQL procedure from JavaWhy does a savepoint error appear in this situation?DB2 savepoint in stored procedure is invalidORA-00900: invalid SQL statement in SQLPLSQL: ORA-14552 Cannot perform DDL, CommitORA-01722: invalid number ORA-06512: at “BWSTAGE.LOAD_CONTACT_PROCEDURE”, line 8 ORA-06512: at line 2'SavePoint' do not work in NPoco(Oracle) for separate execute statements

How do pianists reach extremely loud dynamics?

Apollo command module space walk?

Fundamental Solution of the Pell Equation

Can I cast Passwall to drop an enemy into a 20-foot pit?

Why aren't air breathing engines used as small first stages

Short Story with Cinderella as a Voo-doo Witch

At the end of Thor: Ragnarok why don't the Asgardians turn and head for the Bifrost as per their original plan?

Why did the rest of the Eastern Bloc not invade Yugoslavia?

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

Seeking colloquialism for “just because”

List *all* the tuples!

What is the role of the transistor and diode in a soft start circuit?

How to deal with a team lead who never gives me credit?

List of Python versions

Ring Automorphisms that fix 1.

String `!23` is replaced with `docker` in command line

Can an alien society believe that their star system is the universe?

Naming the result of a source block

Error "illegal generic type for instanceof" when using local classes

Why is "Consequences inflicted." not a sentence?

Is it true that "carbohydrates are of no use for the basal metabolic need"?

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

Why is my conclusion inconsistent with the van't Hoff equation?

Dating a Former Employee



ORA-01086: savepoint 'L_SAVEPOINT' never established in this session or is invalid



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
Should we burninate the [wrap] tag?
The Ask Question Wizard is Live!Oracle ORA-01086: savepoint never establishedSave point never created errorHow do I check whether a savepoint has been established before issuing a rollback?calling PLSQL procedure from JavaWhy does a savepoint error appear in this situation?DB2 savepoint in stored procedure is invalidORA-00900: invalid SQL statement in SQLPLSQL: ORA-14552 Cannot perform DDL, CommitORA-01722: invalid number ORA-06512: at “BWSTAGE.LOAD_CONTACT_PROCEDURE”, line 8 ORA-06512: at line 2'SavePoint' do not work in NPoco(Oracle) for separate execute statements



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















In my case, savepoint was set in Java and I am trying to rollback in a plsql procedure which was called in Java using a callable statement.



There are no commits or rollbacks in between, but I am still seeing the error:




ORA-01086: savepoint 'L_SAVEPOINT' never established in this session
or is invalid




Is it because the savepoint is set in Java and I am trying to rollback in plsql?
Can someone please help me with this?










share|improve this question



















  • 5





    How do you set the savepoint from java? Show us your code.

    – Pavel Smirnov
    Mar 22 at 9:15






  • 2





    Are you sure this is all in the same session; and there hasn't been an autocommit in between (as the savepoint and PL/SQL call are, presumably, two separate calls to the DB)?

    – Alex Poole
    Mar 22 at 9:20






  • 2





    Looks like, java and plsql procedure are considered as 2 different transactions. Issue got fixed for me when I set the savepoint inside the PL/SQL procedure and rollback also inside the procedure.

    – Mounika
    Mar 22 at 9:39

















1















In my case, savepoint was set in Java and I am trying to rollback in a plsql procedure which was called in Java using a callable statement.



There are no commits or rollbacks in between, but I am still seeing the error:




ORA-01086: savepoint 'L_SAVEPOINT' never established in this session
or is invalid




Is it because the savepoint is set in Java and I am trying to rollback in plsql?
Can someone please help me with this?










share|improve this question



















  • 5





    How do you set the savepoint from java? Show us your code.

    – Pavel Smirnov
    Mar 22 at 9:15






  • 2





    Are you sure this is all in the same session; and there hasn't been an autocommit in between (as the savepoint and PL/SQL call are, presumably, two separate calls to the DB)?

    – Alex Poole
    Mar 22 at 9:20






  • 2





    Looks like, java and plsql procedure are considered as 2 different transactions. Issue got fixed for me when I set the savepoint inside the PL/SQL procedure and rollback also inside the procedure.

    – Mounika
    Mar 22 at 9:39













1












1








1








In my case, savepoint was set in Java and I am trying to rollback in a plsql procedure which was called in Java using a callable statement.



There are no commits or rollbacks in between, but I am still seeing the error:




ORA-01086: savepoint 'L_SAVEPOINT' never established in this session
or is invalid




Is it because the savepoint is set in Java and I am trying to rollback in plsql?
Can someone please help me with this?










share|improve this question
















In my case, savepoint was set in Java and I am trying to rollback in a plsql procedure which was called in Java using a callable statement.



There are no commits or rollbacks in between, but I am still seeing the error:




ORA-01086: savepoint 'L_SAVEPOINT' never established in this session
or is invalid




Is it because the savepoint is set in Java and I am trying to rollback in plsql?
Can someone please help me with this?







oracle plsql savepoints






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 9:55









Barbaros Özhan

15.2k71634




15.2k71634










asked Mar 22 at 9:06









MounikaMounika

6510




6510







  • 5





    How do you set the savepoint from java? Show us your code.

    – Pavel Smirnov
    Mar 22 at 9:15






  • 2





    Are you sure this is all in the same session; and there hasn't been an autocommit in between (as the savepoint and PL/SQL call are, presumably, two separate calls to the DB)?

    – Alex Poole
    Mar 22 at 9:20






  • 2





    Looks like, java and plsql procedure are considered as 2 different transactions. Issue got fixed for me when I set the savepoint inside the PL/SQL procedure and rollback also inside the procedure.

    – Mounika
    Mar 22 at 9:39












  • 5





    How do you set the savepoint from java? Show us your code.

    – Pavel Smirnov
    Mar 22 at 9:15






  • 2





    Are you sure this is all in the same session; and there hasn't been an autocommit in between (as the savepoint and PL/SQL call are, presumably, two separate calls to the DB)?

    – Alex Poole
    Mar 22 at 9:20






  • 2





    Looks like, java and plsql procedure are considered as 2 different transactions. Issue got fixed for me when I set the savepoint inside the PL/SQL procedure and rollback also inside the procedure.

    – Mounika
    Mar 22 at 9:39







5




5





How do you set the savepoint from java? Show us your code.

– Pavel Smirnov
Mar 22 at 9:15





How do you set the savepoint from java? Show us your code.

– Pavel Smirnov
Mar 22 at 9:15




2




2





Are you sure this is all in the same session; and there hasn't been an autocommit in between (as the savepoint and PL/SQL call are, presumably, two separate calls to the DB)?

– Alex Poole
Mar 22 at 9:20





Are you sure this is all in the same session; and there hasn't been an autocommit in between (as the savepoint and PL/SQL call are, presumably, two separate calls to the DB)?

– Alex Poole
Mar 22 at 9:20




2




2





Looks like, java and plsql procedure are considered as 2 different transactions. Issue got fixed for me when I set the savepoint inside the PL/SQL procedure and rollback also inside the procedure.

– Mounika
Mar 22 at 9:39





Looks like, java and plsql procedure are considered as 2 different transactions. Issue got fixed for me when I set the savepoint inside the PL/SQL procedure and rollback also inside the procedure.

– Mounika
Mar 22 at 9:39












1 Answer
1






active

oldest

votes


















0














Just throwing some light on this, My colleague experienced the similar issue when he controls the transaction but I had a commit inside the stored procedure. Remove the Commit/Rollback from the SP and you should be all set if you want to control the transaction from Java.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296151%2fora-01086-savepoint-l-savepoint-never-established-in-this-session-or-is-inval%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Just throwing some light on this, My colleague experienced the similar issue when he controls the transaction but I had a commit inside the stored procedure. Remove the Commit/Rollback from the SP and you should be all set if you want to control the transaction from Java.






    share|improve this answer



























      0














      Just throwing some light on this, My colleague experienced the similar issue when he controls the transaction but I had a commit inside the stored procedure. Remove the Commit/Rollback from the SP and you should be all set if you want to control the transaction from Java.






      share|improve this answer

























        0












        0








        0







        Just throwing some light on this, My colleague experienced the similar issue when he controls the transaction but I had a commit inside the stored procedure. Remove the Commit/Rollback from the SP and you should be all set if you want to control the transaction from Java.






        share|improve this answer













        Just throwing some light on this, My colleague experienced the similar issue when he controls the transaction but I had a commit inside the stored procedure. Remove the Commit/Rollback from the SP and you should be all set if you want to control the transaction from Java.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 22 at 13:23









        VenkatVenkat

        347




        347





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296151%2fora-01086-savepoint-l-savepoint-never-established-in-this-session-or-is-inval%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript