Oracle constraint / locked - database primary and foreign key constraints and deadlocked queries

accoreding to the constraint key name, acknowledge the detail relevant infos.

select * from dba_constraints where constraint_name='MSCP_T_CHKLST_ST_PRDCT_PR_FK1'

 

the table_nae column is the goal.

 

table locked:

select s.username, l.session_id,s.serial#, s.lockwait,s.status,s.machine,s.program from v$session s,v$locked_object l where s.sid = l.session_id;  

 

alter system kill session '564,347';

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326395762&siteId=291194637