SQL monitoring

We can use to check current executing SQL's.

RAC / Cloud RDS:

select inst_id,status,round(elapsed_time/1000000,2) as duration_secs,sql_id,sql_plan_hash_value,username,

px_maxdop as degree_of_parallelism, px_maxdop_instances as instances_used,

px_is_cross_instance as cross_instance,user_io_wait_time,cluster_wait_time,

concurrency_wait_time,round(cpu_time/1000000,2),queuing_time,PHYSICAL_READ_REQUESTS,

PHYSICAL_READ_BYTES,PHYSICAL_WRITE_REQUESTS,PHYSICAL_WRITE_BYTES,

to_char(SQL_EXEC_START,'HH24:MI:SS'),to_char(LAST_REFRESH_TIME,'HH24:MI:SS'),sql_text from gv$sql_monitor where status='EXECUTING';


NON-RAC / Cloud RDS:

select inst_id,status,round(elapsed_time/1000000,2) as duration_secs,sql_id,sql_plan_hash_value,username,

px_maxdop as degree_of_parallelism, px_maxdop_instances as instances_used,

px_is_cross_instance as cross_instance,user_io_wait_time,cluster_wait_time,

concurrency_wait_time,round(cpu_time/1000000,2),queuing_time,PHYSICAL_READ_REQUESTS,

PHYSICAL_READ_BYTES,PHYSICAL_WRITE_REQUESTS,PHYSICAL_WRITE_BYTES,

to_char(SQL_EXEC_START,'HH24:MI:SS'),to_char(LAST_REFRESH_TIME,'HH24:MI:SS'),sql_text from gv$sql_monitor where status='EXECUTING';

Comments

Popular Posts

AWR Report Analysis

Goldengate 19c Installation with issue resolution

Oracle 11g Physical Standy Setup

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

OEM patches & vulnerabilities