SlideShare uma empresa Scribd logo
1 de 34
Wie misst Oracle die Verwendung
von Database Features?
Martin Berger
DOAG 2015
Martin Berger
Oracle DBA since 2000
http://berxblog.blogspot.com
@martinberx
martin.a.berger@gmail.com
Disclaimer
this presentation is ONLY about the features and possibilities of
DBA_FEATURE_USAGE_STATISTICS view and supporting
packages/procedures
NO information about LMS activities
NO information about license optimization
DBA_FEATURE_USAGE_STATISTICS
http://docs.oracle.com/database/121/REFRN/GUID-B8A38B9B-3AAA-4341-AA05-
4309870CE73B.htm#REFRN23396
DBA_FEATURE_USAGE_STATISTICS
DBA_FEATURE_USAGE_STATISTICS
DBA_FEATURE_USAGE_STATISTICS
DBID database ID of database being tracked
NAME name of feature
VERSION the database version the feature was tracked in
DETECTED_USAGES number of times the system has detected usage for the feature
TOTAL_SAMPLES number of times the system has woken up and checked for usage
CURRENTLY_USED if usage was detected the last time the system checked
FIRST_USAGE_DATE the first sample time the system detected usage for the feature
LAST_USAGE_DATE the last sample time the system detected usage for the feature
AUX_COUNT extra column to store feature specific usage data
FEATURE_INFO extra column to store feature specific usage data
LAST_SAMPLE_DATE last time the system checked for usage
LAST_SAMPLE_PERIOD amount of time between the last two usage sample times, in number of seconds
SAMPLE_INTERVAL [ 604800 seconds ]
DESCRIPTION describes feature and usage detection logic
DBA_FEATURE_USAGE_STATISTICS
components behind the scene
methods to refresh manually
single checks in detail
components behind the scene
DBA_FEATURE_USAGE_STATISTICS View:
SELECT samp.dbid, fu.name,
samp.version, detected_usages,
total_samples,
Decode(To_char(last_usage_date, 'MM/DD/YYYY, HH:MI:SS'),
NULL, 'FALSE',
To_char( last_sample_date, 'MM/DD/YYYY, HH:MI:SS'),
'TRUE', 'FALSE')
currently_used,
first_usage_date,
last_usage_date,
aux_count,
feature_info,
last_sample_date,
last_sample_period,
sample_interval,
mt.description
FROM wri$_dbu_usage_sample samp,
wri$_dbu_feature_usage fu,
wri$_dbu_feature_metadata mt
WHERE samp.dbid = fu.dbid
AND samp.version = fu.version
AND fu.name = mt.name
AND fu.name NOT LIKE '_DBFUS_TEST%'
/* filter out test features */
AND Bitand(mt.usg_det_method, 4) != 4
/* filter out disabled features */
components behind the scene
DBA_FEATURE_USAGE_STATISTICS
DBID database ID of database being tracked
NAME name of feature
VERSION the database version the feature was tracked in
DETECTED_USAGES number of times the system has detected usage for th
TOTAL_SAMPLES number of times the system has woken up and checked
CURRENTLY_USED if usage was detected the last time the system check
FIRST_USAGE_DATE the first sample time the system detected usage for
LAST_USAGE_DATE the last sample time the system detected usage for t
AUX_COUNT extra column to store feature specific usage data
FEATURE_INFO extra column to store feature specific usage data
LAST_SAMPLE_DATE last time the system checked for usage
LAST_SAMPLE_PERIOD amount of time between the last two usage sample tim
SAMPLE_INTERVAL [ 604800 seconds ]
DESCRIPTION describes feature and usage detection logic
wri$_dbu_usage_sample samp
*DBID
*VERSION
*LAST_SAMPLE_DATE
LAST_SAMPLE_DATE_NUM
*LAST_SAMPLE_PERIOD
*TOTAL_SAMPLES
*SAMPLE_INTERVAL
components behind the scene
DBA_FEATURE_USAGE_STATISTICS
DBID database ID of database being tracked
NAME name of feature
VERSION the database version the feature was tracked in
DETECTED_USAGES number of times the system has detected usage for th
TOTAL_SAMPLES number of times the system has woken up and checked
CURRENTLY_USED if usage was detected the last time the system check
FIRST_USAGE_DATE the first sample time the system detected usage for
LAST_USAGE_DATE the last sample time the system detected usage for t
AUX_COUNT extra column to store feature specific usage data
FEATURE_INFO extra column to store feature specific usage data
LAST_SAMPLE_DATE last time the system checked for usage
LAST_SAMPLE_PERIOD amount of time between the last two usage sample tim
SAMPLE_INTERVAL [ 604800 seconds ]
DESCRIPTION describes feature and usage detection logic
wri$_dbu_feature_usage fu
DBID
*NAME
VERSION
*FIRST_USAGE_DATE
*LAST_USAGE_DATE
*DETECTED_USAGES
*AUX_COUNT
*FEATURE_INFO
ERROR_COUNT
components behind the scene
DBA_FEATURE_USAGE_STATISTICS
DBID database ID of database being tracked
NAME name of feature
VERSION the database version the feature was tracked in
DETECTED_USAGES number of times the system has detected usage for th
TOTAL_SAMPLES number of times the system has woken up and checked
CURRENTLY_USED if usage was detected the last time the system check
FIRST_USAGE_DATE the first sample time the system detected usage for
LAST_USAGE_DATE the last sample time the system detected usage for t
AUX_COUNT extra column to store feature specific usage data
FEATURE_INFO extra column to store feature specific usage data
LAST_SAMPLE_DATE last time the system checked for usage
LAST_SAMPLE_PERIOD amount of time between the last two usage sample tim
SAMPLE_INTERVAL [ 604800 seconds ]
DESCRIPTION describes feature and usage detection logic
wri$_dbu_feature_metadata mt
NAME
INST_CHK_METHOD
INST_CHK_LOGIC
USG_DET_METHOD
USG_DET_LOGIC
*DESCRIPTION
components behind the scene
DBA_FEATURE_USAGE_STATISTICS
DBID database ID of database being tracked
NAME name of feature
VERSION the database version the feature was tracked in
DETECTED_USAGES number of times the system has detected usage for th
TOTAL_SAMPLES number of times the system has woken up and checked
CURRENTLY_USED if usage was detected the last time the system check
FIRST_USAGE_DATE the first sample time the system detected usage for
LAST_USAGE_DATE the last sample time the system detected usage for t
AUX_COUNT extra column to store feature specific usage data
FEATURE_INFO extra column to store feature specific usage data
LAST_SAMPLE_DATE last time the system checked for usage
LAST_SAMPLE_PERIOD amount of time between the last two usage sample tim
SAMPLE_INTERVAL [ 604800 seconds ]
DESCRIPTION describes feature and usage detection logic
Decode(
To_char(last_usage_date,
'MM/DD/YYYY, HH:MI:SS'),
NULL, 'FALSE',
To_char( last_sample_date,
'MM/DD/YYYY, HH:MI:SS'),
'TRUE', 'FALSE')
components behind the scene
WHERE samp.dbid = fu.dbid
AND samp.version = fu.version
AND fu.name = mt.name
AND fu.name NOT LIKE '_DBFUS_TEST%'
/* filter out test features */
AND Bitand(mt.usg_det_method, 4) != 4
/* filter out disabled features */
components behind the scene
DBA_FEATURE_USAGE_STATISTICS
wri$_dbu_feature_usage wri$_dbu_feature_metadata wri$_dbu_usage_sample
components behind the scene
DBA_FEATURE_USAGE_STATISTICS
wri$_dbu_feature_usage wri$_dbu_feature_metadata wri$_dbu_usage_sample
DBMS_FEATURE_USAGEDBMS_FEATURE_USAGE_INTERNALDBMS_FEATURE_*
components behind the scene
DBA_FEATURE_USAGE_STATISTICS
wri$_dbu_feature_usage wri$_dbu_feature_metadata wri$_dbu_usage_sample
DBMS_FEATURE_USAGEDBMS_FEATURE_USAGE_INTERNALDBMS_FEATURE_*
DBMS_SWRF_REPORT_INTERNAL
DBA_FEATURE_USAGE_STATISTICS
components behind the scene
methods to refresh manually
single checks in detail
methods to refresh manually
alter session set events 'immediate trace name mmon_test level 6';
How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1)
methods to refresh manually
alter session set events 'immediate trace name mmon_test level 6';
How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1)
alter session set "_SWRF_TEST_ACTION"=53;
How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1)
SWR => Select Workload Repository (Framework?)
ADR auto purge
alter session set "_swrf_test_action" = 101;
Bug 9530322 ADR auto purge does not occur in ASM instance or standby database
Split the AWR partitions
alter session set "_swrf_test_action" = 72;
Manually Purge the Optimizer Statistics & AWR Snaphots to Reduce Space Usage of SYSAUX Tablespace (Doc ID 1965061.1)
AWR Snapshot traces
snapshot flush trace enable 10 disable
11
MMON action trace enable 28 disable
29
other "_SWRF_TEST_ACTION" values
methods to refresh manually
alter session set events 'immediate trace name mmon_test level 6';
How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1)
alter session set "_SWRF_TEST_ACTION"=53;
How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1)
DEMO
DBA_FEATURE_USAGE_STATISTICS
components behind the scene
methods to refresh manually
single checks in detail
single checks in detail
to check, if the feature is installed at all:
DBU_INST_ALWAYS_INSTALLED 1 /* no test required
*/
DBU_INST_OBJECT 2 /* object
name in LOGIC */
DBU_INST_TEST 4 /* only
test */
wri$_dbu_feature_metadata mt
NAME
INST_CHK_METHOD
INST_CHK_LOGIC
USG_DET_METHOD
USG_DET_LOGIC
*DESCRIPTION
single checks in detail
to check, if the feature is installed at all:
DBU_INST_ALWAYS_INSTALLED 1 /* no test required */
DBU_INST_OBJECT 2 /* object
name in LOGIC */
DBU_INST_TEST 4 /* only test
*/
method to be used to check feature usage::
DBU_DETECT_BY_SQL 1 /* SQL
specified in USG_DET_LOGIC */
DBU_DETECT_BY_PROCEDURE 2 /* Procedure -- “
-- */
DBU_DETECT_NULL 4 /* only test
for _DBFUS_TEST_SQL_7 */
wri$_dbu_feature_metadata mt
NAME
INST_CHK_METHOD
INST_CHK_LOGIC
USG_DET_METHOD
USG_DET_LOGIC
*DESCRIPTION
$ORACLE_HOME/rdbms/admin/catfusrg.sql -> dbmsfus.sql -> prvtfus.plb
single checks in detail
to check, if the feature is installed at all:
DBU_INST_ALWAYS_INSTALLED 1 /* no test required */
DBU_INST_OBJECT 2 /* object
name in LOGIC */
DBU_INST_TEST 4 /* only test
*/
method to be used to check feature usage::
DBU_DETECT_BY_SQL 1 /* SQL
specified in USG_DET_LOGIC */
DBU_DETECT_BY_PROCEDURE 2 /* Procedure -- “
-- */
DBU_DETECT_NULL 4 /* only test
for _DBFUS_TEST_SQL_7 */
examples:
Advanced Replication: select count(*), NULL, NULL from dba_repcat;
Zone maps: DBMS_FEATURE_ZMAP
Oracle Text: ctxsys.drifeat.dr$feature_track
wri$_dbu_feature_metadata mt
NAME
INST_CHK_METHOD
INST_CHK_LOGIC
USG_DET_METHOD
USG_DET_LOGIC
*DESCRIPTION
single checks in detail
DBMS_FEATURE_*
Argument Name Type In/Out Default
------------- ------ ------ -------
IS_USED NUMBER OUT
DATA_RATIO NUMBER OUT
CLOB_REST CLOB OUT
wri$_dbu_feature_metadata mt
NAME
INST_CHK_METHOD
INST_CHK_LOGIC
USG_DET_METHOD
USG_DET_LOGIC
*DESCRIPTION
single checks in detail
DBMS_FEATURE_*
Argument Name Type In/Out Default
------------- ------ ------ -------
IS_USED NUMBER OUT
DATA_RATIO NUMBER OUT
CLOB_REST CLOB OUT
wri$_dbu_feature_metadata mt
NAME
INST_CHK_METHOD
INST_CHK_LOGIC
USG_DET_METHOD
USG_DET_LOGIC
*DESCRIPTION
DEMO
single checks in detail
single checks in detail
DEMO
single checks in detail
create or replace PROCEDURE dbms_feature_goldengate
(feature_boolean OUT NUMBER, aux_count OUT NUMBER, feature_info
OUT CLOB)
…...
select decode (count(*), 0, 0, 1) into num_capture
from dba_capture where UPPER(purpose) = 'GOLDENGATE CAPTURE';
select decode (count(*), 0, 0, 1) into num_ds_capture from dba_capture
where UPPER(purpose) = 'GOLDENGATE CAPTURE' and UPPER(capture_type) = 'DOWNSTREAM';
select decode (count(*), 0, 0, 1) into num_apply from dba_apply
where UPPER(purpose) IN ('GOLDENGATE APPLY', 'GOLDENGATE CAPTURE');
select sum(count) into num_dblogreader
from GV$GOLDENGATE_CAPABILITIES where name like 'DBLOGREADER';
select sum(count) into num_transient_duplicate
from GV$GOLDENGATE_CAPABILITIES where name like 'TRANSIENTDUPLICATE';
select sum(count) into num_trigger_suppression
report
Database Options/Management Packs Usage Reporting for Oracle Databases 11gR2 and 12c (Doc ID
1317265.1)
PRODUCT USAGE
Description
This section provides an overview of each option/pack that has been used in the database and if they are
currently in use. It will also provide information when the product was first used and when it was used last time.
FEATURE USAGE DETAILS
Description
This section provides a detailed report of features used that has triggered the usage of a product.
The report is based on the DBA_FEATURE_USAGE_STATISTICS view.
The CURRENTLY_USED column of DBA_FEATURE_USAGE_STATISTICS view indicates if the feature in question
was used during the last sampling interval by VERSION and DBID
SQL> @options_packs_usage_statistics.sql
Disclaimer (again)
this presentation is ONLY about the features and possibilities of
DBA_FEATURE_USAGE_STATISTICS view and supporting
packages/procedures
NO information about LMS activities
NO information about license optimization
Q/A ?
Martin Berger
DOAG 2015
Wie misst Oracle die Verwendung
von Database Features?
DOAG 2015
http://berxblog.blogspot.com
@martinberx
martin.a.berger@gmail.com

Mais conteúdo relacionado

Mais procurados

Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle MultitenantJitendra Singh
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsJohn Beresniewicz
 
Adapting and adopting spm v04
Adapting and adopting spm v04Adapting and adopting spm v04
Adapting and adopting spm v04Carlos Sierra
 
DBA_FEATURE_USAGE_STATISTICS
DBA_FEATURE_USAGE_STATISTICSDBA_FEATURE_USAGE_STATISTICS
DBA_FEATURE_USAGE_STATISTICSMartin Berger
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsStefan Oehrli
 
Comparison of ACFS and DBFS
Comparison of ACFS and DBFSComparison of ACFS and DBFS
Comparison of ACFS and DBFSDanielHillinger
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionMarkus Michalewicz
 
DB2 10 & 11 for z/OS System Performance Monitoring and Optimisation
DB2 10 & 11 for z/OS System Performance Monitoring and OptimisationDB2 10 & 11 for z/OS System Performance Monitoring and Optimisation
DB2 10 & 11 for z/OS System Performance Monitoring and OptimisationJohn Campbell
 
Exploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cExploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cZohar Elkayam
 
IBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM
 
New availability features in oracle rac 12c release 2 anair ss
New availability features in oracle rac 12c release 2 anair   ssNew availability features in oracle rac 12c release 2 anair   ss
New availability features in oracle rac 12c release 2 anair ssAnil Nair
 
A First Look at the DB2 10 DSNZPARM Changes
A First Look at the DB2 10 DSNZPARM ChangesA First Look at the DB2 10 DSNZPARM Changes
A First Look at the DB2 10 DSNZPARM ChangesWillie Favero
 
Reading AWR or Statspack Report - Straight to the Goal
Reading AWR or Statspack Report - Straight to the GoalReading AWR or Statspack Report - Straight to the Goal
Reading AWR or Statspack Report - Straight to the GoalFranck Pachot
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Aaron Shilo
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the TradeCarlos Sierra
 
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSPractical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSCuneyt Goksu
 
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata MigrationsTanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata MigrationsTanel Poder
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)K Kumar Guduru
 
Oracle Advanced Security Transparent Data Encryptionのご紹介
Oracle Advanced Security Transparent Data Encryptionのご紹介Oracle Advanced Security Transparent Data Encryptionのご紹介
Oracle Advanced Security Transparent Data Encryptionのご紹介オラクルエンジニア通信
 

Mais procurados (20)

Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
 
Adapting and adopting spm v04
Adapting and adopting spm v04Adapting and adopting spm v04
Adapting and adopting spm v04
 
DBA_FEATURE_USAGE_STATISTICS
DBA_FEATURE_USAGE_STATISTICSDBA_FEATURE_USAGE_STATISTICS
DBA_FEATURE_USAGE_STATISTICS
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant Environments
 
Comparison of ACFS and DBFS
Comparison of ACFS and DBFSComparison of ACFS and DBFS
Comparison of ACFS and DBFS
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
DB2 10 & 11 for z/OS System Performance Monitoring and Optimisation
DB2 10 & 11 for z/OS System Performance Monitoring and OptimisationDB2 10 & 11 for z/OS System Performance Monitoring and Optimisation
DB2 10 & 11 for z/OS System Performance Monitoring and Optimisation
 
Exploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cExploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12c
 
IBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration Basics
 
New availability features in oracle rac 12c release 2 anair ss
New availability features in oracle rac 12c release 2 anair   ssNew availability features in oracle rac 12c release 2 anair   ss
New availability features in oracle rac 12c release 2 anair ss
 
A First Look at the DB2 10 DSNZPARM Changes
A First Look at the DB2 10 DSNZPARM ChangesA First Look at the DB2 10 DSNZPARM Changes
A First Look at the DB2 10 DSNZPARM Changes
 
SQLd360
SQLd360SQLd360
SQLd360
 
Reading AWR or Statspack Report - Straight to the Goal
Reading AWR or Statspack Report - Straight to the GoalReading AWR or Statspack Report - Straight to the Goal
Reading AWR or Statspack Report - Straight to the Goal
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
 
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSPractical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
 
Tanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata MigrationsTanel Poder - Performance stories from Exadata Migrations
Tanel Poder - Performance stories from Exadata Migrations
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
 
Oracle Advanced Security Transparent Data Encryptionのご紹介
Oracle Advanced Security Transparent Data Encryptionのご紹介Oracle Advanced Security Transparent Data Encryptionのご紹介
Oracle Advanced Security Transparent Data Encryptionのご紹介
 

Semelhante a 473721 dba feature_usage_statistics

How to install setup-use the aq performance monitor package dbms aq-monitor [...
How to install setup-use the aq performance monitor package dbms aq-monitor [...How to install setup-use the aq performance monitor package dbms aq-monitor [...
How to install setup-use the aq performance monitor package dbms aq-monitor [...Jean-Christophe Dauchy
 
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu   (obscure) tools of the trade for tuning oracle sq lsTony Jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu (obscure) tools of the trade for tuning oracle sq lsInSync Conference
 
Data Tracking: On the Hunt for Information about Your Database
Data Tracking: On the Hunt for Information about Your DatabaseData Tracking: On the Hunt for Information about Your Database
Data Tracking: On the Hunt for Information about Your DatabaseMichael Rosenblum
 
Less12 Proactive
Less12 ProactiveLess12 Proactive
Less12 Proactivevivaankumar
 
Tuning Robot Quick Tour
Tuning Robot Quick TourTuning Robot Quick Tour
Tuning Robot Quick TourActive Base
 
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
Tony jambu   (obscure) tools of the trade for tuning oracle sq lsTony jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony jambu (obscure) tools of the trade for tuning oracle sq lsInSync Conference
 
OTech magazine article - Principle of Least Privilege
OTech magazine article - Principle of Least PrivilegeOTech magazine article - Principle of Least Privilege
OTech magazine article - Principle of Least PrivilegeBiju Thomas
 
Hadoop cluster performance profiler
Hadoop cluster performance profilerHadoop cluster performance profiler
Hadoop cluster performance profilerIhor Bobak
 
Procedures/functions of rdbms
Procedures/functions of rdbmsProcedures/functions of rdbms
Procedures/functions of rdbmsjain.pralabh
 
The MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS SchemaThe MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS SchemaTed Wennmark
 
Oracle - Program with PL/SQL - Lession 11
Oracle - Program with PL/SQL - Lession 11Oracle - Program with PL/SQL - Lession 11
Oracle - Program with PL/SQL - Lession 11Thuan Nguyen
 
Sql server lesson13
Sql server lesson13Sql server lesson13
Sql server lesson13Ala Qunaibi
 
Oracle Data Redaction
Oracle Data RedactionOracle Data Redaction
Oracle Data RedactionAlex Zaballa
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And Whatudaymoogala
 
IoT Evolution Expo- Machine Learning and the Cloud
IoT Evolution Expo- Machine Learning and the CloudIoT Evolution Expo- Machine Learning and the Cloud
IoT Evolution Expo- Machine Learning and the CloudValue Amplify Consulting
 

Semelhante a 473721 dba feature_usage_statistics (20)

How to install setup-use the aq performance monitor package dbms aq-monitor [...
How to install setup-use the aq performance monitor package dbms aq-monitor [...How to install setup-use the aq performance monitor package dbms aq-monitor [...
How to install setup-use the aq performance monitor package dbms aq-monitor [...
 
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu   (obscure) tools of the trade for tuning oracle sq lsTony Jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
 
Data Tracking: On the Hunt for Information about Your Database
Data Tracking: On the Hunt for Information about Your DatabaseData Tracking: On the Hunt for Information about Your Database
Data Tracking: On the Hunt for Information about Your Database
 
Less12 Proactive
Less12 ProactiveLess12 Proactive
Less12 Proactive
 
Tuning Robot Quick Tour
Tuning Robot Quick TourTuning Robot Quick Tour
Tuning Robot Quick Tour
 
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
Tony jambu   (obscure) tools of the trade for tuning oracle sq lsTony jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
 
Oracle: Procedures
Oracle: ProceduresOracle: Procedures
Oracle: Procedures
 
Oracle: Procedures
Oracle: ProceduresOracle: Procedures
Oracle: Procedures
 
OTech magazine article - Principle of Least Privilege
OTech magazine article - Principle of Least PrivilegeOTech magazine article - Principle of Least Privilege
OTech magazine article - Principle of Least Privilege
 
Hadoop cluster performance profiler
Hadoop cluster performance profilerHadoop cluster performance profiler
Hadoop cluster performance profiler
 
Procedures/functions of rdbms
Procedures/functions of rdbmsProcedures/functions of rdbms
Procedures/functions of rdbms
 
The MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS SchemaThe MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS Schema
 
Aspects of 10 Tuning
Aspects of 10 TuningAspects of 10 Tuning
Aspects of 10 Tuning
 
Oracle - Program with PL/SQL - Lession 11
Oracle - Program with PL/SQL - Lession 11Oracle - Program with PL/SQL - Lession 11
Oracle - Program with PL/SQL - Lession 11
 
Struts 2
Struts 2Struts 2
Struts 2
 
Sql server lesson13
Sql server lesson13Sql server lesson13
Sql server lesson13
 
Oracle Data Redaction
Oracle Data RedactionOracle Data Redaction
Oracle Data Redaction
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 
IoT Evolution Expo- Machine Learning and the Cloud
IoT Evolution Expo- Machine Learning and the CloudIoT Evolution Expo- Machine Learning and the Cloud
IoT Evolution Expo- Machine Learning and the Cloud
 
Oracle training in hyderabad
Oracle training in hyderabadOracle training in hyderabad
Oracle training in hyderabad
 

Último

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 

Último (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

473721 dba feature_usage_statistics

  • 1. Wie misst Oracle die Verwendung von Database Features? Martin Berger DOAG 2015
  • 2. Martin Berger Oracle DBA since 2000 http://berxblog.blogspot.com @martinberx martin.a.berger@gmail.com
  • 3. Disclaimer this presentation is ONLY about the features and possibilities of DBA_FEATURE_USAGE_STATISTICS view and supporting packages/procedures NO information about LMS activities NO information about license optimization
  • 6. DBA_FEATURE_USAGE_STATISTICS DBA_FEATURE_USAGE_STATISTICS DBID database ID of database being tracked NAME name of feature VERSION the database version the feature was tracked in DETECTED_USAGES number of times the system has detected usage for the feature TOTAL_SAMPLES number of times the system has woken up and checked for usage CURRENTLY_USED if usage was detected the last time the system checked FIRST_USAGE_DATE the first sample time the system detected usage for the feature LAST_USAGE_DATE the last sample time the system detected usage for the feature AUX_COUNT extra column to store feature specific usage data FEATURE_INFO extra column to store feature specific usage data LAST_SAMPLE_DATE last time the system checked for usage LAST_SAMPLE_PERIOD amount of time between the last two usage sample times, in number of seconds SAMPLE_INTERVAL [ 604800 seconds ] DESCRIPTION describes feature and usage detection logic
  • 7. DBA_FEATURE_USAGE_STATISTICS components behind the scene methods to refresh manually single checks in detail
  • 8. components behind the scene DBA_FEATURE_USAGE_STATISTICS View: SELECT samp.dbid, fu.name, samp.version, detected_usages, total_samples, Decode(To_char(last_usage_date, 'MM/DD/YYYY, HH:MI:SS'), NULL, 'FALSE', To_char( last_sample_date, 'MM/DD/YYYY, HH:MI:SS'), 'TRUE', 'FALSE') currently_used, first_usage_date, last_usage_date, aux_count, feature_info, last_sample_date, last_sample_period, sample_interval, mt.description FROM wri$_dbu_usage_sample samp, wri$_dbu_feature_usage fu, wri$_dbu_feature_metadata mt WHERE samp.dbid = fu.dbid AND samp.version = fu.version AND fu.name = mt.name AND fu.name NOT LIKE '_DBFUS_TEST%' /* filter out test features */ AND Bitand(mt.usg_det_method, 4) != 4 /* filter out disabled features */
  • 9. components behind the scene DBA_FEATURE_USAGE_STATISTICS DBID database ID of database being tracked NAME name of feature VERSION the database version the feature was tracked in DETECTED_USAGES number of times the system has detected usage for th TOTAL_SAMPLES number of times the system has woken up and checked CURRENTLY_USED if usage was detected the last time the system check FIRST_USAGE_DATE the first sample time the system detected usage for LAST_USAGE_DATE the last sample time the system detected usage for t AUX_COUNT extra column to store feature specific usage data FEATURE_INFO extra column to store feature specific usage data LAST_SAMPLE_DATE last time the system checked for usage LAST_SAMPLE_PERIOD amount of time between the last two usage sample tim SAMPLE_INTERVAL [ 604800 seconds ] DESCRIPTION describes feature and usage detection logic wri$_dbu_usage_sample samp *DBID *VERSION *LAST_SAMPLE_DATE LAST_SAMPLE_DATE_NUM *LAST_SAMPLE_PERIOD *TOTAL_SAMPLES *SAMPLE_INTERVAL
  • 10. components behind the scene DBA_FEATURE_USAGE_STATISTICS DBID database ID of database being tracked NAME name of feature VERSION the database version the feature was tracked in DETECTED_USAGES number of times the system has detected usage for th TOTAL_SAMPLES number of times the system has woken up and checked CURRENTLY_USED if usage was detected the last time the system check FIRST_USAGE_DATE the first sample time the system detected usage for LAST_USAGE_DATE the last sample time the system detected usage for t AUX_COUNT extra column to store feature specific usage data FEATURE_INFO extra column to store feature specific usage data LAST_SAMPLE_DATE last time the system checked for usage LAST_SAMPLE_PERIOD amount of time between the last two usage sample tim SAMPLE_INTERVAL [ 604800 seconds ] DESCRIPTION describes feature and usage detection logic wri$_dbu_feature_usage fu DBID *NAME VERSION *FIRST_USAGE_DATE *LAST_USAGE_DATE *DETECTED_USAGES *AUX_COUNT *FEATURE_INFO ERROR_COUNT
  • 11. components behind the scene DBA_FEATURE_USAGE_STATISTICS DBID database ID of database being tracked NAME name of feature VERSION the database version the feature was tracked in DETECTED_USAGES number of times the system has detected usage for th TOTAL_SAMPLES number of times the system has woken up and checked CURRENTLY_USED if usage was detected the last time the system check FIRST_USAGE_DATE the first sample time the system detected usage for LAST_USAGE_DATE the last sample time the system detected usage for t AUX_COUNT extra column to store feature specific usage data FEATURE_INFO extra column to store feature specific usage data LAST_SAMPLE_DATE last time the system checked for usage LAST_SAMPLE_PERIOD amount of time between the last two usage sample tim SAMPLE_INTERVAL [ 604800 seconds ] DESCRIPTION describes feature and usage detection logic wri$_dbu_feature_metadata mt NAME INST_CHK_METHOD INST_CHK_LOGIC USG_DET_METHOD USG_DET_LOGIC *DESCRIPTION
  • 12. components behind the scene DBA_FEATURE_USAGE_STATISTICS DBID database ID of database being tracked NAME name of feature VERSION the database version the feature was tracked in DETECTED_USAGES number of times the system has detected usage for th TOTAL_SAMPLES number of times the system has woken up and checked CURRENTLY_USED if usage was detected the last time the system check FIRST_USAGE_DATE the first sample time the system detected usage for LAST_USAGE_DATE the last sample time the system detected usage for t AUX_COUNT extra column to store feature specific usage data FEATURE_INFO extra column to store feature specific usage data LAST_SAMPLE_DATE last time the system checked for usage LAST_SAMPLE_PERIOD amount of time between the last two usage sample tim SAMPLE_INTERVAL [ 604800 seconds ] DESCRIPTION describes feature and usage detection logic Decode( To_char(last_usage_date, 'MM/DD/YYYY, HH:MI:SS'), NULL, 'FALSE', To_char( last_sample_date, 'MM/DD/YYYY, HH:MI:SS'), 'TRUE', 'FALSE')
  • 13. components behind the scene WHERE samp.dbid = fu.dbid AND samp.version = fu.version AND fu.name = mt.name AND fu.name NOT LIKE '_DBFUS_TEST%' /* filter out test features */ AND Bitand(mt.usg_det_method, 4) != 4 /* filter out disabled features */
  • 14. components behind the scene DBA_FEATURE_USAGE_STATISTICS wri$_dbu_feature_usage wri$_dbu_feature_metadata wri$_dbu_usage_sample
  • 15. components behind the scene DBA_FEATURE_USAGE_STATISTICS wri$_dbu_feature_usage wri$_dbu_feature_metadata wri$_dbu_usage_sample DBMS_FEATURE_USAGEDBMS_FEATURE_USAGE_INTERNALDBMS_FEATURE_*
  • 16. components behind the scene DBA_FEATURE_USAGE_STATISTICS wri$_dbu_feature_usage wri$_dbu_feature_metadata wri$_dbu_usage_sample DBMS_FEATURE_USAGEDBMS_FEATURE_USAGE_INTERNALDBMS_FEATURE_* DBMS_SWRF_REPORT_INTERNAL
  • 17. DBA_FEATURE_USAGE_STATISTICS components behind the scene methods to refresh manually single checks in detail
  • 18. methods to refresh manually alter session set events 'immediate trace name mmon_test level 6'; How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1)
  • 19. methods to refresh manually alter session set events 'immediate trace name mmon_test level 6'; How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1) alter session set "_SWRF_TEST_ACTION"=53; How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1)
  • 20. SWR => Select Workload Repository (Framework?) ADR auto purge alter session set "_swrf_test_action" = 101; Bug 9530322 ADR auto purge does not occur in ASM instance or standby database Split the AWR partitions alter session set "_swrf_test_action" = 72; Manually Purge the Optimizer Statistics & AWR Snaphots to Reduce Space Usage of SYSAUX Tablespace (Doc ID 1965061.1) AWR Snapshot traces snapshot flush trace enable 10 disable 11 MMON action trace enable 28 disable 29 other "_SWRF_TEST_ACTION" values
  • 21. methods to refresh manually alter session set events 'immediate trace name mmon_test level 6'; How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1) alter session set "_SWRF_TEST_ACTION"=53; How to Manually Refresh Dba_feature_usage_statistics (Doc ID 1629485.1) DEMO
  • 22. DBA_FEATURE_USAGE_STATISTICS components behind the scene methods to refresh manually single checks in detail
  • 23. single checks in detail to check, if the feature is installed at all: DBU_INST_ALWAYS_INSTALLED 1 /* no test required */ DBU_INST_OBJECT 2 /* object name in LOGIC */ DBU_INST_TEST 4 /* only test */ wri$_dbu_feature_metadata mt NAME INST_CHK_METHOD INST_CHK_LOGIC USG_DET_METHOD USG_DET_LOGIC *DESCRIPTION
  • 24. single checks in detail to check, if the feature is installed at all: DBU_INST_ALWAYS_INSTALLED 1 /* no test required */ DBU_INST_OBJECT 2 /* object name in LOGIC */ DBU_INST_TEST 4 /* only test */ method to be used to check feature usage:: DBU_DETECT_BY_SQL 1 /* SQL specified in USG_DET_LOGIC */ DBU_DETECT_BY_PROCEDURE 2 /* Procedure -- “ -- */ DBU_DETECT_NULL 4 /* only test for _DBFUS_TEST_SQL_7 */ wri$_dbu_feature_metadata mt NAME INST_CHK_METHOD INST_CHK_LOGIC USG_DET_METHOD USG_DET_LOGIC *DESCRIPTION $ORACLE_HOME/rdbms/admin/catfusrg.sql -> dbmsfus.sql -> prvtfus.plb
  • 25. single checks in detail to check, if the feature is installed at all: DBU_INST_ALWAYS_INSTALLED 1 /* no test required */ DBU_INST_OBJECT 2 /* object name in LOGIC */ DBU_INST_TEST 4 /* only test */ method to be used to check feature usage:: DBU_DETECT_BY_SQL 1 /* SQL specified in USG_DET_LOGIC */ DBU_DETECT_BY_PROCEDURE 2 /* Procedure -- “ -- */ DBU_DETECT_NULL 4 /* only test for _DBFUS_TEST_SQL_7 */ examples: Advanced Replication: select count(*), NULL, NULL from dba_repcat; Zone maps: DBMS_FEATURE_ZMAP Oracle Text: ctxsys.drifeat.dr$feature_track wri$_dbu_feature_metadata mt NAME INST_CHK_METHOD INST_CHK_LOGIC USG_DET_METHOD USG_DET_LOGIC *DESCRIPTION
  • 26. single checks in detail DBMS_FEATURE_* Argument Name Type In/Out Default ------------- ------ ------ ------- IS_USED NUMBER OUT DATA_RATIO NUMBER OUT CLOB_REST CLOB OUT wri$_dbu_feature_metadata mt NAME INST_CHK_METHOD INST_CHK_LOGIC USG_DET_METHOD USG_DET_LOGIC *DESCRIPTION
  • 27. single checks in detail DBMS_FEATURE_* Argument Name Type In/Out Default ------------- ------ ------ ------- IS_USED NUMBER OUT DATA_RATIO NUMBER OUT CLOB_REST CLOB OUT wri$_dbu_feature_metadata mt NAME INST_CHK_METHOD INST_CHK_LOGIC USG_DET_METHOD USG_DET_LOGIC *DESCRIPTION DEMO
  • 29. single checks in detail DEMO
  • 30. single checks in detail create or replace PROCEDURE dbms_feature_goldengate (feature_boolean OUT NUMBER, aux_count OUT NUMBER, feature_info OUT CLOB) …... select decode (count(*), 0, 0, 1) into num_capture from dba_capture where UPPER(purpose) = 'GOLDENGATE CAPTURE'; select decode (count(*), 0, 0, 1) into num_ds_capture from dba_capture where UPPER(purpose) = 'GOLDENGATE CAPTURE' and UPPER(capture_type) = 'DOWNSTREAM'; select decode (count(*), 0, 0, 1) into num_apply from dba_apply where UPPER(purpose) IN ('GOLDENGATE APPLY', 'GOLDENGATE CAPTURE'); select sum(count) into num_dblogreader from GV$GOLDENGATE_CAPABILITIES where name like 'DBLOGREADER'; select sum(count) into num_transient_duplicate from GV$GOLDENGATE_CAPABILITIES where name like 'TRANSIENTDUPLICATE'; select sum(count) into num_trigger_suppression
  • 31. report Database Options/Management Packs Usage Reporting for Oracle Databases 11gR2 and 12c (Doc ID 1317265.1) PRODUCT USAGE Description This section provides an overview of each option/pack that has been used in the database and if they are currently in use. It will also provide information when the product was first used and when it was used last time. FEATURE USAGE DETAILS Description This section provides a detailed report of features used that has triggered the usage of a product. The report is based on the DBA_FEATURE_USAGE_STATISTICS view. The CURRENTLY_USED column of DBA_FEATURE_USAGE_STATISTICS view indicates if the feature in question was used during the last sampling interval by VERSION and DBID SQL> @options_packs_usage_statistics.sql
  • 32. Disclaimer (again) this presentation is ONLY about the features and possibilities of DBA_FEATURE_USAGE_STATISTICS view and supporting packages/procedures NO information about LMS activities NO information about license optimization
  • 34. Wie misst Oracle die Verwendung von Database Features? DOAG 2015 http://berxblog.blogspot.com @martinberx martin.a.berger@gmail.com

Notas do Editor

  1. ? who is Sales / Presales? ? who works for LMS - License Management Services ? ? who ever had a LMS audit
  2. LMS - License Management Services
  3. DBMS_FEATURE_* => procedures DBMS_FEATURE_USAGE => Packages ; not in docu!
  4. DBMS_SWRF_REPORT_INTERNAL PACKAGE * * This package will handle the reporting for AWR. The report main * routine will be called by the dbms_workload_repository.awr_report * function.
  5. initiates MMON to run the test (?) I did not find any other levelthan 6 in MOS
  6. runs in current session! => simple to trace :-) SWR => Select Workload Repository (Framework?) several other Numbers mentioned in MOS: Bug 9530322 ADR auto purge does not occur in ASM instance or standby database 'alter session set "_swrf_test_action" = 101; Manually Purge the Optimizer Statistics & AWR Snaphots to Reduce Space Usage of SYSAUX Tablespace (Doc ID 1965061.1) Split the AWR partitions so that there is more chance of the smaller partition being purged: alter session set "_swrf_test_action" = 72; Troubleshooting: AWR Snapshot Collection Issues (Doc ID 1301503.1) MMON action trace ("28" below) snapshot flush trace ("10" below) To disable the traces again, use the following syntax: alter session set "_swrf_test_action" = 29; alter session set "_swrf_test_action" = 11;
  7. runs in current session! => simple to trace :-) SWR => Select Workload Repository (Framework?) several other Numbers mentioned in MOS: Bug 9530322 ADR auto purge does not occur in ASM instance or standby database 'alter session set "_swrf_test_action" = 101; Manually Purge the Optimizer Statistics & AWR Snaphots to Reduce Space Usage of SYSAUX Tablespace (Doc ID 1965061.1) Split the AWR partitions so that there is more chance of the smaller partition being purged: alter session set "_swrf_test_action" = 72; Troubleshooting: AWR Snapshot Collection Issues (Doc ID 1301503.1) MMON action trace ("28" below) snapshot flush trace ("10" below) To disable the traces again, use the following syntax: alter session set "_swrf_test_action" = 29; alter session set "_swrf_test_action" = 11;
  8. runs in current session! => simple to trace :-)
  9. https://blogs.oracle.com/UPGRADE/entry/new_11_2_0_4
  10. https://blogs.oracle.com/UPGRADE/entry/new_11_2_0_4
  11. create or replace PROCEDURE dbms_feature_goldengate (feature_boolean OUT NUMBER, aux_count OUT NUMBER, feature_info OUT CLOB) select decode (count(*), 0, 0, 1) into num_capture from dba_capture where UPPER(purpose) = 'GOLDENGATE CAPTURE'; select decode (count(*), 0, 0, 1) into num_ds_capture from dba_capture where UPPER(purpose) = 'GOLDENGATE CAPTURE' and UPPER(capture_type) = 'DOWNSTREAM'; select decode (count(*), 0, 0, 1) into num_apply from dba_apply where UPPER(purpose) IN ('GOLDENGATE APPLY', 'GOLDENGATE CAPTURE'); select sum(count) into num_dblogreader from GV$GOLDENGATE_CAPABILITIES where name like 'DBLOGREADER'; select sum(count) into num_transient_duplicate from GV$GOLDENGATE_CAPABILITIES where name like 'TRANSIENTDUPLICATE'; select sum(count) into num_trigger_suppression from GV$GOLDENGATE_CAPABILITIES where name like 'TRIGGERSUPPRESSION'; select sum(count) into num_ggsddltrigopt from GV$GOLDENGATE_CAPABILITIES where name like 'DDLTRIGGEROPTIMIZATION'; select sum(count) into num_dbencryption from GV$GOLDENGATE_CAPABILITIES where name like 'DBENCRYPTION'; select sum(count) into num_ggsession from GV$GOLDENGATE_CAPABILITIES where name like 'GGSESSION'; select sum(count) into num_delcascadehint from GV$GOLDENGATE_CAPABILITIES where name like 'DELETECASCADEHINT'; select sum(count) into num_suplog from GV$GOLDENGATE_CAPABILITIES where name like 'SUPPLEMENTALLOG'; total_feature_usage := num_capture + num_apply + num_dblogreader + num_transient_duplicate + num_ggsddltrigopt + num_trigger_suppression + num_dbencryption + num_ggsession + num_delcascadehint + num_suplog;
  12. LMS - License Management Services