Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tablespace Query

Prateek Agarwal-OracleNov 28 2013 — edited Nov 28 2013

I recently created a DB with ABC_TBS with 2GB of SIZE and import data into few table that consumed 10MB of storage in other tablespace USER

Now I was trying to migrate the data to a new table X (ABC_TBS tablespace) with OLD table A (ABC_TBS tablespace) + B (USER tablespace) with outer join. The create statement went fine.

On INSERT the Tablespace was used completely like 2GB, and gave a error saying

Error report:

SQL Error: ORA-01658: unable to create INITIAL extent for segment in tablespace CTB_TBS

01658. 00000 -  "unable to create INITIAL extent for segment in tablespace %s"

*Cause:    Failed to find sufficient contiguous space to allocate INITIAL

           extent for segment being created.

*Action:   Use ALTER TABLESPACE ADD DATAFILE to add additional space to the

           tablespace or retry with a smaller value for INITIAL

Rollback

When I check the tablespace size it says, almost used, but before migrating it had like 2000 MB free

TablespaceUSED (MB)FREE (MB)TOTAL(MB)Pct.Free
ABC_TBS2044420480

Now when I see the USAGE of INDEX and TABLE in ABC_TBS its hardly 7 MB

OWNERTABLE_NAMEUSED(MB)TABLESPACE
ABCTABLE12ABC_TBS
ABCTABLE1_N1_IND2ABC_TBS
ABCTABLE1_N2_IND2ABC_TBS
ABCTABLE2_U1_IND1ABC_TBS
ABCTABLE20ABC_TBS
ABCTABLE1_U1_IND0ABC_TBS
ABCTABLE1_N3_IND0ABC_TBS
ABCTABLE30ABC_TBS

Now my doubt is, if the data never got inserted to NEW table, how did 2000 MB of space get consumed ? How can I reclaim it ? I have no problem adding new DATAFILE, but my mystery is where did the 2GB go ???

This post has been answered by Prateek Agarwal-Oracle on Nov 28 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2013
Added on Nov 28 2013
3 comments
343 views