Tablespace problem [message #133549] |
Fri, 19 August 2005 10:33 |
orcl_dba
Messages: 84 Registered: March 2005
|
Member |
|
|
Tablespace is not being acceseed.
when i give the querry
select * from dba_tablespaces;
the name of the tbalespace is there , but i cant make it default tablespace for any user ..
cant drop tablespace and cant add datafile even to that tablespae
it gives error like ..
ora 02166 or 2140 etc.. invalid tablespace name ..
give name of tablespace.... etc..
BR
|
|
|
|
|
Re: Tablespace problem [message #133767 is a reply to message #133556] |
Mon, 22 August 2005 03:09 |
JSI2001
Messages: 1016 Registered: March 2005 Location: Scotland
|
Senior Member |
|
|
Hi
Just a stab in the dark, but did you name it with quotes around the name?
Try enclosing the name of the tbs in quotes when you drop it.:
system@DBA.WORLD> create tablespace "John" datafile '\Oraclass\Oradata\johnts.dbf' size 5m reuse;
Tablespace created.
system@DBA.WORLD> drop tablespace john;
drop tablespace john
*
ERROR at line 1:
ORA-00959: tablespace 'JOHN' does not exist
system@DBA.WORLD> select tablespace_name from user_tablespaces;
TABLESPACE_NAME
------------------------------
SYSTEM
UNDOTBS
TEMP
USERS
INDX
SAMPLE
QUERY_DATA
STOCKS
John
9 rows selected.
system@DBA.WORLD> drop tablespace "John";
Tablespace dropped.
Jim
|
|
|