/* -- COMPILATION OF PACKAGE IS HANGING ON LIBRARY CACHE LOCK AND LIBRARY CACHE -- Example of Use -- ============== -- SQL> Connect SYS -- password: -- SQL> set serveroutput on -- SQL> exec who_is_using('my_funct%'); -- (14) - WEBUSER -- PL/SQL procedure successfully completed. -- SQL> */ Create this package and find out if there is a library cache lock. NOTICE OF CONFIDENTIALITY - This material is intended for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable laws. BE FURTHER ADVISED THAT THIS EMAIL MAY CONTAIN PROTECTED HEALTH INFORMATION (PHI). BY ACCEPTING THIS MESSAGE, YOU ACKNOWLEDGE THE FOREGOING, AND AGREE AS FOLLOWS: YOU AGREE TO NOT DISCLOSE TO ANY THIRD PARTY ANY PHI CONTAINED HEREIN, EXCEPT AS EXPRESSLY PERMITTED AND ONLY TO THE EXTENT NECESSARY TO PERFORM YOUR OBLIGATIONS RELATING TO THE RECEIPT OF THIS MESSAGE. If the reader of this email (and attachments) is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. Please notify the sender of the error and delete the e-mail you received. Thank you. -----Original Message----- From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Guang Mei Sent: Monday, April 12, 2010 8:39 AM To: oracle-l@xxxxxxxxxxxxx Subject: Drop table and drop package body hang I have never seen this before. We have an "Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production" db on a linux box. We have a cron job that runs every night and it worked fine for years. This past Saturday morning, whole schema export worked fine, no error. On Saturday night this cron job ran, it just calls an oracle package P1, what it does at first is to run EXECUTE IMMEDIATE 'drop table T1 purge'; and this time it hang for two days. This morning I killed the cron job, logged into sqlplus, but when I did any of the following, the sqlplus session just hang: desc T1; alter package P1 compile body; drop package body P1; drop package P1; DBA_OBJECTS show there is no T1 in data dictionary. Trying to reload P1 code into DB, it also just hang at "CREATE OR REPLACE PACKAGE BODY P1". When I tried all the above I also looked v$lock from another sqlplus session and nothing was there. BTW this table and package are not used by any other process. I also checked "df -k" on OS and asked our SysAdmin to verifiy there is no hardware issues. Any idea why I am getting this? TIA. Guang -- //www.freelists.org/webpage/oracle-l