Delete uncommitted oracle transactions

Source: Internet
Author: User
Tags vps
First query the uncommitted transactions SELECTdob. OBJECT_NAMETable_Name, lo. SESSION_ID |, | vss. SERIAL # delete number, lo. locked_mode, lo. SESSION_ID, vss. SERIAL #, vss. actionAction, vss. osuserOSUSER, vss. LOGON_TIME, vss. processAP_PID, VPS. SPIDDB_PID, vss. * From

First query the uncommitted transaction SELECT dob. OBJECT_NAME Table_Name, lo. SESSION_ID | ',' | vss. SERIAL # delete number, lo. locked_mode, lo. SESSION_ID, vss. SERIAL #, vss. action Action, vss. osuser OSUSER, vss. LOGON_TIME, vss. process AP_PID, VPS. SPID DB_PID, vss. * From

First query uncommitted transactions

SELECT dob. OBJECT_NAME Table_Name, lo. SESSION_ID | ',' | vss. SERIAL # delete number,


Lo. locked_mode, lo. SESSION_ID, vss. SERIAL #, vss. action Action, vss. osuser OSUSER, vss. LOGON_TIME,

Vss. process AP_PID, VPS. SPID DB_PID, vss .*

From v $ locked_object lo, dba_objects dob, v $ session vss, V $ PROCESS VPS

Where lo. OBJECT_ID = dob. OBJECT_ID

And lo. SESSION_ID = vss. SID

And vss. paddr = VPS. addr

Order by 2, 3, DOB. object_name



Delete the queried transaction ('1717' is the deletion number queried above)

ALTER system kill session '2017 17'
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.