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

Kevin picture Kevin · Jun 28, 2014 · Viewed 35.2k times · Source

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

how can i correct this error? schema that i'm trying to import has tables defined for tables space MYTBS.

Answer

Ajax Zhang picture Ajax Zhang · Dec 18, 2014

The error should

ora-01658 unable to create initial extent for segment in tablespace ????

to solve the problem:

You will need an account with DBA privileges to do one of two things , and link

  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

And if your datafile has been reached 32GB , please refer to this answer.