Important views and terminologies in performance Tuning


IMPORTANT VIEWS:
v$sql         
v$sql show the statistics on the shared sql area. Long running sql queries will update every 5-seconds in this view. It is ease to find the impact of the long running program.
v$sql_plan
It contains the execution plan information for each child cursor loader in library cache.
v$session
v$session show the session information for each current session.
v$process
It will show the currently active process.
v$session_wait
It will display the current/Last wait for each session
v$system_event
It will show the total wait event
dba_hist_sqltext
It will show the text of the sql statements this view capture the information from v$sql.
dba_hist_sql_plan
It will show the execution plan information this view capture the information from v$sql_plan.
V$SESSION:
Hash_Value:
Every SQL statement is generating unique value in library cache.
Example same SQL query running again Oracle find the hash value in library cache and executing same execution plan.
It retrieves the data from fast.
Plan Hash value:
Numerical representation of the SQL plan.
Comparing one plan hash value to another plan easily identifies whether two plans are same or not.
SQL_ID:
SQL Identified of the statement that is currently being executed.
SID:
SID is session identified. It’s used to unique identifier of database.
SERIAL#
Session serial number used to unique identifier of session objects.
Username:
Oracle OS Username
Status:
It will show the Status of the session
Active – Currently executing sql session
INACTIVE – session inactive
Killed – Session to be killed
Logon_Time:
When session is logon
Last_call_ET
It will show how much time in the session
Client_Identifier
It will show client identifier ex: client name/SSO id
Blocking_session:
It will show any blocking of the session 

V$SQL
Sql_txt:
This column will show the first 1000 characters of the sql statement
 Sql_fulltext:
It will show the complete sql statement text.
Sql_profile:
It will show the name of the sql profile
First_load_time:
When hard parse happened in first time
Last_load_time:
When hard parse happened in last time
Program_id
ID of the pl/sql program

V$process
Username:
It will show the OS username EX ($TWO_TASK)
Background:
1For the background process NULL for the normal process.
PGA_Used_mem:
PGA memory currently used by the process.
PGA_ALLOC_MEM:
PGA memory currently allocated by the process.
PGA_MAX_MEM:
Maximum PGA memory ever allocated by the processer.

dba_hist_sqltext
DBID:
It is the database id
SQL_ID
SQL Identified of the statement that is currently being executed
Command_Type
Oracle command type definition.

Comments

Popular posts from this blog

How to troubleshoot long running concurrent request in R12.2

How to run Gather Schema Statistics in R12.2

How to compile forms in R12.2