Search

Top 60 Oracle Blogs

Recent comments

strace the current Oracle session process

Here is my way to trace system calls from the current session process.
This must not be done in production.
An strace.log file will be generated with system calls

connect / as sysdba
column spid new_value pid
select spid from v$process join v$session on v$session.paddr=v$process.addr where sid=sys_context('userenv','sid');
column spid clear
define bg=&:
host strace -fy -p &pid -o strace.log &bg
select * from v$osstat;
disconnect

Originally posted on Twitter, but improved here

https://twitter.com/FranckPachot/status/969898128030695424