EliseFreedman
Programmer
Im using the following code to create a default tablespace for a user and also a temporary tablespace and then set the users default tablespace to user_data and the temporary tablespace to temporary_data.
<code>
CREATE TABLESPACE user_data
DATAFILE 'C:\orac\userdata1.ORA'
SIZE 1 M
DEFAULT STORAGE (INITIAL 5K NEXT 10K
MINEXTENTS 1 MAXEXTENTS 999
PCTINCREASE 10) ONLINE;
CREATE TABLESPACE temporary_data
DATAFILE 'C:\orac\tempdata1.ORA'
SIZE 1 M
DEFAULT STORAGE (INITIAL 5K NEXT 10K
MINEXTENTS 1 MAXEXTENTS 999
PCTINCREASE 10) ONLINE;
CREATE USER srsowner IDENTIFIED BY private
DEFAULT TABLESPACE user_data
TEMPORARY TABLESPACE temporary_data
QUOTA unlimited on user_data
QUOTA 10m ON temporary_data;
</data>
However, i get the following error
ORA-12911: permanent tablespace cannot be temporary tablespace
I tried changing the 2nd paragraph to
CREATE TABLESPACE temporary_data
DATAFILE 'C:\orac\tempdata1.ORA'
SIZE 1 M
DEFAULT STORAGE (INITIAL 5K NEXT 10K
MINEXTENTS 1 MAXEXTENTS 999
PCTINCREASE 10) ONLINE TEMPORARY;
but it didnt make any difference. What am I doing wrong??
<code>
CREATE TABLESPACE user_data
DATAFILE 'C:\orac\userdata1.ORA'
SIZE 1 M
DEFAULT STORAGE (INITIAL 5K NEXT 10K
MINEXTENTS 1 MAXEXTENTS 999
PCTINCREASE 10) ONLINE;
CREATE TABLESPACE temporary_data
DATAFILE 'C:\orac\tempdata1.ORA'
SIZE 1 M
DEFAULT STORAGE (INITIAL 5K NEXT 10K
MINEXTENTS 1 MAXEXTENTS 999
PCTINCREASE 10) ONLINE;
CREATE USER srsowner IDENTIFIED BY private
DEFAULT TABLESPACE user_data
TEMPORARY TABLESPACE temporary_data
QUOTA unlimited on user_data
QUOTA 10m ON temporary_data;
</data>
However, i get the following error
ORA-12911: permanent tablespace cannot be temporary tablespace
I tried changing the 2nd paragraph to
CREATE TABLESPACE temporary_data
DATAFILE 'C:\orac\tempdata1.ORA'
SIZE 1 M
DEFAULT STORAGE (INITIAL 5K NEXT 10K
MINEXTENTS 1 MAXEXTENTS 999
PCTINCREASE 10) ONLINE TEMPORARY;
but it didnt make any difference. What am I doing wrong??