3
Note:243246.1 10G : SYSAUX Tablespace Note:329984.1 Usage and Storage Management of SYSAUX tablespace occupants SM/AWR , SM/ADVISOR, SM/OPTSTAT and SM/OTHER Note:552880.1 General guidelines for SYSAUX space issues It exists to - Store all auxiliary database metadata related to Oracle options and features such as Option or Feature Schema Tablespace in 8, 8i or 9i  ---------------------- ------------- ----------------------------  OLAP CWMLITE CWMLITE Text CTXSYS DRSYS  Ultra Search WKSYS DRSYS Intermedia and Spatial ORDSYS SYSTEM Workspace Manager WMSYS Data Mining DMSYS ODM EM Repository SYSMAN OEM_REPOSITORY  Streams SYS (STREAM$_xxx) SYSTEM  LogMiner SYSTEM SYSTEM  Logical Standby SYSTEM SYSTEM  Statspack PERFSTAT User Specified  Job Scheduler SYS SYSTEM  - Reduce the number of tablespaces created for each of these when required  - Avoid SYSTEM tablespace fragmentation due to the possibility to install/  deinstall options  - Avoid the risk of corruptions and out-of-space situations of the SYSTEM tablespace  - Reduced maintenance for the DBA Characteristics --------------- 1. Not optional: it is mandatory in a 10g database and has the following mandato ry  attributes: PERMANENT, READ WRITE, EXTENT MANAGEMENT LOCAL and SEGMENT SPACE MANAGEMENT AUTO. 2. Requires the SYSDBA privilege to be created or maintained  3. Created automatically at  -> database creation :  -----------------  SQL> CREATE DATABASE DATAFILE 'system_datafiles_name' SIZE xxxM  SYSAUX DATAFILE 'sysaux_datafiles_name ' SIZE xxxM  DEFAULT TEMPORARY TABLESPACE ... TEMPFILE ...  UNDO TABLESPACE ... DATAFILE ...;  Default size for SYSAUX is 210Mb.  -> database migrate to 10g :  -----------------------

10G SYSAUX Tablespace

Embed Size (px)

Citation preview

Page 1: 10G  SYSAUX Tablespace

8/11/2019 10G SYSAUX Tablespace

http://slidepdf.com/reader/full/10g-sysaux-tablespace 1/3

Page 2: 10G  SYSAUX Tablespace

8/11/2019 10G SYSAUX Tablespace

http://slidepdf.com/reader/full/10g-sysaux-tablespace 2/3

  The manual CREATE TABLESPACE SYSAUX can only be executed during themigrate process after the following command:

 SQL> STARTUP UPGRADE

  SQL> CREATE TABLESPACE SYSAUX DATAFILE '...' SIZE xxxM  EXTENT MANAGEMENT LOCAL  SEGMENT SPACE MANAGEMENT AUTO;

and before the execution of the u0902000.sql script where it states that

  DOC  #######################################################################  The following statements will cause an "ORA-01722: invalid number"  error if the SYSAUX tablespace does not exist or is not ONLINE for READ

WRITE, PERMANENT, EXTENT MANAGEMENT LOCAL, and SEGMENT SPACE MANAGEMENTAUTO.

  The SYSAUX tablespace is used in 10g to consolidate data from a number of  tablespaces that were separate in prior releases.  Consult the Oracle10g Database Upgrade book for sizing estimates.

  Create the SYSAUX tablespace, for example,

  SQL> create tablespace SYSAUX datafile 'sysaux01.dbf'  size 50M reuse  extent management local  segment space management auto  online;

  Then rerun the u0902000.sql script.  ####################################################################### 4. Can be increased in size by adding new datafiles

or using ALTER DATABASE DATAFILE .... RESIZE 

5. Forbidden operations--------------------  -> DROP SYSAUX tablespace :

  SQL> drop tablespace SYSAUX including contents and datafiles;  drop tablespace SYSAUX including contents and datafiles  *  ERROR at line 1:  ORA-13501: Cannot drop SYSAUX tablespace

  -> RENAME SYSAUX tablespace :

  SQL> alter tablespace SYSAUX rename to OPT_TBS;

  alter tablespace SYSAUX rename to OPT_TBS  *  ERROR at line 1:  ORA-13502: Cannot rename SYSAUX tablespace

  -> Set SYSAUX tablespace to READ ONLY :

  SQL> alter tablesapce SYSAUX read only;  alter tablespace sysaux read only  *

Page 3: 10G  SYSAUX Tablespace

8/11/2019 10G SYSAUX Tablespace

http://slidepdf.com/reader/full/10g-sysaux-tablespace 3/3