Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Oracle BG processes and SQL visibility in 10.2.0.2
We noticed that too and with the job queue process
it's a real pain. There are 2 workarounds I've tried,
but also want to know if there's any better option:
(1) Use PLSQL_OBJECT_ID from v$session, if that job happens to be a PL/SQL.
or
(2) Use dba_jobs_running and v$open_cursor for the SID being traced.
HTH,
Deepak
> I've had an overly active batch process (J0001) but
> I was unable to
> see the SQL. The address in V$SESSION was empty.
> After that, I tried
> with SMON. No luck, there, either. Essentially, in
> version 10.2.0.2 SQL
> statements executed by the background processes are
> not visible:
>
> SQL> select
> sql_address,sql_id,prev_sql_addr,prev_sql_id,
> program
> 2 from v$session where sid in (69,70,75)
> 3 /
>
> SQL_ADDR SQL_ID PREV_SQL PREV_SQL_ID
> PROGRAM
> -------- ------------- -------- -------------
> --------------------
> 00 00
> oracle_at_medo.noip.com
>
> (SMON)
>
> 00 00
> oracle_at_medo.noip.com
>
> (CKPT)
>
> 00 00
> oracle_at_medo.noip.com
>
> (PMON)
>
-- http://www.freelists.org/webpage/oracle-lReceived on Sun Oct 01 2006 - 00:57:11 CDT