SQL ora-1658: 无法为表空间中的段创建初始范围
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24467854/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ora-1658: unable to creat initial extent for segment in tablespace
提问by Kevin
i'm getting the error "ora-1658: unable to create initial extent for segment in tablespace MYTBS" when trying to import a dump using imp command.i'm using oracle XE 11.2 in a standalone windows machine. database backup is around 200MB. following is my table space setup.
我在尝试使用 imp 命令导入转储时收到错误“ora-1658:无法为表空间 MYTBS 中的段创建初始范围”。我在独立 Windows 机器中使用 oracle XE 11.2。数据库备份大约为 200MB。以下是我的表空间设置。
how can i correct this error? schema that i'm trying to import has tables defined for tables space MYTBS.
我该如何纠正这个错误?我尝试导入的架构具有为表空间 MYTBS 定义的表。
回答by Ajax Zhang
The error should
错误应该
ora-01658 unable to create initial extent for segment in tablespace ????
ora-01658 无法为表空间中的段创建初始范围????
to solve the problem:
解决问题:
You will need an account with DBA privileges to do one of two things , and link
您将需要一个具有 DBA 权限的帐户来执行以下两项操作之一,并链接
extend the datafile to add space (ALTER DATABASE DATAFILE RESIZE ) , or autoextend (ALTER DATABASE DATAFILE autoextend on) Changing Datafile Size
add a new datafile to the tablespace (ALTER TABLESPACE ADD DATAFILE ALTER TABLESPACE
扩展数据文件以添加空间 (ALTER DATABASE DATAFILE RESIZE ) 或自动扩展 (ALTER DATABASE DATAFILE autoextend on) 更改数据文件大小
向表空间添加一个新的数据文件(ALTER TABLESPACE ADD DATAFILE ALTER TABLESPACE
And if your datafile has been reached 32GB
, please refer to this answer.
如果已访问您的数据文件32GB
,请参阅此答案。
回答by Chetan Mali
Try with the following command
尝试使用以下命令
alter database datafile '/somepath/somename.dbf' autoextend on maxsize unlimited;