Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to give commit to an another session.

Posted on 2012-03-13
6
1,510 Views
Last Modified: 2012-03-27
I have a session in which I just gave insert and update statements.
It is a plsql procedure and I am executing it from unix. Forgot to give a commit or a rollback in the procedure

How I can give a commit or a rollback on that session with the session ID.?

Also, What will happen If I kill that session in the middle?
0
Comment
Question by:sakthikumar
6 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 250 total points
ID: 37715861
you can't force a commit/rollback in somebody else's live session  - yikes!  that would be scary

if you kill it, it will rollback
0
 
LVL 16

Assisted Solution

by:Wasim Akram Shaik
Wasim Akram Shaik earned 250 total points
ID: 37716233
it would be better for that plsql block running on unix to get complete where in you can perform the commit in the same session for the changes to get committed in db as well...

other than that, as sdstuber said, you can always roll it back by killing it any time..
0
 
LVL 5

Expert Comment

by:Bajwa
ID: 37716492
Start over!!  Your pl/sql block that is running won't do a thing!!
0
 
LVL 4

Expert Comment

by:ytarkan
ID: 37719116
What is you business requirement ? Why do you want to do such a thing ? I'm sure there is another way of solving your problem.
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 37746943
why the B?


You failed to give any response or ask for additional information.   A penalty grades is inappropriate
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question