转自:http://space.itpub.net/751371/viewspace-566584
$ oerr ORA 14452
14452, 00000, "attempt to create, alter or drop an index on temporary table already in use"
// *Cause: An attempt was made to create, alter or drop an index on temporary
// table which is already in use.
// *Action: All the sessions using the session-specific temporary table have
// to truncate table and all the transactions using transaction
// specific temporary table have to end their transactions.
临时表正在使用时,需要杀掉使用该临时表的session。
处理步骤:
1、先从user_objects中查询到该表的object_id:
select object_id from user_objects where object_name=upper('table_name');
2、根据查到的object_id知道使用该表的session:
select sid from v$lock where id1=&object_id;
3、在从v$session视图中查到该session的SID和SERIAL#:
select sid, serial# from v$session where sid=&sid;
4、杀掉这些进程:
alter system kill session '&SID,&SERIAL#';