Oracle Dynamic Performance Views 12c


































Library Note
The Library is currently in the process of being upgraded from Oracle Database Version 11.2.0.3 to 12.1.0.1. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.
Data Dictionary Objects
CDB_FILE$DBA_PDBSPDB_PLUG_IN_VIOLATION$
CDB_LOCAL_ADMINAUTH$DBA_PDB_HISTORYPDB_PLUG_IN_VIOLATIONS VIEW
CDB_RESOURCE_PLAN$DBMS_PDBPDB_SPFILE$
CDB_RESOURCE_PLAN_DIRECTIVE$DBMS_PDB_EXEC_SQLV$CONTAINERS
CDB_SERVICE$GV$CONTAINERSV$PDBS
CDB_HIST_PDB_INSTANCEGV$PDBSV$PDB_INCARNATION
CDB_PDBSGV_$PDB_INCARNATIONWRI$_ADV_ADDM_PDBS
CDB_PDB_HISTORYPDB$SEEDWRM$_PDB_INSTANCE
CDB$VIEWPDB_HISTORY$XDB$CDBPORTS
DBA_HIST_PDB_INSTANCE














Oracle Dynamic Performance Views
Version 12.1.0.1

General Information
Library Note
The Library is currently in the process of being upgraded from Oracle Database Version 11.2.0.3 to 12.1.0.1. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.
Note: V$ view are views based on X$ arrays. The GV$ views are Global V$ views that have, as their first column, the instance identifier (INST_ID). You should always use GV$ rather than V$ where-ever possible.
Categories
Query to identify V$ views not duplicated as GV$ viewsset linesize 121

SELECT object_name
FROM dba_objects_ae
WHERE object_name LIKE 'V%$%'
AND object_type = 'VIEW'
MINUS
SELECT SUBSTR(object_name, 2)
FROM dba_objects_ae
WHERE object_name LIKE 'GV%$%'
AND object_type = 'VIEW'
ORDER BY 1;
Advanced Queuing
gv$aqgv$buffered_publishers
gv$aq1gv$buffered_queues
gv$aq_background_coordinator gv$buffered_subscribers
gv$aq_bmap_nondur_subscribers gv$persistent_publishers
gv$aq_cross_instance_jobs gv$persistent_qmn_cache
gv$aq_job_coordinator gv$persistent_queues
gv$aq_message_cache gv$persistent_subscribers
gv$aq_msgbm gv$qmon_coordinator_stats
gv$aq_nondur_registrations gv$qmon_server_stats
gv$aq_nondur_subscriber gv$qmon_tasks
gv$aq_nondur_subscriber_lwm gv$qmon_task_stats
gv$aq_notification_clients gv$queue
gv$aq_server_pool gv$queueing_mth
gv$aq_subscriber_load 
Advisors
gv$advisor_current_sqlplangv$pga_target_advice
gv$advisor_progressgv$pga_target_advice_histogram
gv$java_pool_advicegv$px_buffer_advice
gv$mttr_target_advice
Archive Logging
gv$archivegv$archive_processes
gv$archived_loggv$proxy_archivedlog
gv$archive_destv$proxy_archivelog_details
gv$archive_dest_statusv$proxy_archivelog_summary
gv$archive_gap
ASH
gv$active_session_historygv$max_active_sess_target_mth
gv$ash_info
ASM
gv$asm_acfsrepl gv$asm_audit_clean_events 
gv$asm_acfsrepltag gv$asm_audit_config_params 
gv$asm_acfssnapshotsgv$asm_audit_last_arch_ts 
gv$asm_acfstag gv$asm_client
gv$asm_acfsvolumesgv$asm_disk
gv$asm_acfs_encryption_infogv$asm_diskgroup
gv$asm_acfs_security_infogv$asm_diskgroup_stat
gv$asm_acfs_sec_admin gv$asm_disk_iostat
gv$asm_acfs_sec_cmdrule gv$asm_disk_stat
gv$asm_acfs_sec_realm gv$asm_estimate 
gv$asm_acfs_sec_realm_filter gv$asm_files
gv$asm_acfs_sec_realm_group gv$asm_filesystem
gv$asm_acfs_sec_realm_user gv$asm_operation
gv$asm_acfs_sec_rule gv$asm_template
gv$asm_acfs_sec_ruleset gv$asm_user
gv$asm_acfs_sec_ruleset_rule gv$asm_usergroup
gv$asm_aliasgv$asm_usergroup_member
gv$asm_attributegv$asm_volume
gv$asm_audit_cleanup_jobs gv$asm_volume_stat
Backup and Recovery (RMAN)
gv$backupgv$db_transportable_platform
v$backup_archivelog_detailsgv$deleted_object
v$backup_archivelog_summarygv$fast_start_servers
gv$backup_async_iogv$fast_start_transactions
v$backup_controlfile_detailsgv$database_block_corruption
v$backup_controlfile_summarygv$instance_recovery
v$backup_copy_detailsv$proxy_copy_details
v$backup_copy_summaryv$proxy_copy_summary
gv$backup_corruptiongv$proxy_datafile
gv$backup_datafilev$recovery_area_usage
v$backup_datafile_detailsgv$recover_file
v$backup_datafile_summaryv$recovery_file_dest
gv$backup_devicegv$recovery_file_status
v$backup_filesgv$recovery_log
gv$backup_nonlogged gv$recovery_progress
gv$backup_piecegv$recovery_status
v$backup_piece_detailsv$restore_range
gv$backup_redologv$rman_backup_job_details
gv$backup_setv$rman_backup_subjob_details
v$backup_set_detailsv$rman_backup_type
v$backup_set_summarygv$rman_compression_algorithm
gv$backup_spfilegv$rman_configuration
v$backup_spfile_detailsv$rman_encryption_algorithms
v$backup_spfile_summarygv$rman_output
gv$backup_sync_iogv$tsm_sessions
gv$copy_corruptionv$rman_status
gv$copy_nonlogged v$sbt_restore_range 
gv$datafile_copyv$unusable_backupfile_details
Buffers
gv$bhgv$buffer_pool_statistics
gv$buffer_pool
Caches
bsp = block server background process
gv$bspgv$library_cache_memory
gv$cachegv$map_comp_list
v$cache_lockgv$map_element
v$cache_transfergv$map_ext_element
gv$class_pinggv$map_file
gv$class_cache_transfergv$map_file_extent
gv$cr_block_servergv$map_file_io_stack
gv$current_block_servergv$map_library
gv$db_cache_advicegv$map_subelement
gv$db_object_cachegv$propagation_receiver
gv$gcshvmaster_infogv$propagation_sender
gv$gcspfmaster_infogv$rowcache
gv$hvmaster_infogv$rowcache_parent
gv$instance_cache_transfergv$rowcache_subordinate
gv$java_library_cache_memorygv$subcache
gv$javapoolgv$temp_ping
gv$librarycache
Connection Pool
gv$cpool_cc_infogv$cpool_conn_info
gv$cpool_cc_statsgv$cpool_stats
Container Database
gv$aq_cross_instance_jobs gv$con_system_wait_class 
gv$containers gv$con_sys_time_model 
gv$con_sysstat v$pdbs 
gv$con_system_event v$pdb_incarnation 
Control Files
gv$controlfilegv$controlfile_record_section
Cursors and SQL Statements
gv$object_dependencygv$sql_join_filter
gv$open_cursorgv$sql_monitor
gv$sqlgv$sql_plan
gv$sqlareagv$sql_plan_monitor
gv$sqlarea_plan_hashgv$sql_plan_statistics
gv$sqlstatsgv$sql_plan_statistics_all
gv$sqlstats_plan_hashgv$sql_redirection
gv$sqltextgv$sql_shared_cursor
gv$sqltext_with_newlinesgv$sql_shared_memory
gv$sql_bind_capturegv$sql_workarea
gv$sql_bind_datagv$sql_workarea_active
gv$sql_bind_metadatagv$sql_workarea_histogram
gv$sql_cursor
Data Guard & Standby Databases
gv$dataguard_configgv$logstdby_progress
gv$dataguard_statsgv$logstdby_state
v$dataguard_statusgv$logstdby_stats
gv$dg_broker_config gv$logstdby_transaction
gv$foreign_archived_loggv$managed_standby
gv$fs_failover_histogramgv$rfs_thread
gv$fs_failover_statsgv$standby_log
gv$logstdbyv$standby_event_histogram
gv$logstdby_process
Database Links & Heterogeneous Services
gv$dblinkgv$hs_parameter
gv$hs_agentgv$hs_session
Data Pump
gv$datapump_jobgv$datapump_session
Diagnostics
v$diag_adr_controlv$diag_vhm_run
v$diag_adr_invalidationv$diag_view
v$diag_alert_ext (source is x$dbgalertext)v$diag_viewcol
v$diag_ams_xactionv$diag_vincident
v$diag_critical_errorv$diag_vincident_file
v$diag_dde_user_actionv$diag_vinc_meter_info
v$diag_dde_user_action_defv$diag_vips_file_copy_log
v$diag_dde_usr_act_paramv$diag_vips_file_metadata
v$diag_dde_usr_act_param_defv$diag_vips_package_file
v$diag_dde_usr_inc_act_mapv$diag_vips_package_history
v$diag_dde_usr_inc_typev$diag_vips_package_main_int
v$diag_dfw_config_capturev$diag_vips_package_size
v$diag_dfw_config_itemv$diag_vips_pkg_file
v$diag_diagv_incidentv$diag_vips_pkg_inc_cand
v$diag_dir_extv$diag_vips_pkg_inc_dtl
v$diag_em_diag_jobv$diag_vips_pkg_inc_dtl1
v$diag_em_target_infov$diag_vips_pkg_main_problem
v$diag_em_user_activityv$diag_vnot_exist_incident
v$diag_incckeyv$diag_vproblem
v$diag_incidentv$diag_vproblem1
v$diag_incident_filev$diag_vproblem2
v$diag_inc_meter_configv$diag_vproblem_bucket
v$diag_inc_meter_impt_defv$diag_vproblem_bucket1
v$diag_inc_meter_infov$diag_vproblem_bucket_count
v$diag_inc_meter_pk_imptsv$diag_vproblem_int
v$diag_inc_meter_summaryv$diag_vproblem_lastinc
gv$diag_infov$diag_vshowcatview
v$diag_ips_configurationv$diag_vshowincb
v$diag_ips_file_copy_logv$diag_vshowincb_i
v$diag_ips_file_metadatav$diag_vtest_exists
v$diag_ips_packagev$diag_v_actinc
v$diag_ips_package_filev$diag_v_actprob
v$diag_ips_package_historyv$diag_v_inccount
v$diag_ips_package_incidentv$diag_v_incfcount
v$diag_ips_pkg_unpack_histv$diag_v_inc_meter_info_prob
v$diag_ips_progress_logv$diag_v_ipsprbcnt
v$diag_ips_remote_packagev$diag_v_ipsprbcnt1
v$diag_pickleerrv$diag_v_nfcinc
v$diag_problemv$diag_v_swperrcount
v$diag_relmd_extgv$incmeter_config
v$diag_sweeperrgv$incmeter_info
v$diag_vem_user_actloggv$incmeter_summary
v$diag_vem_user_actlog1
Direct Loader
gv$loadistatgv$loadpstat
Direct NFS
gv$dnfs_channelsgv$nfs_clients
gv$dnfs_filesgv$nfs_locks
gv$dnfs_serversgv$nfs_open_files
gv$dnfs_stats
Exadata
gv$cellgv$cell_request_totals
gv$cell_configgv$cell_state
gv$cell_ofl_thread_history gv$cell_thread_history
Features and Feature Usage
gv$sql_featuregv$sql_feature_dependencygv$sql_feature_hierarchy
Fixed Views
v$fixed_tablev$transportable_platform
v$fixed_view_definitionv$version
v$indexed_fixed_column
SELECT * FROM v$version;

BANNER                                                                       CON_ID
---------------------------------------------------------------------------- ------
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production      0
PL/SQL Release 12.1.0.1.0 - Production                                            0
CORE 12.1.0.1.0 Production                                                        0
TNS for 64-bit Windows: Version 12.1.0.1.0 - Production                           0
NLSRTL Version 12.1.0.1.0 - Production                                            0
Flashback Database
gv$flashback_database_logv$recovery_area_usage
gv$flashback_database_logfilev$flashback_txn_graph
gv$flashback_database_statv$flashback_txn_mods
gv$restore_point
Flashback Recovery Area
v$flash_recovery_area_usagev$recovery_area_usage
Flashback Transaction
v$flashback_txn_graphv$flashback_txn_mods
GoldenGate
gv$gg_apply_coordinator gv$goldengate_capabilities 
gv$gg_apply_reader gv$goldengate_capture
gv$gg_apply_receiver gv$goldengate_message_tracking
gv$gg_apply_server v$goldengate_table_stats
Hang Detection
v$hang_infogv$hang_statistics
v$hang_session_info
Health Management
v$diag_hm_fdg_setgv$hm_info
v$diag_hm_finding gv$hm_recommendation
v$diag_hm_info gv$hm_run
v$diag_hm_messagegv$ir_failure
v$diag_hm_recommendation gv$ir_failure_set
v$diag_hm_run gv$ir_manual_checklist
gv$hm_checkgv$ir_repair
gv$hm_check_paramgv$session_fix_control
gv$hm_findinggv$system_fix_control
I/O
gv$file_histogramgv$iofuncmetric_history
gv$file_optimized_histogramgv$iostat_consumer_group
gv$filemetricgv$iostat_file
gv$filemetric_historygv$iostat_function
gv$filestatgv$iostat_function_detail
gv$tempstatgv$iostat_network
gv$iofuncmetricgv$io_calibration_status
CREATE TABLE avg_read_write
(inst_id, avg_read_time, avg_write_time) AS
SELECT inst_id, AVG(average_read_time), AVG(average_write_time)
FROM gv$filemetric_history
WHERE 0=1
GROUP BY inst_id;

CREATE OR REPLACE PROCEDURE file_io_metrics AUTHID DEFINER IS
BEGIN
  INSERT INTO avg_read_write
  (inst_id, avg_read_time, avg_write_time)
  SELECT inst_id, AVG(average_read_time), AVG(average_write_time)
  FROM gv$filemetric_history
  WHERE average_read_time IS NOT NULL
  AND average_write_time IS NOT NULL
  GROUP BY inst_id
  ORDER BY 1;

  COMMIT;
END file_io_metrics;
/

exec file_io_metrics

-- sample output
INST_ID    AVG(AVERAGE_READ_TIME) AVG(AVERAGE_WRITE_TIME)
---------- ---------------------- -----------------------
         5             .844172725              .027063522
         6             .542269401              .029147572
         7             .846074066              .186608746
         8            1.102195470              .071913735
         9             .519971963              .029391265
        10             .586967514              .071486951
Instance
gv$active_instancesgv$instance
Keywords
Reserved Words

Warning: This is an incomplete list of reserved words.
desc gv$reserved_words

set linesize 121
set pagesize 0

SELECT keyword
FROM gv$reserved_words
ORDER BY 1;
Latches & Locks
gv$dlm_all_locksgv$latchname
gv$dlm_convert_localgv$latch_children
gv$dlm_convert_remotegv$latch_misses
gv$dlm_latchgv$latch_parent
gv$dlm_locksgv$libcache_locks
gv$dlm_miscgv$lock
gv$dlm_ressgv$locked_object
gv$dlm_traffic_controllergv$locks_with_collisions
gv$enqueue_lockgv$lock_activity
gv$enqueue_statgv$lock_element
gv$enqueue_statisticsgv$lock_type
gv$event_namegv$mutex_sleep
gv$file_pinggv$mutex_sleep_history
gv$ges_blocking_enqueuegv$process
gv$ges_enqueuegv$resource
gv$global_blocked_locksgv$resource_limit
gv$latchgv$transaction_enqueue
gv$latchholdergv_$_lock
Log Miner
gv$logmnr_contentsgv$logmnr_parameters
gv$logmnr_dictionarygv$logmnr_process
gv$logmnr_dictionary_loadgv$logmnr_session
gv$logmnr_latchgv$logmnr_stats
gv$logmnr_logfilegv$logmnr_transaction
gv$logmnr_logs
Materialized View Replication
gv$mvrefreshgv$replqueue
gv$replprop
Memory Utilization
gv$memory_current_resize_opsgv$sgastat
gv$memory_dynamic_componentsgv$sga_current_resize_ops
gv$memory_resize_opsgv$sga_dynamic_components
gv$memory_target_advicegv$sga_dynamic_free_memory
gv$pgastatgv$sga_resize_ops
gv$process_memorygv$sga_target_advice
gv$sgagv$shared_pool_advice
gv$sgainfogv$shared_pool_reserved
Metrics
gv$alert_typesgv$metric_history
gv$eventmetricgv$sqlpa_metric
gv$event_histogramgv$sysmetric
gv$metricgv$sysmetric_history
gv$metricgroupgv$sysmetric_summary
gv$metricnamegv$threshold_types
Miscellaneous
gv$bgprocessgv$resumable
gv$blocking_quiescegv$securefile_timer
gv$calltaggv$scheduler_running_jobs
gv$contextv$sqlcommand
gv$corrupt_xid_listgv$sqlfn_arg_metadata
gv$databasegv$sqlfn_metadata
gv$db_pipesgv$segspace_usage
v$disk_restore_range gv$sql_cs_histogram
v$editionable_types  gv$sql_cs_selectivity
gv$emongv$sql_cs_statistics
v_$kccdi gv$sscr_sessions
v_$kccfe gv$subscr_registration_stats
v_$kxftask gv$sysaux_occupants
gv$licensegv$timer
gv$listener_networkgv$timezone_file
gv$object_dml_frequenciesgv$timezone_names
v$object_usage (deprecated in 12cR1)gv$toplevelcall
gv$optiongv$type_size
v$patches v$unified_audit_record_format 
gv$policy_history
SELECT *
FROM gv$type_size
ORDER BY 3;
OLAP
gv$aw_aggregate_opgv$aw_longops
gv$aw_allocate_opgv$aw_olap
gv$aw_calcgv$aw_session_info
Optimizer
gv$ses_optimizer_envgv$sql_reoptimization_hints 
gv$sql_hintgv$sys_optimizer_env
gv$sql_optimizer_env
Parallel Query
gv$executiongv$px_instance_group
gv$parallel_degree_limit_mthgv$px_process
gv$pq_sesstatgv$px_process_sysstat
gv$pq_slavegv$px_process_trace 
gv$pq_sysstatgv$px_session
gv$pq_tqstatgv$px_sesstat
gv$px_buffer_advice
Parameters
Session specific information for connected sessions.

This query shows the values that are non-default and deprecated. These will most likely trigger a warning message during startup.
gv$nls_parametersgv$parameter_valid_values
gv$nls_valid_valuesgv$spparameter
gv$obsolete_parametergv$system_parameter
gv$parametergv$system_parameter2
gv$parameter2
desc gv$parameter

set linesize 121
set pagesize 25
col name format a35
col value format a70

SELECT name, value
FROM gv$parameter
WHERE isdefault = 'FALSE'
AND isdeprecated = 'TRUE'
ORDER BY 1;
Processes
gv$process_groupgv$process_memory_detail_prog
gv$process_memory_detail
Real Application Clusters (RAC)
gv$active_instancesgv$gc_element
gv$cluster_interconnectsgv$gc_elements_with_collisions
gv$configured_interconnectsgv$instance_cache_transfer
gv$dynamic_remaster_statsgv$temp_cache_transfer
gv$file_cache_transfer
Redo Logs
gv$instance_log_groupgv$log_history
gv$loggv$redo_dest_resp_histogram
gv$logfilev$rollname
gv$loghistgv$thread
Resource Usage
Resource limits and resource utilization
gv$accessgv$rsrc_cons_group_history
gv$iostat_consumer_groupgv$rsrc_plan
gv$rsrcmgrmetricgv$rsrc_plan_cpu_mth
gv$rsrcmgrmetric_historygv$rsrc_plan_history
gv$rsrc_consumer_groupgv$rsrc_session_info
gv$rsrc_consumer_group_cpu_mth
desc gv$resource_limit

SELECT * FROM gv$resource_limit;
Result Cache
gv$client_result_cache_statsgv$result_cache_objects
gv$result_cache_dependencygv$result_cache_statistics
gv$result_cache_memory
Rollback Segments / Undo Segments
v$rollnamegv$undostat
gv$rollstat
Rules
gv$rulegv$rule_set_aggregate_stats
gv$rule_set
Security and Privileges
gv$contextv$object_privilege
gv$enabledprivsgv$pwfile_users
gv$encrypted_tablespacesgv$vpd_policy
gv$encryption_keys gv$wallet
gv$encryption_walletgv$xml_audit_trail
gv$globalcontext
Services
gv$active_servicesgv$service_event
gv$servicemetricgv$service_stats
gv$servicemetric_historygv$services
Sessions
Session specific information for connected sessions
gv$active_session_historygv$session_cursor_cache
gv$active_sess_pool_mthgv$session_event
gv$client_statsgv$session_longops
gv$mystatgv$session_object_cache
gv$sess_iogv$session_wait
gv$sess_time_modelgv$session_wait_class
gv$sessiongv$session_wait_history
gv$session_blockersgv$sessmetric
gv$session_connect_infogv$sesstat
desc gv$session

col username format a10
col schemaname format a10
col osuser format a25
col machine format a20
col service_name format a25
col program format a25
col terminal format a10

-- audsid: audit SID
SELECT sid, audsid, username, status, server, schemaname, osuser, type, service_name
FROM gv$session;

SELECT username, command, machine, terminal, program, state
FROM gv$session;
Shared Servers (formerly MTS)
gv$circuitgv$max_active_sess_target_mth
gv$dispatchergv$reqdist
gv$dispatcher_configgv$shared_server
gv$dispatcher_rategv$shared_server_monitor
Storage
gv$datafilegv$nfs_locks
gv$datafile_headergv$nfs_open_files
gv$dbfilegv$offline_range
gv$filespace_usagegv$tablespace
gv$lobstatgv$temporary_lobs
gv$nfs_clients
Streams
gv$streams_apply_coordinatorgv$streams_message_tracking
gv$streams_apply_readergv$streams_pool_advice
gv$streams_apply_servergv$streams_pool_statistics
gv$streams_capturegv$streams_transaction
System Statistics
gv$global_transactiongv$statistics_level
gv$osstatgv$statname
gv$segment_statisticsgv$sysstat
gv$segstatgv$system_cursor_cache
gv$segstat_namegv$system_event
gv$serv_mod_act_statsgv$sys_time_model
gv$sort_usagegv$transaction
Temp Space
gv$sort_segmentgv$tempfile
gv$temp_extent_mapgv$tempseg_usage
gv$temp_extent_poolgv$tempstat
gv$temp_space_header
Waits
gv$service_wait_classgv$system_wait_class
gv$session_blockersgv$waitclassmetric
gv$session_waitgv$waitclassmetric_history
gv$session_wait_classgv$waitstat
gv$session_wait_historyv$wait_chains
Workload Management
gv$wlm_pcmetric_historygv$wlm_pcmetric
gv$wlm_pc_stats
Workload Replay
gv$wlm_pcmetric_historygv$wlm_pcmetric
gv$wlm_pc_statsgv$workload_replay_thread
XStreams
Heterogeneous Streams
gv$xstream_apply_coordinator gv$xstream_message_tracking
v$xstream_apply_reader gv$xstream_outbound_server
v$xstream_apply_receiver v$xstream_table_stats
v$xstream_apply_server gv$xstream_transaction
gv$xstream_capture

Comments