最近我們有個需求需要動態創建、刪除臨時表,在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。