Transaction locks in Oracle (locked tables and locked sessions)

Source: Internet
Author: User

Transaction locks in Oracle (locked tables and locked sessions) Today I learned another trick to view the transaction locks caused by abnormal session exits in Oracle Database: 1. view the locked table SELECT B. owner, B. object_name,. session_id,. locked_mode FROM v $ locked_object a, dba_objects B WHERE B. object_id =. object_id; 2. view the locked Session SELECT B. username, B. sid, B. serial #, logon_time FROM v $ locked_object a, v $ session B WHERE. session_id = B. sid order by B. logon_time; 3. if you want to disconnect a session, run Alter system kill session 'sid, serial # 'www.2cto.com

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.