Syntax to Find / Check / Change / Set Default Permanent Tablespace for Oracle 10g, 11g Database


The Eucharistic Miracles of the World
Default Permanent tablespace Syntax
SQL> create tablespace default_tbs datafile '/u01/app/oracle/oradata/dbrepoinf/default_tbs.dbf' size 100m;

Tablespace created.

SQL> alter database default tablespace default_tbs;

Database altered.

SQL> select * from database_properties where property_name like 'DEFAULT_PERMANENT_TABLESPACE';
Name of default permanent tablespace

You cannot drop the default permanent tablespace you will get following error.
SQL> drop tablespace DEFAULT_TBS;
drop tablespace DEFAULT_TBS
ERROR at line 1:
ORA-12919: Can not drop the default permanent tablespace


Website Stats


Post a Comment


Oracle (580) General (60) Unix (47) Script (41) Blog (23) OCI (3) SQL* Loader (3) Datapump (2) Software (1)
DBA Tips Copyright 2011-21 All Rights Reserved | Site Map | Contact | Disclaimer