OEM queries


col target_name for a60
col metric_name for a20
col metric_column for a20
col value for a20
set lines 300

select target_name,metric_name,metric_column,value from sysman.mgmt$metric_current where metric_label='Database Size' and metric_column='ALLOCATED_GB';


Database Options/Management Packs Usage Reporting for Oracle Databases 11.2 and later (Doc ID 1317265.1)

./emcli get_on_demand_metrics -target_type=oracle_database -target_name=<target_name>
  
./emcli modify_collection_schedule -targetType="oracle_database" -targetNames="<target_name>" -collectionName="ME\$database_size" -freqType="Minute" -freqValue=5 -preview="N"
  
./emcli modify_collection_schedule -targetType="oracle_database" -targetNames="<target_name>" -collectionName="ha_backup_last" -collectionStatus=Disabled -preview="N"
  
./emcli get_targets -target='oracle_database' | awk '{print $4}'
  
  metric_extension:
  
col column_label for a20
col key_value for a20
  col value for a20
  set lines 300
  set pages 500
  
  select column_label,key_value,value from sysman.mgmt$metric_current where metric_label='advance_compression';
  
  select key_value,LISTAGG(value, ',') within group ( order by value ) as options from sysman.mgmt$metric_current where metric_label='advance_compression' group by key_value;</target_name></target_name></target_name>

Comments

Popular Posts

AWR Report Analysis

Goldengate 19c Installation with issue resolution

Oracle 12c 2-node RAC setup in VMware Player 15 -- Part01

Oracle to Postgres

Execution_Explain Plan

Active Session History Analysis

General Queries

Fragmentation & Re-organisation

Postgresql installation offline using NGINX

OEM patches & vulnerabilities