oracle错误汇总

1,ORA-14452 试图创建,更改或删除正在使用的临时表中的索引
Step 1、先从DBA_OBJECTS/ALL_OBJECTS /USER_OBJECTS中查询到该表的OBJECT_ID:

SELECT OBJECT_ID FROM USER_OBJECTS WHERE OBJECT_NAME='TMP_TEST'

Step 2、根据查到的OBJECT_ID知道使用该表的SESSION:
SELECT * FROM V$LOCK WHERE ID1=&OBJECT_ID;

Step 3、在从v$session视图中查到该session的SID和SERIAL#:

SELECT * FROM V$SESSION WHERE SID=&SID;

Step 4、杀掉这些进程:

ALTER SYSTEM KILL SESSION 'SID, SERIAL#';

最后可以 truncate table TMP_TEST;
然后 drop table TMP_TEST;

你可能感兴趣的:(oracle错误汇总)