客戶往往在買了10g/ 11g 企業版的Oracle資料庫後,
當資料庫管理員透過DBCA程式 把instance建立出來的過程中,
安裝程式也會一併把Enterprise Manager + Tuning Pack + Diagnostic Pack都enable
如果客戶在沒有買Tuning Pack + Diagnostic Pack的license情況下 是無法合法使用的
P.S.
Diagnostic Pack : 包含了 AWR , ADDM, ASH功能
Tuning Pack : 包含了SQL Tuning Advisor / SQL Access Advisor功能
以下就開始介紹如何Disable 這兩個套件的方法
1.On Oracle 10g ,
根據 MOS上面的文章 Disabling and Uninstalling AWR (Doc ID 1909073.1)
於安裝dbmsnoawr.plb Package後, 在sqlplus下執行 dbms_awr.disable_awr();
2.On Oracle 11g ,
透過線上修改control_management_pack_access 參數 (default : DIAGNOSTIC+TUNING)
SQL> ALTER SYSTEM SET control_management_pack_access=NONE;
3.On 12c 以後, 預設只會有Enterprise Manager Express版本, 所以除非有用到12c/ 13c Cloud Control Enterprise Manager,
才會需要考慮Tuning Pack/ Diagnostic Pack使用的license問題.
那麼如何檢查曾經有用過DB options? 下面以12.1.0.2的企業版本執行結果為例:
SQL>
set pages 999
col c1 heading 'feature' format a45
col c2 heading 'times|used' format 999,999
col c3 heading 'first|used'
col c4 heading 'used|now'
select
name c1,
detected_usages c2,
first_usage_date c3,
currently_used c4
from
dba_feature_usage_statistics
where
first_usage_date is not null;
/
feature used used now
--------------------------------------------- -------- --------- -----
Character Set 1 08-MAR-18 TRUE
Deferred Segment Creation 1 08-MAR-18 TRUE
Locally Managed Tablespaces (system) 1 08-MAR-18 TRUE
Automatic Memory Tuning 1 08-MAR-18 TRUE
Server Parameter File 1 08-MAR-18 TRUE
Oracle Managed Files 1 08-MAR-18 TRUE
Oracle Pluggable Databases 1 08-MAR-18 TRUE
Parallel SQL Query Execution 1 08-MAR-18 TRUE
Partitioning (system) 1 08-MAR-18 TRUE
Logfile Multiplexing 1 08-MAR-18 TRUE
Unified Audit 1 08-MAR-18 TRUE
Automatic Maintenance - Space Advisor 1 08-MAR-18 TRUE
Automatic Segment Space Management (system) 1 08-MAR-18 TRUE
Automatic Undo Management 1 08-MAR-18 TRUE
Real-Time SQL Monitoring 1 08-MAR-18 TRUE
LOB 1 08-MAR-18 TRUE
Adaptive Plans 1 08-MAR-18 TRUE
Automatic Reoptimization 1 08-MAR-18 TRUE
SQL Plan Directive 1 08-MAR-18 TRUE
Result Cache 1 08-MAR-18 TRUE
SecureFiles (user) 1 08-MAR-18 TRUE
SecureFiles (system) 1 08-MAR-18 TRUE
Job Scheduler 1 08-MAR-18 TRUE
Oracle Java Virtual Machine (system) 1 08-MAR-18 TRUE
Recovery Area 1 08-MAR-18 TRUE
Traditional Audit 1 08-MAR-18 TRUE
Automatic Maintenance - Optimizer Statistics 1 08-MAR-18 TRUE
Gathering
Automatic Maintenance - SQL Tuning Advisor 1 08-MAR-18 TRUE
Locally Managed Tablespaces (user) 1 08-MAR-18 TRUE
29 rows selected.
ref:
http://www.eygle.com/archives/2012/03/disable_enable_awr.html
https://petesdbablog.wordpress.com/2013/04/06/disable-oracle-diagnostic-pack-tuning-pack/
http://www.dba-oracle.com/t_dba_features_used_statistics.htm
http://www.dba-oracle.com/t_dba_features_used_statistics.htm
沒有留言:
張貼留言