当一个数据库的数据文件达到表空间的最大值时,报ora-1653:的错误。如下:ora-1653: unable to extend table test.comm_dttr_svr
当一个数据库的数据文件达到表空间的最大值时,报ora-1653:的错误。如下:
ora-1653: unable to extend table test.comm_dttr_svr_log by64 in tablespace test_space
解决:
可以在该表空间中增加一个数据文件,增加的数据文件为自动扩展,无限扩大。
查看数据文件的大小和最大的值,,可以查询dba_data_files;
sql>
alter tablespace test_space
adddatafile'/oracle/oms/oradata/pub/norm_data001.dbf'
size 10m autoextend on maxsize unlimited;
或者把该表空间所在的数据文件设置成自动扩张,设置该maxsize更大,unlimited表示没有限制。
sql>
alter database
datafile '/oracle/oms/oradata/pub/pub_norm_data001.dbf'
autoextend on maxsize unlimited;