Solved

Unlocking locked tables

Posted on 1997-09-02
5
1,651 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.
0
Comment
Question by:nesbit
[X]
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
  • 2
  • 2
5 Comments
 

Author Comment

by:nesbit
ID: 1080499
Adjusted points to 50
0
 

Author Comment

by:nesbit
ID: 1080500
Adjusted points to 100
0
 
LVL 1

Accepted Solution

by:
arh earned 100 total points
ID: 1080501
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#';

0
 
LVL 1

Expert Comment

by:rodo
ID: 1080502
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.
0
 
LVL 1

Expert Comment

by:rodo
ID: 1080503
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Via a live example, show how to take different types of Oracle backups using RMAN.

730 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