2026-03-12 20:23:15
This commit is contained in:
23
tpt/bg2.sql
Normal file
23
tpt/bg2.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
|
||||
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
|
||||
|
||||
select /*+ ordered use_hash(s) */
|
||||
b.name
|
||||
, b.description
|
||||
, s.sid
|
||||
, p.pid opid
|
||||
, p.spid
|
||||
, b.paddr
|
||||
, s.saddr
|
||||
-- , b.typea -- 12.2+
|
||||
-- , b.priority -- 12.2+
|
||||
from
|
||||
v$bgprocess b
|
||||
, v$process p
|
||||
, v$session s
|
||||
where
|
||||
b.paddr = p.addr
|
||||
and b.paddr = s.paddr
|
||||
and p.addr = s.paddr
|
||||
and (lower(b.name) like lower('&1') or lower(b.description) like lower('&1'))
|
||||
/
|
||||
Reference in New Issue
Block a user