RE: Drop table and drop package body hang

  • From: "Powell, Mark" <mark.powell2@xxxxxx>
  • To: "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 12 Apr 2010 16:53:29 +0000

 
What does Oracle show the session that hangs after issiing a alter package 
command as waiting on?  It has to be waiting on something.


-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Guang Mei
Sent: Monday, April 12, 2010 11: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


--
//www.freelists.org/webpage/oracle-l


Other related posts: