When Oracle updates or deletes a record, it is unable to operate or be locked for resolution __oracle
Source: Internet
Author: User
When a record is updated or deleted, it cannot be manipulated, or is locked, and sometimes, when we do update or delete on Oracle, there is no time to get the result of the operation,
has been in the process of being processed, it is time to consider whether Oracle itself has locked the record. 1: View whether the record is locked SELECT a.object_id, a.session_id, b.object_name from V$locked_object A, dba_objects b WHERE a.object_id = b. OBJECT_ID 2: View the locked record ID select object_name,machine,s.sid,s.serial# from v$locked_object l,dba_objects o, v$session s wher E l.object_id = o.object_id and l.session_id=s.sid 3: Delete or unlock the record alert system kill session ' sid,serial# ' (for example: Alert system Kill session ' 1,1212 ')
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