I notice that my regeneration was stalling through the install4.sql script in a development environment. Finally, the regeneration timed out.
Next, I check for the last spool file and it is the file, ycrenvph.lst. This script creates the header for the package, noetix_env_pkg.
I notice the error, ORA-04021 being thrown. This is the timeout error.
I query the v$session sessions owned by apps or noetix_sys which could be locking this package. Nothing stands out.
Next, I query the V$access table and I notice that there is session that has a lock on this object.
SELECT * FROM V$ACCESS WHERE OBJECT = 'NOETIX_ENV_PKG';
It is important to be cognizant of what sessions you intend to kill or let run its course. It is important to know the details regarding a specific session (who, what, where, how and why) before any course of action is taken. No matter what environment one is in, it usually is better to let something run its course than to initiate terminating a session.
Next, I find this session's detail:
SELECT * FROM V$SESSION WHERE SID = 1098;
and kill the session.
ALTER SYSTEM KILL SESSION '1098,61537';
Next, I check for the last spool file and it is the file, ycrenvph.lst. This script creates the header for the package, noetix_env_pkg.
I notice the error, ORA-04021 being thrown. This is the timeout error.
I query the v$session sessions owned by apps or noetix_sys which could be locking this package. Nothing stands out.
Next, I query the V$access table and I notice that there is session that has a lock on this object.
SELECT * FROM V$ACCESS WHERE OBJECT = 'NOETIX_ENV_PKG';
It is important to be cognizant of what sessions you intend to kill or let run its course. It is important to know the details regarding a specific session (who, what, where, how and why) before any course of action is taken. No matter what environment one is in, it usually is better to let something run its course than to initiate terminating a session.
Next, I find this session's detail:
SELECT * FROM V$SESSION WHERE SID = 1098;
and kill the session.
ALTER SYSTEM KILL SESSION '1098,61537';
No comments:
Post a Comment