|
|
Question : Trace unix personal ids to oracle id and sqlplus sessions
|
|
On our unix boxes (both hp & sun) we login first with our personal ids and then su to oracle id ... is there a way to trace which all personal ids are logged in as oracle ? ... the issue is to find out which personal id kicked off a particular sql ...
Thanx
-RJ
|
Answer : Trace unix personal ids to oracle id and sqlplus sessions
|
|
/var/adm/sulog (On Solaris, not sure about HPUX) has a record of all su attempts.
What I would suggest is creating a separate history file for each terminal session (assuming oracle is running ksh or bash). In oracle's profile, specify:
TTY=`tty` HISTORY=$HOME/.history-`basename $TTY` export HISTORY
Then when a user logs in, you can see what tty they using with the 'who', 'last', and 'grep user /var/adm/sulog' commands, then just just need to look in the history file for that particular user.
|
|
|
|
|