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。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM