ORA-30036 的错误解决

本文介绍了当尝试删除Oracle数据库中某条记录时遇到ORA-30036错误的情况及解决方案。该错误通常是因为撤销表空间无法扩展导致。文中通过检查数据文件大小及其自动扩展属性来诊断问题,并演示了如何通过调整数据文件大小来解决这一问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

There is not enough space left either due to the datafiles being full, autoextend which is not set at datafile level or due to a disk which's full.

You'll have to check the size of the datafiles attached to the undo tablespace and check whether they can autoextend or not..
SQL> delete from data where sid=41;
delete from data where sid=41
*
ERROR at line 1:
ORA-30036: unable to extend segment by 128 in undo tablespace 'UNDOTBS1'
SQL> select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='UNDOTBS1';

FILE_NAME
--------------------------------------------------------------------------------
BYTES AUTOEX MAXBYTES
---------- ------ ----------
/home/oracle/oradata/depsight/undotbs1.dbf
SQL> alter database datafile '/home/oracle/oradata/depsight/undotbs1.dbf' resize 50m;

Database altered.

SQL> select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='UNDOTBS1';

FILE_NAME
--------------------------------------------------------------------------------
BYTES AUTOEX MAXBYTES
---------- ------ ----------
/home/oracle/oradata/depsight/undotbs1.dbf
52428800 NO 0


SQL> delete from data where sid=41;
delete from data where sid=41
 
 
导入的时候请 用commit=y
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值