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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 02:08:35  来源:igfitidea点击:

ora-1658: unable to creat initial extent for segment in tablespace

sqldatabaseoracleoracle11goracle-xe

提问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.enter image description here

我在尝试使用 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 权限的帐户来执行以下两项操作之一,并链接

  1. extend the datafile to add space (ALTER DATABASE DATAFILE RESIZE ) , or autoextend (ALTER DATABASE DATAFILE autoextend on) Changing Datafile Size

  2. add a new datafile to the tablespace (ALTER TABLESPACE ADD DATAFILE ALTER TABLESPACE

  1. 扩展数据文件以添加空间 (ALTER DATABASE DATAFILE RESIZE ) 或自动扩展 (ALTER DATABASE DATAFILE autoextend on) 更改数据文件大小

  2. 向表空间添加一个新的数据文件(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;