ORA-14452: attempt to create, alter or drop an index on temporary table already in use

发生重演:

EODA@PROD1> drop table temp purge;
drop table temp purge
           *
ERROR at line 1:
ORA-14452: attempt to create, alter or drop an index on temporary table already in use

EODA@PROD1> select object_id from user_objects where object_name='TEMP';

 OBJECT_ID
----------
     85773

Elapsed: 00:00:00.02
EODA@PROD1> select * from v$lock where id1=85773;

ADDR	 KADDR		 SID TY        ID1	  ID2	   LMODE    REQUEST	 CTIME	    BLOCK
-------- -------- ---------- -- ---------- ---------- ---------- ---------- ---------- ----------
4AEF2538 4AEF2564	   1 TO      85773	    1	       3	  0	   952		0

Elapsed: 00:00:00.02
EODA@PROD1> select sid, serial# from v$session where sid=1;

       SID    SERIAL#
---------- ----------
	 1	   11

Elapsed: 00:00:00.01
EODA@PROD1> alter system kill session '1,11';
alter system kill session '1,11'
*
ERROR at line 1:
ORA-00027: cannot kill current session

发现是当前session。。于是退出当前会话重进。。

EODA@PROD1> exit  
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@ocm1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Sat Oct 22 15:53:44 2016

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SYS@PROD1> conn eoda/foo
Connected.
EODA@PROD1> drop table temp purge;

Table dropped.


解决~
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值