Database Administration (MOSC)

MOSC Banner

How to find a link between the Session in sqlplus and OS Process ID of "java" process (not "oracle<S

edited Jun 18, 2018 1:46PM in Database Administration (MOSC) 6 commentsAnswered
1. If you start a session (e.g. via sqlplus), a new process "oracle<SID>" on OS level is created. You can find this process ID using: 
select spid from v$process p, v$session s where p.addr=s.paddr and s.sid=...;

This is clear, but it is not related to subsequent java processes.

2. Later from within the same session, if you run DBMS_JAVA..., another OS process is created like this;

/oracle/product/db11g2/jdk/bin/IA64W/java -DORACLE_HOME=/oracle/product/db11g2 -classpath /oracle/product/db11g2

We need to know how to find a link between the session in sqlplus and OS process ID of "java" process (not "oracle<SID>" process).

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center