Cannot drop table (error ORA-00054)
I am trying to drop a table but get an "ORA-00054 Resource busy and acquire with NOWAIT specified". Previously I had created this table and run a join which I cancelled because it was taking too long and obviously not doing what I wanted. Now I can't get rid of the table, even with sysdba privileges and re-starting the machine running the database.
Can anyone help?
It looks like your table got locked. Do you see any locks in your database on this table? I also, suggest you to close or kill the session which was cancled due to long running join condition, as you said in your question.
Similar Messages
-
Dear All,
I created one table like
create table cls_lrn_tab_unique (F_no number unique UK_F_NO );
after performing some operations I want to delete the same.
At that time i got following error. Please help me and tell what is the reason for the error.
ORA-00604 error occured at recursive level1
ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,
ORA-06512 at line no 2
Thanks and Regards
Prasad26bffcad-f9a2-4dcf-afa0-e1e33d0281bf wrote:
Dear All,
I created one table like
create table cls_lrn_tab_unique (F_no number unique UK_F_NO );
after performing some operations I want to delete the same.
At that time i got following error. Please help me and tell what is the reason for the error.
ORA-00604 error occured at recursive level1
ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,
ORA-06512 at line no 2
Thanks and Regards
Prasad
ORA-20123 is a localized/customized error code & message; therefore any solution depends upon what is unique inside your DB now.
I suspect that some sort of TRIGGER exists, which throws posted error, but this is just idle speculation on my part.
How do I ask a question on the forums?
https://forums.oracle.com/message/9362002#9362002 -
Errors: ORA-00054 & ORA-01452 while running DAC Full Load
Hi Friends,
Previously, I ran full load...it went well. And, I did some sample reports also in BI APPS 7.9.6.2
Now, I modified few parameters as per the Business and I try to run Full Load again...But I struck with few similar errors. I cleared couple of DB Errors.
Please, help me out to solve the below errors.
1. ANOMALY INFO::: Error while executing : TRUNCATE TABLE:W_SALES_BOOKING_LINE_F
MESSAGE:::com.siebel.etl.database.IllegalSQLQueryException: DataWarehouse:TRUNCATE TABLE W_SALES_BOOKING_LINE_F
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
--I checked W_SALES_BOOKING_LINE_F, it contain s data.
2. ANOMALY INFO::: Error while executing : CREATE INDEX:W_GL_REVN_F:W_GL_REVN_F_U1
MESSAGE:::java.lang.Exception: Error while execution : CREATE UNIQUE INDEX
W_GL_REVN_F_U1
ON
W_GL_REVN_F
INTEGRATION_ID ASC
,DATASOURCE_NUM_ID ASC
NOLOGGING
with error DataWarehouse:CREATE UNIQUE INDEX
W_GL_REVN_F_U1
ON
W_GL_REVN_F
INTEGRATION_ID ASC
,DATASOURCE_NUM_ID ASC
NOLOGGING
ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
-- Yes, I found duplicate values in this table W_GL_REVN_F. But, how can I rectify it. I did some engineering, but failed.
please tell me the steps to acheive....
Thanks in advance..
StoneHi, Please see the answers (in bold) below.
1. ANOMALY INFO::: Error while executing : TRUNCATE TABLE:W_SALES_BOOKING_LINE_F
MESSAGE:::com.siebel.etl.database.IllegalSQLQueryException: DataWarehouse:TRUNCATE TABLE W_SALES_BOOKING_LINE_F
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
--I checked W_SALES_BOOKING_LINE_F, it contain s data.
Just restart the load, It seems like your DB processes are busy and the table still has a lock on it which means something is not yet Commited/Rolled Back.
If this issue repeats you can mail your DBA and ask him to look in to the issue
2. ANOMALY INFO::: Error while executing : CREATE INDEX:W_GL_REVN_F:W_GL_REVN_F_U1
MESSAGE:::java.lang.Exception: Error while execution : CREATE UNIQUE INDEX
W_GL_REVN_F_U1
ON
W_GL_REVN_F
INTEGRATION_ID ASC
,DATASOURCE_NUM_ID ASC
NOLOGGING
with error DataWarehouse:CREATE UNIQUE INDEX
W_GL_REVN_F_U1
ON
W_GL_REVN_F
INTEGRATION_ID ASC
,DATASOURCE_NUM_ID ASC
NOLOGGING
ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
-- Yes, I found duplicate values in this table W_GL_REVN_F. But, how can I rectify it. I did some engineering, but failed.
please tell me the steps to achieve....
please execute this sql and get the duplicate values. If the count is less you can delete the records based on ROW_WID
How many duplicates do you have in total?
*1. SELECT INTEGRATION_ID,DATASOURCE_NUM_ID,count(*) FROM W_GL_REVN_F*
GROUP BY INTEGRATION_ID, DATASOURCE_NUM_ID
HAVING COUNT()>1*
*2. SELECT ROW_WID,DATASOURCE_NUM_ID,INTEGRATION_ID FROM W_GL_REVN_F*
WHERE INTEGRATION_ID= (from 1st query)
*3. DELETE from W_GL_REVN_F where ROW_WID=( from 2nd query)*
Hope this helps !! -
Can't drop text index (ORA-00054: resource busy) - causes?
Thanks, you were right! It works now, but I have another issue. I only added about 75 MB of PDFs (20 files) into my table, and indexed it. Indexing took about 4 minutes. But now, whenever I try to drop the index, I get this error:
ORA-00054: resource busy and acquire with NOWAIT specified
I tried waiting an hour, and it still gives me the error - it really shouldn't be doing anything. Would a memory or storage space issue cause this? I'd appreciate any help you could give. Thanks.Try drop index <name> force
-
SRKIM: Synchronize Wf Local Tables Errors: Ora-01400
PURPOSE
Synchronize Wf Local Tables 수행 시 발생한 ora-01400 error 를 해결한다.
Problem Description
Synchronize Wf Local Tables 수행 시 아래와 같은 error 가 발생하였다.
ERROR
FNDWFLSC module: Synchronize WF LOCAL tables
Current system time is 31-AUG-2005 09:39:54
**Starts**31-AUG-2005 09:39:54
**Ends**31-AUG-2005 09:40:33
ORA-12801: error signaled in parallel query server P000
ORA-01400: cannot insert NULL into
("APPLSYS"."WF_LOCAL_ROLES_STAGE"."DISPLAY_NAME")
STEPS
The issue can be reproduced at will with the following steps:
Submit the concurrent program Synchronize WF LOCAL tables.
Log file shows error.
Workaround
N/A
Solution Description
해당 error 는 per_all_people_f table 의 global_name 이 null 이기 때문에 발생하는 error 로 가장 간단하게는 아래와 같이 처리 하면 된다.
update per_all_people_f
set global_name = full_name
where global_name is null;
commit;
위의 작업 후 다시 Synchronize WF LOCAL tables process 를 수행 한다.
해당 issue 에 대한 원인은 note. 397219.1 - Why Are There NULL Values For global_name In 를 참조 하도록 한다.
Reference Documents
Note 375508.1 - Synchronize Wf Local Tables Errors: Ora-01400: CannotHi Hussein,
Thanks for reply. Please find the below details.
RELEASE_NAME
12.1.3
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Linux **** 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Conc Req Log file
Application Object Library: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
FNDWFLSC module: Synchronize WF LOCAL tables
Current system time is 19-JUN-2012 05:49:20
**Starts**19-JUN-2012 05:49:20
**Ends**19-JUN-2012 05:49:20
ORA-14501: object is not partitioned
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Output file size:
0
Finished executing request completion options.
Concurrent request completed
Current system time is 19-JUN-2012 05:49:20
--------------------------------------------------------------------------- -
Hi,
I've table BP:
CREATE TABLE BP (
BV_ID VARCHAR2 (32) DEFAULT NULL NOT NULL,
BP_ID VARCHAR2 (32) DEFAULT NULL NOT NULL,
CONSTRAINT BP_PK
PRIMARY KEY ( BV_ID, BP_ID )
BP has more 100 records:
Now I'd like to drop table BP:
drop table BP;
ORA-02449: unique/primary keys in table referenced by foreign keys
ALTER TABLE BP DISABLE CONSTRAINT BP_PK;
ORA-02297: cannot disable constraint (BP_PK) - dependencies exist
I tried disable all constraints with:
select 'alter table '||table_name||' disable constraints '||constraint_name||';'
from user_cons_columns
where column_name='BV_ID'
or column_name='BP_ID'
but when I try drop table BP;
ORA-02449: unique/primary keys in table referenced by foreign keys
also truncate table BP:
ORA-02266: unique/primary keys in table referenced by enabled foreign keys
How can I drop table BP and disable all referenced by enabled foreign keys on table BP?
Thanks!Or you could disable the foreign key constraint refering to primary key on the table and then drop the PK and then drop the table
G -
Versions are Oracle 11.2.0.1.0 and SQL Developer 4.0.0.12 on Windows 7 Ultimate SP1.
Hi
I'm following the CBT Nuggets SQL Fundementals training (video #11) and cannot drop a table I have just created. The command executed and error are:
drop table newprods;
Error starting at line : 1 in command -
drop table newprods
Error report -
SQL Error: ORA-00604: error occurred at recursive SQL level 1
ORA-20000: Cannot drop object
ORA-06512: at line 2
00604. 00000 - "error occurred at recursive SQL level %s"
*Cause: An error occurred while processing a recursive SQL statement
(a statement applying to internal dictionary tables).
*Action: If the situation described in the next error on the stack
can be corrected, do so; otherwise contact Oracle Support.
As the HR user I created two tables and created a FK constraint between them. After truncating the table with this FK, I am unable to drop it. Even if I remove the FK, the error is the same. Issing the command in SQL*Plus gives the same error.
This is the first time I have created any tables since installing Oracle on this machine and is my first attempt at dropping a table. I have not created any sequences, triggers or views based on these newly created tables.
Does anyone have any ideas?
CheersC:\Oracle>sqlplus hr@orcl
SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 4 18:58:55 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> CREATE TABLE table1 (column1 VARCHAR2(20 BYTE));
Table created.
SQL> select * from table1;
no rows selected
SQL> drop table table1;
drop table table1
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-20000: Cannot drop object
ORA-06512: at line 2
SQL>
Can I run a query to see if there are any triggeres on the table?
EDIT: Ok it looks like no triggers:
SQL> show user
USER is "SYS"
SQL> select * from DBA_TRIGGERS where table_name like '%table1%';
no rows selected
SQL> select * from USER_TRIGGERS where table_name like '%table1%';
no rows selected -
Dbms_sql in a different schema from query table-error ** ORA-00942
Oracle Experts,
I think I am having problems with using DBMS_SQL in which the function was created in one schema and the query table was created in a different schema.
We have 2 schemas: S1, S2
We have 2 tables:
T1 in Schema S1
T2 in Schema S2
We have a function F1 created by DBA in schema S1 that uses the dbms_sql as:
CREATE OR REPLACE FUNCTION S1.F1(v1 in VARCHAR2) return NUMBER IS
cursor1 INTEGER;
BEGIN
cursor1 := dbms_sql.open_cursor;
dbms_sql.parse(cursor1, v1, dbms_sql.NATIVE);
dbms_sql.close_cursor(cursor1);
return (0);
EXCEPTION
when others then
dbms_sql.close_cursor(cursor1);
return (1) ;
END;
I am using jdeveloper 11G. We have an Oracle DB 11g.
We have a java program which uses jdbc to talk to our Oracle DB.
Basically, in my java program, I call function F1 to check if the query is valid.
If it is, it returns 0. Otherwise, returns 1:
oracle.jdbc.OracleCallableStatement cstmt = (oracle.jdbc.OracleCallableStatement) connection.prepareCall ("begin ? := S1.F1 (?); end;");
cstmt.registerOutParameter (1, java.sql.Types.INTEGER);
cstmt.setString(2, "Select * from S2.T2");
cstmt.execute ();
Since the table that I run the query is T2, created in different schema than F1 was created in, I have the error:
** ORA-00942: table or view does not exist
So my questions are these:
- I am using Oracle DB 11g, if I run the query on a table that created in a different schema from the one that the function (which uses dbms_sql) was created in, I would get the error ORA-00942?
- If I runs the query on table T1 in the same schema as the function F1, would I have the same problem(The reason I ask is I cannot create any table in schema S1 because the DBA has to do it; I am not a DBA)
- This is not a problem, but a security feature because of SQL injection?
- How to resolve this issue other than creating the table in the same schema as the function that utilizes DBMS_SQL?
Regards,
BinhDefiner rights (default) stored objects run under owner's security domain and ignore role based privileges. So regardless what user you are logged in as, function S1.F1 always executes as user S1 and ignores user S1 roles. Therefore exeuting statement within S1.F1:
Select * from S2.T2requires user S1 to have SELECT privilege on S2.T2 granted to S1 directly, not via role.
SY. -
Cannot Drop Table that Shows in dba_tables
In my IDE I see two tables that I no longer need. I created them as a test to see the difference between LOGGING vs NOLOGGING. Now I want to drop the tables.
I issue the command drop table customers_no_logging.
The system responds with ORA-00942: table or view does not exist.
However, select table_name from dba_tables returns the table names in question.
Even in sqlplus I get the same result:
SQL> select table_name from dba_tables where owner = 'RUB';
TABLE_NAME
CUSTOMERS
INV_ITEM_MASTER
INV_SITE
CUSTOMERS_w_log
CUSTOMERS_no_log
5 rows selected.
SQL> drop table CUSTOMERS_no_log;
drop table CUSTOMERS_no_log
ERROR at line 1:
ORA-00942: table or view does not exist
How can I drop these tables?
Thanks,
GregoryI was connected as RUB in my IDE and SYS in SQLPlus.
I have connected as RUB in SQLPlus and tried
SQL> drop table "RUB.CUSTOMERS_no_log";
drop table "RUB.CUSTOMERS_no_log"
ERROR at line 1:
ORA-00942: table or view does not exist
Maybe I need to stop and restart the DB?
Gregory -
Cannot Drop table with lower case name
Hi,
One of my developer created a table through application in oracle 10g R2,
when I list tables
select * from tab;
the table name is shown in lower case or Initcap.
I cannot drop or manipulate that table.
How can I drop that table(s)?
Thanks & Regards,
Fahimuse the same case what your table has used and put double quotes on both sides for example if your table is lower case use like:
DROP TABLE "your_table";HTH
Ghulam Mustafa Butt -
Error in drop user Error:ORA-00942
While I want to drop some Oracle users, the following error exists:
SQL> drop user simon cascade;
drop user simon cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
However, I can select data from dba_users and not problem on create user or alter user password, etc.
Which views / synonyms I need to re-create? Where is the file location?Hi,
I droped all object from scheme but one package I can't drop.
Now when I try drop this package or user,
I get ORA-00600: internal error code, arguments: [psdtyfnd_with_suffix], [], [], [], [], [], [], []
follow the link ..
http://www.dba-oracle.com/oracle_tips_ora_600.htm
u may not be able to re-create the package as u have already dropped some of the dependent packages which it calles internally..I cannot guess anything else...
Hope the link helps..
Regards
Bharath -
Cant Drop User (Error Ora-24005)
Hello,
I am using Oracle 10g Express Edition.
I have a problem in my Schema. Can any one help me out, i need to drop schema. But when i use drop user tt cascade; i get the Error saying Ora-24005 Must use DBMS_AQADM.DROP_QUEUE_TABLE.
I tried to execute the package, but i get an error saying....
Ora-24012 Queue_Table
Ora-06512 at SYS.DBMS_AQADM, line 4084
Ora-06512 at SYS.DBMS_AQADM, line 197
Can any one let me know how should i drop my schema.
MehulMehul Mehta wrote:
Hello,
I am using Oracle 10g Express Edition.
I have a problem in my Schema. Can any one help me out, i need to drop schema. But when i use drop user tt cascade; i get the Error saying Ora-24005 Must use DBMS_AQADM.DROP_QUEUE_TABLE.
I tried to execute the package, but i get an error saying....
Ora-24012 Queue_Table
Ora-06512 at SYS.DBMS_AQADM, line 4084
Ora-06512 at SYS.DBMS_AQADM, line 197
Can any one let me know how should i drop my schema.
MehulFirst identify queue table as select queue_table from dba_queue_tables where owner = 'TT'
then connect sqlplus tt/ttpass and
exec dbms_aqadm.drop_queue_table(queue_table=>'identifiedfromabove',force =>true)
finally drop user tt cascade -
Flash back table: error - ORA-08189
Hi friends,
I have a problem while doing flashback table.
SQL> flashback table emp to scn 688268;
flashback table emp to scn 688268
ERROR at line 1:
ORA-08189: cannot flashback the table because row movement is not enabled.
what should i do...?First check whether the table is in system tablespace or not.. if it is enabling row movement would not help...
then if it is not then go for
alter table emp enable row movement
flashback table emp to scn 688268; -
Insert into table error - ora-01722 invalid number
Need some assistance with inserting data into a table. The date column keeps on failing to insert.
here is my insert statement
insert into tab_mod_history (TABLE_OWNER, TABLE_NAME, PARTITION_NAME, SUBPARTITION_NAME, INSERTS, UPDATES, DELETES, TIMESTAMP, TRUNCATED)
values ('$i_owner','$i_table','$i_part_name','$i_subpart_name','$i_ins','$i_upd','$i_del','$time','$trunc');Script loads data for partition tables, but not normal tables with the timestamp column
I select the data using this select statement:
select table_owner, table_name, partition_name, subpartition_name, inserts, updates, deletes, timestamp, truncated
from dba_tab_modifications
where table_owner in ('scott','MAC')
order by table_name;ok here are the errors:
values ('MAC','WC_MST','11','1','1','12/04/2011','NO','','')
ERROR at line 2:
ORA-01722: invalid number
Session altered.
values ('MAC','WF_05A','208','128','208','18/02/2011','NO','','')
ERROR at line 2:
ORA-01722: invalid numberHere is the table structure
SQL> desc tab_mod_history
Name Null? Type
TABLE_OWNER VARCHAR2(30)
TABLE_NAME VARCHAR2(30)
PARTITION_NAME VARCHAR2(30)
SUBPARTITION_NAME VARCHAR2(30)
INSERTS NUMBER
UPDATES NUMBER
DELETES NUMBER
TIMESTAMP DATE
TRUNCATED VARCHAR2(3)
DROP_SEGMENTS NUMBERI used the column names to create the variables..that is why $time was used.
How else could I have done it????
thought this was easy..but to my dismay... -
Dropping Table: ORA-00054
When going to drop a table in a particular schema, I receive the following error:
ORA-00054: resource busy and acquire with NOWAIT specified.
My command:
drop table schema1.table1;
I've tried the above drop command several times. No matter what, I keep on getting the same error. How can I successfully drop this table? I also tried logging out & back into my toad session.Looks like you were having quite some trouble with your toad connections. This one and the other insert problem.
Try Oracle SQL Developer and/or SQLPLUS
Not only there are native Oracle products, but also they are free to use with your database.
http://www.oracle.com/technology/products/database/sql_developer/index.html
Maybe you are looking for
-
Changing of production order quantity not allowed
Dear Gurus My client is converting production order from planned order .These planned orders have been generated from sales orders during mrp run. What my; client wants is that the production order quantity generated from the planned orders nobody c
-
The model experienced a minor water spill via the rear vents (from left to right). After "drying" the model, the system turned on with the display, everything worked great for over 6 hours. After adjusting the display brightness up via the F2 key, th
-
Enabling Windows Server 2008 R2 Built-In Administrator Account
The properties box for my Windows Server 2008 R2 built-in administrator program says the account is disabled. Even the primary user account has virtually no priveliges. How can I, with a mere primary user account available at logon, enable the buil
-
Coherence 3.5 - slow start for a single node
EDIT - wrong forum Edited by: user10613309 on 30-Jul-2009 02:42
-
Inter portlet communication in SP4
Can any one tell me in step by step process with sample code to do inter portlet communication in SP4 Here i have 2 portlets Portlet A and portlet B Portlet A has 2 hyperlinks link1 and link2 When i click link1 or link2 in portlet A, i am passing a p