Home » RDBMS Server » Server Administration » Tablespace creation error
Tablespace creation error [message #161952] Wed, 08 March 2006 00:35 Go to next message
gajini
Messages: 262
Registered: January 2006
Senior Member
I got the following error when i tried to create a tablespace as follows,

SQL> create tablespace temp1
2 datafile 'c:\oracle\oradata\newdb\new.dbf' size 250k temporary;
create tablespace temp1
*
ERROR at line 1:
ORA-12913: Cannot create dictionary managed tablespace


Can anyone explain me,

1) What is the reason for this error?
2) What i've to do to avoid this error?


Thanks,
Malru
Re: Tablespace creation error [message #161964 is a reply to message #161952] Wed, 08 March 2006 01:02 Go to previous messageGo to next message
girish.rohini
Messages: 744
Registered: April 2005
Location: Delhi (India)
Senior Member
Check if your system tablespace is locally managed or dictionary managed.

You can't have a dictionary managed tablespace in case the system tablespace is locally managed.

--Girish
Re: Tablespace creation error [message #161967 is a reply to message #161952] Wed, 08 March 2006 01:11 Go to previous messageGo to next message
gajini
Messages: 262
Registered: January 2006
Senior Member
Hi Girish,

My SYSTEM tablespace is locally managed

I issued the following command to convert SYSTEM tablespace from locally managed to Dictionary managed,

SQL> execute DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL('SYSTEM');
BEGIN DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL('SYSTEM'); END;

*
ERROR at line 1:
ORA-03251: Cannot issue this command on SYSTEM tablespace
ORA-06512: at "SYS.DBMS_SPACE_ADMIN", line 0
ORA-06512: at line 1


But i got this error,

What i've to do to convert SYSTEM tablespace from locally managed to Dictionary managed?

Re: Tablespace creation error [message #161983 is a reply to message #161967] Wed, 08 March 2006 01:40 Go to previous messageGo to next message
girish.rohini
Messages: 744
Registered: April 2005
Location: Delhi (India)
Senior Member
I dont think this conversion is possible.

BY the way did you tried going through the documentation.
Re: Tablespace creation error [message #162085 is a reply to message #161952] Wed, 08 March 2006 11:15 Go to previous messageGo to next message
vijaychauhan
Messages: 106
Registered: December 2005
Senior Member
first take other tablespaces read only and then try to execute the procedure to convert system to dictionary.
I think this should work.
Re: Tablespace creation error [message #162138 is a reply to message #161952] Wed, 08 March 2006 23:18 Go to previous messageGo to next message
gajini
Messages: 262
Registered: January 2006
Senior Member
Hi vijaychauhan,

I made all other tablespaces READONLY.

SQL> select tablespace_name,status from dba_tablespaces;

TABLESPACE_NAME STATUS
------------------------------ ---------
SYSTEM ONLINE
UNDOTBS1 ONLINE
TEMP ONLINE
DRSYS READ ONLY
INDX READ ONLY
TOOLS READ ONLY
USERS READ ONLY
XDB READ ONLY

8 rows selected.

SQL> execute DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL('SYSTEM');
BEGIN DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL('SYSTEM'); END;

*
ERROR at line 1:
ORA-03251: Cannot issue this command on SYSTEM tablespace
ORA-06512: at "SYS.DBMS_SPACE_ADMIN", line 0
ORA-06512: at line 1


Still it's giving the same error.What i've to do now?
Re: Tablespace creation error [message #162158 is a reply to message #162138] Thu, 09 March 2006 00:42 Go to previous message
tarundua
Messages: 1080
Registered: June 2005
Location: India
Senior Member
gajini wrote on Thu, 09 March 2006 10:48

.

SQL> execute DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL('SYSTEM');
BEGIN DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL('SYSTEM'); END;

*
ERROR at line 1:
ORA-03251: Cannot issue this command on SYSTEM tablespace
ORA-06512: at "SYS.DBMS_SPACE_ADMIN", line 0
ORA-06512: at line 1[/b]



Why do you want to do it when Oracle doesn't allows it.

Long story short--- You can not do it.
Previous Topic: Port 7777 How do I get rid of it?
Next Topic: ROLLBACK SEGS
Goto Forum:
  


Current Time: Fri Jan 10 17:15:39 CST 2025