Skip to Main Content

SQL & PL/SQL

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!

Create table on offline tablespace

Nuno RanitoNov 28 2017 — edited Nov 29 2017

Hello

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

I have the following commands

alter tablespace users offline ;

CREATE TABLE  dummy_t

(

  ID NUMBER NOT NULL

);

Table DUMMY_T created.

CREATE TABLE  dummy_t_xml

(

  ID NUMBER NOT NULL

, XML_VALUE SYS.XMLTYPE

XMLTYPE XML_VALUE STORE AS BINARY XML;

SQL Error: ORA-01542: tablespace 'USERS' is offline, cannot allocate space in it

01542. 00000 -  "tablespace '%s' is offline, cannot allocate space in it"

*Cause:    Tried to allocate space in an offline tablespace

*Action:   Bring the tablespace online or create the object in other

           tablespace

Is there some way to create this table without the XMLTYPE allocating storage on creation (which I assume is the cause for error)?

Thanks for any help

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2017
Added on Nov 28 2017
9 comments
624 views