Solved

How to give commit to an another session.

Posted on 2012-03-13
6
1,447 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 73

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 73

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

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

772 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