Oracle Default Tablespace

To find the default permanent tablespace name for the database is
SELECT PROPERTY_VALUE FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME = ‘DEFAULT_PERMANENT_TABLESPACE’;

To find the default temporary tablespace name for the database is
SELECT PROPERTY_VALUE FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME = ‘DEFAULT_TEMP_TABLESPACE’;

To set default tablespace to be users
ALTER DATABASE DEFAULT TABLESPACE ts_user;

To set default tablespace to be users
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE tmp_group;

Advertisements