Now what I'm confused about is the 'IMMEDIATE' clause when used with 'DISCONNECT SESSION' and 'KILL SESSION'. Or maybe there is no difference but I just want to know.
Originally posted by toshi
Now what I'm confused about is the 'IMMEDIATE' clause when used with 'DISCONNECT SESSION' and 'KILL SESSION'. Or maybe there is no difference but I just want to know.
Thanks for your reply
There is difference. With "kill" you mark the session as dead, rollback ongoing transactions, release all session locks, and partially recover session resources. With "disconnect" you only destroy the dedicated process (or the circuit).
Oracle Certified Master
Oracle Certified Professional 6i,8i,9i,10g,11g
email: ocp_9i@yahoo.com
IMMEDIATE clause with KILL SESSION:
instruct Oracle to roll back ongoing transactions, release all session locks, recover the entire session state, and return control to you immediately.
IMMEDIATE clause with DISCONNECT SESSION:
disconnects the session and recovers the entire session state immediately, without waiting for ongoing transactions to complete.
Bookmarks