PL/SQL modifies Oracle stored procedure compilation and it freezes

Problem Description:

Here I use the Plsql dev client, and then modify the stored procedure compilation and it freezes. I always thought it was a problem with the client, but it was not because the sessionid was occupied. It only needs to execute a few lines of commands. The reason is that someone may be executing the stored procedure, so the modification on your side will be stuck.

problem solved:

Maybe these commands are a bit unfamiliar, this is not important, just press to execute them.

The first step: get session_jd

select * FROM dba_ddl_locks where name =upper('存储过程名称');

Insert picture description here

Step 2: Get serial according to session_id

select t.sid, t.serial# from v$session t where t.sid = 填写上面查出来的session_id;

Insert picture description here

Step 3: Get sid and serial# kill according to

alter system kill session 'sid,serial#'; 

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43888891/article/details/112862864