ORA-14452:试图创建,更改或删除正在使用的临时表中的索引
最近我们有个需求需要动态创建、删除临时表,在oracle下运行时,频发遇到“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.
经事后分析,其实我们并不是要创建临时表,故调整为非临时表后即解决。如果临时表,解决方法也简单,使用truncate代替drop。
浙公网安备 33010602011771号