oracle ORA-14450: 尝试访问已在使用的事务临时表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10015747/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ORA-14450: attempt to access a transactional temp table already in use
提问by tpeng
I got this error in my java application log, it uses java db connection pool. Anyone experienced this before using oracle temporary table? and what's your solution? Any help is much appreciated.
我的 java 应用程序日志中出现此错误,它使用 java db 连接池。有人在使用 oracle 临时表之前遇到过这种情况吗?你的解决方案是什么?任何帮助深表感谢。
回答by SenthilPrabhu
Try to Terminate the connection and start back.
To find whether any process is running try to use the below code and find the running process.
Error Cause:An attempt was made to access a transactional temporary table that has been already populated by a concurrent transaction of the same session.
尝试终止连接并重新开始。要查找是否有任何进程正在运行,请尝试使用以下代码并找到正在运行的进程。
错误原因:试图访问已由同一会话的并发事务填充的事务临时表。
Action:do not attempt to access the temporary table until the concurrent transaction has committed or aborted.
行动:不要尝试访问临时表,直到并发事务已提交或中止。
SELECT
o.object_name
, s.sid, s.serial#
, s.username
, s.osuser, s.machine
, 'alter system kill session '''||to_char(s.sid)||','||to_char(s.serial#)||''';' ks
FROM
user_objects o
, v$lock a
, v$session s
WHERE
o.object_name = 'table_name_here'
AND a.id1 = o.object_id
AND a.type = 'TO'
AND a.sid = s.sid
;