CREATE OR REPLACE PROCEDURE SOLVE_LOCK AS V_SQL VARCHAR2(3000); --定义 v_sql 接受抓取锁的sql语句CUR_LOCK SYS_REFCURSOR; --定义游标变量,循环执行抓取锁的sql语句 TYPE TP_LOCK IS RECORD( --定义 record类型的 变量V_SID NUMBER,V_TYPE VARCHAR2(10),V_ID1 NUMBER,V_ID2 NUMBER,V_LMODE VARCHAR2(…