Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Steps to create trigger to trace a user session

$
0
0
CREATEORREPLACETRIGGERUSER_TRACE_TRG
AFTERLOGONONDATABASE
BEGIN
IFUSER = '&USER_ID'
THEN
executeimmediate'alter session set events ''10046 trace name context forever,
    level 12''';
ENDIF;
EXCEPTION
WHENOTHERSTHEN
NULL;
END;
/

Viewing all articles
Browse latest Browse all 1640

Trending Articles