oracle ORA-14452错误处理
2011-12-28 15:12
197 查看
create global temporary table on commit preserve rows 用于会话相关,也就在事务结束后truncate data in the temporary table,但如果在会话未结束时要修改temporary table就会出现错误:
ORA-14452: 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.
处理步骤:
1、先从user_objects中查询到该表的object_id:
select object_id from user_objects where object_name=upper('TMP_365100930');
2、根据查到的object_id知道使用该表的session:
select * from v$lock where id1=&object_id;
3、在从v$session视图中查到该session的SID和SERIAL#:
select * from v$session where sid=181;
4、杀掉这些进程:
alter system kill session SID,SERIAL#;
ORA-14452: 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.
处理步骤:
1、先从user_objects中查询到该表的object_id:
select object_id from user_objects where object_name=upper('TMP_365100930');
2、根据查到的object_id知道使用该表的session:
select * from v$lock where id1=&object_id;
3、在从v$session视图中查到该session的SID和SERIAL#:
select * from v$session where sid=181;
4、杀掉这些进程:
alter system kill session SID,SERIAL#;
相关文章推荐
- oracle ORA-14452错误处理例程
- oracle ora-01536错误处理方法
- SQL 遇到以零作除数错误的处理
- 链接错误处理
- php的错误处理
- 宽带连接错误的处理办法
- JSP错误页面的处理和exception对象
- javascript错误处理方式有哪些
- 网络错误的基本处理
- 9:Yii中的主题、日志、性能分析以及错误处理(Yii权威指南)
- PHP错误异常处理详解
- 【错误处理:】Collection <__NSArrayM: 0x12ec10e0> ...
- Eclipse导入Java项目时“No projects are found to import”错误的处理
- 关于ADO/VC error #3105 错误处理的一些建议
- Android 源码编译make的错误处理
- 处理Linux下subversion尝试连接自建的VisualSVN server报“Key usage violation in certificate has been detected”错误的问题
- 一个ArcGIS Javascript API的BUG和处理办法 - 调用两次Draw工具条deactivate方法导致的错误
- Eclipse导入Java项目时“No projects are found to import”错误的处理
- 安卓常见错误处理记录5:安卓系统编译报错 finished with non-zero exit value -1073741819
- 夺命雷公狗---PDO NO:4 的错误处理模式