oracle 数据库括表空间

ora0163: 表 esps_2010.tbpaymentlimit 无法通过 210 (在表空间esps_2008)扩展。接下来,程式就出现了蛮多莫名的问题。很多流程都无法继续。借助的工具是P/L SQL 即便在这裏面用SQL迳行作业。

看来仅需扩充表空间的即可解决。

第一步:查看表空间的名字和档案位置。在SQL栏输入或贴上下列内容。(不要做任何的修改)

select tablespace_name, file_id, file_name,
     round(bytes/(1024*1024),0) total_space
     from dba_data_files
     order by tablespace_name;

 

第二步:增大所需表空间的尺寸

alter database datafile '表空间储存位置'resize 新的尺寸,例如:

alter database datafile 'e:\oracle\oradata\esps_2008.dba'resize 4000m

 BTW:

对於ORACLE数据库的表空间。除了手动增大所需表空见的尺寸的方法外:您也可使用其他方式来扩展表空见的尺寸。

第一种:增加数据档案。让表空间名对应更多的数据档案

alter tablespace 表空间名称
     add datafile '新数据档案的储存位置' size 新数据档案的尺寸
,例如:

alter tablespace ESPS_2008
     add datafile 'e:\oracle\oradata\esps_2010.dba' size 1000m

第二种:设定数据档案自动扩展,以杜绝表空间不足的问题

alter database datafile '数据档案的储存位置'
     autoextend on next 下一次扩展数据档案的尺寸 maxsize 最大可接受的扩展尺寸的极限
,例如:

alter database datafile 'e:\oracle\oradata\esps_2008.dba'
     autoextend on next 100m maxsize 10000m

第三步:查阅设定后的表空间资讯。在SQL栏输入或贴上下列内容。(不要做任何的修改)

select a.tablespace_name,a.bytes total,b.bytes used, c.bytes free,
     (b.bytes*100)/a.bytes "% used",(c.bytes*100)/a.bytes "% free"
     from sys.sm$ts_avail a,sys.sm$ts_used b,sys.sm$ts_free c
     where a.tablespace_name=b.tablespace_name and a.tablespace_name=c.tablespace_name


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值