Tracking Database Feature Usage (DBA_FEATURE_USAGE_STATISTICS)
Identify which database options you are using to see if you comply with your Oracle licensing.
oracle miscconfigurationintermediate
by OracleDba
48 views
Identify which database options you are using to see if you comply with your Oracle licensing.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
SQL> desc dba_feature_usage_statistics
Name Null? Type
----------------------------------------------------- -------- ------------------------------------
DBID NOT NULL NUMBER
NAME NOT NULL VARCHAR2(64)
VERSION NOT NULL VARCHAR2(17)
DETECTED_USAGES NOT NULL NUMBER
TOTAL_SAMPLES NOT NULL NUMBER
CURRENTLY_USED VARCHAR2(5)
FIRST_USAGE_DATE DATE
LAST_USAGE_DATE DATE
AUX_COUNT NUMBER
FEATURE_INFO CLOB
LAST_SAMPLE_DATE DATE
LAST_SAMPLE_PERIOD NUMBER
SAMPLE_INTERVAL NUMBER
DESCRIPTION VARCHAR2(128)
SQL>
column name format a60
column detected_usages format 999999999999
select u1.name,
u1.detected_usages,
u1.currently_used,
u1.version
from dba_feature_usage_statistics u1
where u1.version = (select max(u2.version)
from dba_feature_usage_statistics u2
where u2.name = u1.name)
and u1.detected_usages > 0
and u1.dbid = (select dbid from v$database)
order by name;
NAME DETECTED_USAGES CURRE VERSION
------------------------------------------------------------ --------------- ----- -----------------
Adaptive Plans 1 TRUE 12.1.0.2.0
Automatic Maintenance - Optimizer Statistics Gathering 1 TRUE 12.1.0.2.0
Automatic Maintenance - SQL Tuning Advisor 1 TRUE 12.1.0.2.0
Automatic Maintenance - Space Advisor 1 TRUE 12.1.0.2.0
Automatic Reoptimization 1 TRUE 12.1.0.2.0
Automatic SGA Tuning 1 TRUE 12.1.0.2.0
Automatic SQL Execution Memory 1 TRUE 12.1.0.2.0
Automatic Segment Space Management (system) 1 TRUE 12.1.0.2.0
Automatic Undo Management 1 TRUE 12.1.0.2.0
Backup Rollforward 1 TRUE 12.1.0.2.0
Backup and Restore of plugged database 1 TRUE 12.1.0.2.0
NAME DETECTED_USAGES CURRE VERSION
------------------------------------------------------------ --------------- ----- -----------------
Character Set 1 TRUE 12.1.0.2.0
Deferred Segment Creation 1 TRUE 12.1.0.2.0
Flashback Database 1 TRUE 12.1.0.2.0
Job Scheduler 1 TRUE 12.1.0.2.0
LOB 1 TRUE 12.1.0.2.0
Locally Managed Tablespaces (system) 1 TRUE 12.1.0.2.0
Locally Managed Tablespaces (user) 1 TRUE 12.1.0.2.0
Logfile Multiplexing 1 TRUE 12.1.0.2.0
Oracle Java Virtual Machine (system) 1 TRUE 12.1.0.2.0
Oracle Managed Files 1 TRUE 12.1.0.2.0
Oracle Multitenant 2 TRUE 12.1.0.1.0
NAME DETECTED_USAGES CURRE VERSION
------------------------------------------------------------ --------------- ----- -----------------
Oracle Pluggable Databases 1 TRUE 12.1.0.2.0
Parallel SQL Query Execution 1 TRUE 12.1.0.2.0
Partitioning (system) 1 TRUE 12.1.0.2.0
Recovery Area 1 TRUE 12.1.0.2.0
Result Cache 1 TRUE 12.1.0.2.0
SQL Plan Directive 1 TRUE 12.1.0.2.0
SecureFiles (system) 1 TRUE 12.1.0.2.0
SecureFiles (user) 1 TRUE 12.1.0.2.0
Server Parameter File 1 TRUE 12.1.0.2.0
Traditional Audit 1 TRUE 12.1.0.2.0
Unified Audit 1 TRUE 12.1.0.2.0
33 rows selected.
SQL>12345
SQL> exec dbms_feature_usage_internal.exec_db_usage_sampling(sysdate);
PL/SQL procedure successfully completed.
SQL>Please to add comments
No comments yet. Be the first to comment!