RE: Drop table and drop package body hang

From: Powell, Mark <mark.powell2_at_hp.com>
Date: Mon, 12 Apr 2010 16:53:29 +0000
Message-ID: <7C4BF3B32B80CC44AE37D31B172415934E6C331F71_at_GVW1337EXC.americas.hpqcorp.net>


 

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_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Guang Mei Sent: Monday, April 12, 2010 11:39 AM
To: oracle-l_at_freelists.org
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
--

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

--

http://www.freelists.org/webpage/oracle-l Received on Mon Apr 12 2010 - 11:53:29 CDT

Original text of this message