ORA-14450: attempt to access a transactional temp table already in use

create global temporary table tt
(id number,
cc varchar2(8)
)

on commit delete rows;

//进行commit时删除表中的数据;



create global temporary table tt2
(id number,
cc varchar2(8)
)

on commit preserve rows;

//进行会话退出或中断时删除数据;

未将里面数据清空时将报以上错误:ORA-14450;

-------------------------


解决办法:

ORA-14450: attempt to access a transactional temp table already in use


第一:

select * from v$lock where id1=(

select object_id from dba_objects where owner='AIKI' and object_name='AIKI_TEMP')

第二:

根据得出的结果SID

直接kill 会话;

再次执行alter 成功!





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值