Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Releasing table lock

How to release a table lock?

How to release a table lock?
The only way to release a table lock is to kill the session holding the lock. There is no command to release any locks held by a session. Query V$LOCKED_OBJECT to determine the SESSION_ID. Then look in V$SESSION to find the SERIAL# for the SID matching the SESSION_ID. Once you know the SID and SERIAL#, you can kill the session with the following command:
ALTER SYSTEM KILL SESSION 'sid,serial#';
Replace 'sid,serial#' with the values you find in V$SESSION.

Dig Deeper on Oracle database backup and recovery

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close