Drop table and drop package body hang

  • From: Guang Mei <gmei@xxxxxxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Mon, 12 Apr 2010 11:38:51 -0400

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


Other related posts: