ORA-08103: object no longer exists


今天工具箱报错:

 ORA-08103: object no longer exists 

查了原因,是有session在操作表,比如插入,更新等。而工具箱这个操作刚好在select表,所以报错。




-------下文是英文解释-----

ORA-08103: object no longer exists错误,
后描述是其中一进程顺序执行truncate,insert动作,而同时有另一进程对
同一表做select动作,造成ora-8103
metalink资料:
fact: Oracle Server - Enterprise Edition 8
symptom: Error performing a SELECT statement
symptom: ORA-08103: object no longer exists
symptom: Table is being truncated by other session
symptom: Analyze table validate structure cascade returns no errors
cause: This ORA-08103 occurs on the next block read after the truncate 
command.
The LOCK TABLE IN EXCLUSIVE MODE does not prevent the table from being
SELECTED from. Thus, when the query has started and while this query runs
and the truncate occurs, this ORA-08103 may surface on the next block read.
This is considered intended behavior.
When a TRUNCATE occurs the DATAOBJ# in OBJ$ gets increased by one and thus
may lead to this ORA-08103 'object no longer exists'

 

fix:

Possible solutions are:
- Use DELETE instead of TRUNCATE
- Use SELECT FOR UPDATE as this will try to lock the table

 

 

另ora-08103还有其他解释:

Solution: 'ORA-8103: Object no longer exists' When Insert Into External Table after Truncate With Storage Performed

 

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.3
This problem can occur on any platform.

Symptoms

The following error can occur on an insert with SQL Loader into an external organized table after a truncate with storage option has been performed

ORA-08103: object no longer exists

SQL> insert 
/*+ PARALLEL(a, 8)*/ 
into iad_o_ast_new a 
select /*+ full(b) parallel(b,8)*/ 
* from iad_o_ast_ext b 
where rownum<10000 ; 
into iad_o_ast_new a 

ERROR at line 3: 
ORA-08103: object no longer exists

.

Changes

The table was truncated with storage option before the insert .

Cause

The bitmap information is not correct after truncating with the storage option.  The solutions update the bitmap information in the tablespace. 

Solution

There are two known solutions at this time.

1.  Add another datafile to increase the size of the tablespace for the insert.  You will need to still use the correct truncate option next time you truncate the table.

2.  Drop the table and recreate it.  You will need to still use the correct truncate option next time you truncate the table. 

Do not truncate the table with the storage option.

Do not truncate the base table using: 
truncate ; 
truncate drop storage; 


Use the following instead: 
truncate reuse storage; 




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

松门一枝花

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值