Script to find PGA memory allocation to BG processes
********************************************* PGA Memory allocation to background process ********************************************* SELECT spid, program, pga_max_mem max, pga_alloc_mem alloc,...
View ArticleScript to find memory usage by BG processes
************************************** Memory usage for backgroung processes ************************************** SELECT p.program, p.spid, pm.category, pm.allocated, pm.used, pm.max_allocated FROM...
View ArticleScript to show active distributed tx’s in database
*************************************** script to show active distributed tx’s *************************************** REM distri.sql column origin format a13 column GTXID format a35 column LSESSION...
View ArticleQuery to find Active SQL’s in database
set feedback off set serveroutput on size 9999 column username format a20 column sql_text format a55 word_wrapped begin for x in (select username||'(‘||sid||’,’||serial#||’) ospid = ‘|| process || ‘...
View ArticleScript to Analyze schema for Unix (but with analyze command)
###################### ANALYZE SCHEMAS IN UNIX ####################### #!/bin/ksh ORACLE_SID=ORVIT8QA export ORACLE_SID ORACLE_HOME=/d001/oracle/9.2.0.8-64 export ORACLE_HOME export EXPORT_FILE...
View Articlescript to find sql text with sid of a session
####################### TO FIND SQL TEXT FROM SID ####################### select a.sid,a.program,b.sql_text from v$session a, v$sqltext b where a.sql_hash_value = b.hash_value and a.sid=429 order by...
View Articlescript to find redo generated by current sessions
################################################# redo generated by current sessions ################################################# select v$session.sid, username, value redo_size from v$sesstat,...
View Articlescript to check INACTIVE sessions with HIGH DISK IO
To check INACTIVE sessions with HIGH DISK IO ============================================= select p.spid,s.username, s.sid,s.status,t.disk_reads, s.last_call_et/3600 last_call_et_Hrs,...
View Articlescript to analyze Disk IO’s
To Analyze the DISK I/o’s ========================== prompt SESSIONS PERFORMING HIGH I/O > 50000 select p.spid, s.sid,s.process cli_process, s.status,t.disk_reads, s.last_call_et/3600...
View ArticleScript to list events in Oracle Database
Friends, many a times we will be setting events traces in our databases for various reasons. The below script will give advantage to know what are all the events turned on in our database Listing All...
View Article
More Pages to Explore .....