We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Unlocking locked tables

nesbit
nesbit asked
on
Medium Priority
1,669 Views
Last Modified: 2008-03-10
How can I unlock tables locked by a program that crashed, without having to restart the database instance?  The tables were locked EXCLUSIVE.
Comment
Watch Question

Author

Commented:
Adjusted points to 50

Author

Commented:
Adjusted points to 100
Commented:
You should kill user session which crashed.
This releases all locks and server resources
hold by that session and does rollback of all
its current transactions.
 You can do it either in SQL*Dba screen mode
(Instance->Kill Session menu item) or in SQL*Plus
by 'alter system kill session' command (you should
have proper privilege, or, in other words,
connected as 'system').
 In SQL*Plus you should first determine 'sid' and
'serial number' of crashed session, usually it can
be found given its user name as
  select sid, serial# from v$session where username='USER_NAME';
Then you substitute these two numbers in alter system command:
  alter system kill session 'SID,SERIAL#';

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
Arh is right.
In addition, if you are using Enterprise Manager in Windows 95 then you can also kill the session from the graphical "Top Sessions Manager" right-clicking on the crashed session.

Commented:
Arh is right.
In addition, if you are using Enterprise Manager in Windows 95 then you can also kill the session from the graphical tool "Top Sessions Manager" right-clicking on the crashed session.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.