32、SYSAUX表空間
以前一些使用獨立表空間或系統表空間的資料庫元件現在在SYSAUX表空間中建立.
透過分離這些元件和功能,SYSTEM表空間的負荷得以減輕.反覆建立一些相關物件及元件引起SYSTEM表空間的碎片問題得以避免。
如果SYSAUX表空間不可用,資料庫核心功能將保持有效;使用SYSAUX表空間的特點將會失敗或功能受限.
我們看一下資料庫建立指令碼:
CREATE DATABASE "eygle" |
以下是使用SYSAUX表空間的資料庫元件:
使用SYSAUX表空間的元件 以前版本所在表空間 Analytical Workspace Object Table SYSTEM Enterprise Manager Repository OEM_REPOSITORY LogMiner SYSTEM Logical Standby SYSTEM OLAP API History Tables CWMLITE Oracle Data Mining ODM Oracle Spatial SYSTEM Oracle Streams SYSTEM Oracle Text DRSYS Oracle Ultra Search DRSYS Oracle interMedia ORDPLUGINS Components SYSTEM Oracle interMedia ORDSYS Components SYSTEM Oracle interMedia SI_INFORMTN_SCHEMA Components SYSTEM Server Manageability Components New in Oracle Database 10g Statspack Repository User-defined Unified Job Scheduler New in Oracle Database 10g Workspace Manager SYSTEM |
新增的V$SYSAUX_OCCUPANTS檢視可以用來檢視這些資訊
SQL> select OCCUPANT_NAME,OCCUPANT_DESC,SCHEMA_NAME 2 from V$SYSAUX_OCCUPANTS; OCCUPANT_NAME OCCUPANT_DESC SCHEMA_NAME ------------- ---------------------------------------------------------------- ------------------ LOGMNR LogMiner SYSTEM LOGSTDBY Logical Standby SYSTEM STREAMS Oracle Streams SYS AO Analytical Workspace Object Table SYS XSOQHIST OLAP API History Tables SYS SM/AWR Server Manageability - Automatic Workload Repository SYS SM/ADVISOR Server Manageability - Advisor Framework SYS SM/OPTSTAT Server Manageability - Optimizer Statistics History SYS SM/OTHER Server Manageability - Other Components SYS STATSPACK Statspack Repository PERFSTAT ODM Oracle Data Mining DMSYS OCCUPANT_NAME OCCUPANT_DESC SCHEMA_NAME ------------- ---------------------------------------------------------------- ------------------ SDO Oracle Spatial MDSYS WM Workspace Manager WMSYS ORDIM Oracle interMedia ORDSYS Components ORDSYS ORDIM/PLUGINS Oracle interMedia ORDPLUGINS Components ORDPLUGINS ORDIM/SQLMM Oracle interMedia SI_INFORMTN_SCHEMA Components SI_INFORMTN_SCHEMA EM Enterprise Manager Repository SYSMAN TEXT Oracle Text CTXSYS ULTRASEARCH Oracle Ultra Search WKSYS JOB_SCHEDULER Unified Job Scheduler SYS 20 rows selected. |
SYAAUX表空間具有如下限制:
|
如果希望轉移這些系統物件的表空間,可以使用相應得系統包實現:
SQL> set linesize 120 SQL> col schema_name for a18 SQL> col occupant_name for a13 SQL> col move_procedure for a32 SQL> SELECT occupant_name, schema_name, move_procedure,space_usage_kbytes 2 FROM v$sysaux_occupants 3 ORDER BY 1 4 / OCCUPANT_NAME SCHEMA_NAME MOVE_PROCEDURE SPACE_USAGE_KBYTES ------------- ------------------ -------------------------------- ------------------ AO SYS DBMS_AW.MOVE_AWMETA 768 EM SYSMAN emd_maintenance.move_em_tblspc 0 JOB_SCHEDULER SYS 256 LOGMNR SYSTEM SYS.DBMS_LOGMNR_D.SET_TABLESPACE 7488------------注意這裡 LOGSTDBY SYSTEM SYS.DBMS_LOGSTDBY.SET_TABLESPACE 0 ODM DMSYS MOVE_ODM 0 ORDIM ORDSYS 0 ORDIM/PLUGINS ORDPLUGINS 0 ORDIM/SQLMM SI_INFORMTN_SCHEMA 0 SDO MDSYS MDSYS.MOVE_SDO 0 SM/ADVISOR SYS 5760 OCCUPANT_NAME SCHEMA_NAME MOVE_PROCEDURE SPACE_USAGE_KBYTES ------------- ------------------ -------------------------------- ------------------ SM/AWR SYS 62848 SM/OPTSTAT SYS 9344 SM/OTHER SYS 2816 STATSPACK PERFSTAT 0 STREAMS SYS 192 TEXT CTXSYS DRI_MOVE_CTXSYS 0 ULTRASEARCH WKSYS MOVE_WK 0 WM WMSYS DBMS_WM.move_proc 6656 XSOQHIST SYS DBMS_XSOQ.OlapiMoveProc 768 20 rows selected. SQL> exec SYS.DBMS_LOGMNR_D.SET_TABLESPACE('USERS'); PL/SQL procedure successfully completed. SQL> set linesize 120 SQL> col schema_name for a18 SQL> col occupant_name for a13 SQL> col move_procedure for a32 SQL> SELECT occupant_name, schema_name, move_procedure,space_usage_kbytes 2 FROM v$sysaux_occupants 3 ORDER BY 1 4 / OCCUPANT_NAME SCHEMA_NAME MOVE_PROCEDURE SPACE_USAGE_KBYTES ------------- ------------------ -------------------------------- ------------------ AO SYS DBMS_AW.MOVE_AWMETA 768 EM SYSMAN emd_maintenance.move_em_tblspc 0 JOB_SCHEDULER SYS 256 LOGMNR SYSTEM SYS.DBMS_LOGMNR_D.SET_TABLESPACE 0------------注意這裡 LOGSTDBY SYSTEM SYS.DBMS_LOGSTDBY.SET_TABLESPACE 0 ODM DMSYS MOVE_ODM 0 ORDIM ORDSYS 0 ORDIM/PLUGINS ORDPLUGINS 0 ORDIM/SQLMM SI_INFORMTN_SCHEMA 0 SDO MDSYS MDSYS.MOVE_SDO 0 SM/ADVISOR SYS 5760 OCCUPANT_NAME SCHEMA_NAME MOVE_PROCEDURE SPACE_USAGE_KBYTES ------------- ------------------ -------------------------------- ------------------ SM/AWR SYS 62848 SM/OPTSTAT SYS 9344 SM/OTHER SYS 2816 STATSPACK PERFSTAT 0 STREAMS SYS 192 TEXT CTXSYS DRI_MOVE_CTXSYS 0 ULTRASEARCH WKSYS MOVE_WK 0 WM WMSYS DBMS_WM.move_proc 6656 XSOQHIST SYS DBMS_XSOQ.OlapiMoveProc 768 20 rows selected. |
復位:
SQL> exec SYS.DBMS_LOGMNR_D.SET_TABLESPACE('SYSAUX'); PL/SQL procedure successfully completed. SQL> set linesize 120 SQL> col schema_name for a18 SQL> col occupant_name for a13 SQL> col move_procedure for a32 SQL> SELECT occupant_name, schema_name, move_procedure,space_usage_kbytes 2 FROM v$sysaux_occupants 3 ORDER BY 1 4 / OCCUPANT_NAME SCHEMA_NAME MOVE_PROCEDURE SPACE_USAGE_KBYTES ------------- ------------------ -------------------------------- ------------------ AO SYS DBMS_AW.MOVE_AWMETA 768 EM SYSMAN emd_maintenance.move_em_tblspc 0 JOB_SCHEDULER SYS 256 LOGMNR SYSTEM SYS.DBMS_LOGMNR_D.SET_TABLESPACE 7488 LOGSTDBY SYSTEM SYS.DBMS_LOGSTDBY.SET_TABLESPACE 0 ODM DMSYS MOVE_ODM 0 ORDIM ORDSYS 0 ORDIM/PLUGINS ORDPLUGINS 0 ORDIM/SQLMM SI_INFORMTN_SCHEMA 0 SDO MDSYS MDSYS.MOVE_SDO 0 SM/ADVISOR SYS 5760 OCCUPANT_NAME SCHEMA_NAME MOVE_PROCEDURE SPACE_USAGE_KBYTES ------------- ------------------ -------------------------------- ------------------ SM/AWR SYS 62848 SM/OPTSTAT SYS 9344 SM/OTHER SYS 2816 STATSPACK PERFSTAT 0 STREAMS SYS 192 TEXT CTXSYS DRI_MOVE_CTXSYS 0 ULTRASEARCH WKSYS MOVE_WK 0 WM WMSYS DBMS_WM.move_proc 6656 XSOQHIST SYS DBMS_XSOQ.OlapiMoveProc 768 20 rows selected. |
結論:
這是一個管理及規劃上的改進,進一步獨立SYSTEM表空間,保證其儲存及效能.
我們在做資料庫規劃時大可借鑑Oracle這個改進,分離重要資料及次要資料,分離穩定結構及頻繁變化結構,儘量減少對重要資料及結構的影響。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/248644/viewspace-991085/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle清理SYSAUX表空間OracleUX
- 2.5.4.1 關於SYSAUX表空間UX
- AWR佔用sysaux表空間太大UX
- SYSAUX表空間清理之SM/OPTSTATUX
- 4.2.1.7 規劃 SYSTEM 和 SYSAUX 表空間UX
- sysaux 表空間爆滿處理方法UX
- oracle sysaux表空間滿了處理辦法OracleUX
- 2.5.4 為 SYSAUX 表空間指定資料檔案屬性UX
- Oracle SYSAUX 表空間使用率100% 導致的DB 故障OracleUX
- Oracle案例08——xx.xx.xx.xx,表空間 SYSAUX 使用率>95%%OracleUX
- OGG相關的CPATURE導致SYSAUX表空間異常暴增處理UX
- 16、表空間 建立表空間
- SYSAUX表空間佔用過大情況下的處理(AWR資訊過多)UX
- Oracle表空間Oracle
- oracle 表空間Oracle
- PostgreSQL 表空間SQL
- PostgreSQL:表空間SQL
- 當使用者無限制使用表空間配額且表空間有足夠空間時出現超出表空間的空間限額
- 表空間利用率及表空間的補充
- UNDO表空間空間回收及切換
- undo表空間容量
- 增加oracle表空間Oracle
- Configure innodb 表空間
- 表空間限額
- 3.2. 表空間
- 只讀表空間
- oracle temp 表空間Oracle
- KingbaseES的表空間
- oracle 表移動表空間Oracle
- Oracle表移動表空間Oracle
- oracle建立臨時表空間和資料表空間以及刪除Oracle
- 臨時表空間和回滾表空間使用率查詢
- MySQL 中的共享表空間與獨立表空間如何選擇MySql
- PostgreSQL:表空間-->資料庫-->表SQL資料庫
- mysql臨時表,臨時表空間,ibtmp1表空間暴增原因初探MySql
- Oracle臨時表空間檢視、新增臨時表空間資料檔案、修改預設臨時表空間 方法!Oracle
- 獲取表空間DDL
- Innodb:Undo 表空間巨大
- Tablespace表空間刪除