Displays Oracle background processes

rem Name:    bg.sql
rem Purpose: Displays Oracle background processes
rem Usage:   @bg <%0|*1|name>
rem Subject: instance
rem Attrib:  sql
rem Descr:
rem Notes:   Put comments here

@setup

define arg="upper('&&1')"

column paddr format a16
column name  format a5
column description format a40 word
column error format 90

select
  paddr,
  name,
  description,
  error
from v$bgprocess
where (&&arg='*' or &&arg='1')
or (
  (&&arg='%' or &&arg='0' or upper(description) like &&arg)
  and ltrim(replace(paddr, '0')) is not null
);

undef arg

@setdefs

Have a Oracle Question
Do you have an Oracle Question?

Oracle Books
Oracle Certification, Database Administration, SQL, Application, Programming Reference Books

Oracle Application
Oracle Application Hints and Tips

Oracle Home
Oracle Database, SQL, Application, Programming Tips

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.
The site www.erpgreat.com is not affiliated with or endorsed by any company listed at this site.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.