oracle-table is locked

Source: Internet
Author: User

1. If you update a table, without an error, waiting for a long time is not over, it is likely that the table is locked.

2. View Locked objects

Select sid,serial#,username,schemaname,osuser,machine,terminal,program,owner,object_name, Object_type,o.object_id from dba_objects o,v$locked_object l,v$session swhere o. object_id =L.object_id and S.sid=l.session_id;  

3. The session that killed inactive's lock list

Alter system kill session ' sid,serial# ';

Alter Kill ' 491,47198 ';

4. View the current session

SELECT * from V$mystat where rownum = 1

Transferred from: http://blog.163.com/liyani_1980/blog/static/38604145201351033139921/

oracle-table is locked

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.