ORA-14452: trying to create, change or delete is being used in the temporary table index

Recently, we have a demand dynamically create, delete temporary table, running under oracle, the frequently encountered "ORA-14452".

// *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. 
Ex post facto analysis, in fact, we do not want to create a temporary table, so after adjustment for non-temporary table to resolve. If a temporary table, the solution is simple, instead of using truncate drop.

Guess you like

Origin www.cnblogs.com/zhjh256/p/12146484.html