select chha.sid,
2 chha.username,
3 chha.osuser,
4 to_char(chha.LOGON_TIME,'MM-DD-YY HH:MI AM') login_time,
5 chhb.sql_text "SQL Statement"
6 from v$session chha, v$sqltext chhb, V$SQL_CURSOR chhc
7 where chha.username is not null
8 AND chhc.parent_handle (+) = chhb.address
9 AND chhB.SQL_TEXT NOT LIKE '%chh%'
10 AND chhB.SQL_TEXT NOT LIKE '%V$SESSION%'
11 AND chhB.SQL_TEXT NOT LIKE '%v$session%'
12 and chha.status = 'ACTIVE'
13 and chha.sql_address = chhb.address
14 --and chha.osuser = 'dwloder'
15* order by 1,2, 3,chhb.piece
Subscribe to:
Post Comments (Atom)
How to Trouble shoot Logfile_sync wait event
First Identify and break down LGWR wait events. Query wait events for LGWR. In this instance LGWR sid is 3 (and usually it is). select s...
-
Refference with the document How to Clean Up Duplicate Objects Owned by SYS and SYSTEM Schema [ID 1030426.6] Hi Had faced an issue where ...
-
Login to the first node column is_recovery_dest_file format a25 column name format a60 set linesize 160 select status, name, is_recover...
-
SQL> SELECT LOG_MODE FROM SYS.V$DATABASE; LOG_MODE ------------ NOARCHIVELOG show parameter archive will tell u the archive...
No comments:
Post a Comment