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

advertisements

_____________________________________________________________________________________________________________________

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';
DEFAULT_PERMANENT_TABLESPACE
DEFAULT_TBS
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

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer