ORA-01658:无法为表空间TS_DATA中的段创建INITIAL范围 [英] ORA-01658: unable to create INITIAL extent for segment in tablespace TS_DATA
问题描述
当我尝试在User_DB模式中创建表时,出现错误ORA-01658: unable to create INITIAL extent for segment in tablespace TS_DATA
.我运行以下查询以获取所有TABLESPACE_NAME
:
When i tried to create a table in my User_DB schema i am getting an error as ORA-01658: unable to create INITIAL extent for segment in tablespace TS_DATA
. I run the following query to get all the TABLESPACE_NAME
:
SELECT * FROM DBA_DATA_FILES;
但是我真的不知道我正在使用哪个表空间以及如何扩展表空间来解决此问题.
But i really dont know which tablespace i am using and how to extend the tablespace to solve this issue.
推荐答案
如错误消息所示,您正在使用TS_DATA
表空间.您可以通过扩大现有数据文件之一来扩展它:
As the error message indicates, you're using the TS_DATA
tablespace. You can extend it by either enlarging one of the existing data files:
ALTER DATABASE
DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\TS_DATA.DBF'
RESIZE 3000M;
或通过向表空间添加第二个数据文件:
Or by adding a second datafile to the tablespace:
ALTER TABLESPACE ts_data
ADD DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\TS_DATA2.DBF'
SIZE 1000M;
或者只允许数据文件自动扩展:
Or just allow the datafile to auto extend:
ALTER DATABASE
DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\TS_DATA2.DBF'
AUTOEXTEND ON
MAXSIZE UNLIMITED; -- Or some reasonable cap
这篇关于ORA-01658:无法为表空间TS_DATA中的段创建INITIAL范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!