Sunday, January 6, 2013

Check Default Tablespace For User and Change it

Check the Below Demo how you can check tablespace for specific User and how can  you change it

Create New User Without Determine which Tablespace:

SQL > Create User test Identified by test ;

Check TableSpace for Test User:


 SQL> select default_tablespace from dba_users where username='TEST';

DEFAULT_TABLESPACE
------------------------------
USERS

Change TableSpace For Test User :

Solution One : Change Default TableSpace For Database By :

 SQL> alter database default tablespace ;

Solution two : define Tablespace When Creating User

 SQL > create user Test identified by Test default tablespace USER


Thank you
Osama Mustafa

No comments:

Post a Comment