Posts

Showing posts from October, 2024

Average Active Sessions (AAS)

Image
  Top 10 queries from v$active_session_history select * from ( select SQL_ID , sum(decode(session_state,'ON CPU',1,0)) as CPU, sum(decode(session_state,'WAITING',1,0)) - sum(decode(session_state,'WAITING', decode(wait_class, 'User I/O',1,0),0)) as WAIT, sum(decode(session_state,'WAITING', decode(wait_class, 'User I/O',1,0),0)) as IO, sum(decode(session_state,'ON CPU',1,1)) as TOTAL from v$active_session_history where SQL_ID is not NULL group by sql_id order by sum(decode(session_state,'ON CPU',1,1)) desc ) where rownum <11 This query return top queries by resources consumed, you can easily return the top I/O, WAITS or CPU queries by changing the order by clause. -- Active Sessions (in ASH) including BACKGROUND processes in Last 1 Hour. SET LINESIZE 200 SET PAGESIZE 200 COLUMN sample_time FORMAT a19 COLUMN stat_name FORMAT a15 ALTER SESSION SET nls_date_format = 'yyyy-mm-dd hh24:mi:ss'...

GG practice

Software links for downlad

 Sql Softwares Link https://drive.google.com/drive/folders/1essEiNdXP5XHI408t3Otjy5n2SwiWdfO?usp=sharing Windows Server Software Link https://drive.google.com/drive/folders/18eTgIdJkRX2wIoDBBGJcC3VARgGjW4w8?usp=sharing Oracle Virtual Box(Select Windows Hosts once you open the below link) https://www.virtualbox.org/wiki/Downloads Sql Server 2017 https://drive.google.com/file/d/1PIjG--Avx-OQslrGfkluGoFpRs7mz6bp/view?usp=sharing Sql Server 2019 https://drive.google.com/file/d/1Eq6BDPj9l5dM0zLL7HNzwttZLuSHQVrV/view?usp=sharing SSMS Download https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15 SSMS ISO https://drive.google.com/file/d/1bxvqcbdt-hY_J5unT1FGKbZCRQXvG7dD/view?usp=sharing

My Vm servers

  Servers configured  on lab server. Cluster Name Node Names Vip Private Ip Public Ip Scan IP Scan Name 21c RAC 21c rac01,21crac02 192.168,56,170 192.168.56.105 clu-po-atl-scan 192.168,56,170 192.168.56.106 192.168.56.107 Cluster Name Node Names Vip Private Ip Public Ip Scan IP Scan Name 12c RAC 12c rac01,12crac02 10.10.10.110 192.168.56.150 192.168.56.154 prod-scan 10.10.10.120 192.168.56.151 192.168.56.155 192.168.56.156