Re: DBA_VIEWS interactive reference available from OTN

From: Yong Huang <yong321_at_yahoo.com>
Date: Fri, 10 Dec 2010 14:10:37 -0800 (PST)
Message-ID: <373698.82078.qm_at_web80602.mail.mud.yahoo.com>



> a categorization of the background processes, plus which ones are
> started by default, which ones are required

Speaking of "which ones [background processes] are required", if you use Oracle 10g or up on Linux/UNIX, there's an easier way to check:

  • begin quote --- Beginning with 10g, Oracle background processes on Linux/UNIX have an environment variable SKGP_HIDDEN_ARGS. On Linux, the variable is assigned a value and its first attribute can tell you whether killing this process would crash the instance:

$ ps eww $(pgrep -f ora_pmon_$ORACLE_SID) | perl -nle 'print $& if /SKGP_HIDDEN_ARGS=[^ ]+/' SKGP_HIDDEN_ARGS=<FATAL/S/x0/x1/x0/x3E5839D4/6015/6015/x0> $ ps eww $(pgrep -f ora_mmon_$ORACLE_SID) | perl -nle 'print $& if /SKGP_HIDDEN_ARGS=[^ ]+/' SKGP_HIDDEN_ARGS=<BG/S/x0/x10/x0/x3E5839D4/6015/6015/xF>

If the first attribute is BG, killing the process will not crash the instance; if it's FATAL, it will. For the convenience of those that don't... --- end quote ---

You don't need to remember the complicated command. Just type `ps eww <pid>' on Linux or `pargs -e <pid>' on Solaris and check the environment variable. Normally SKGP_HIDDEN_ARGS is at the end.

Reference: http://yong321.freeshell.org/computer/OracleViewedFromOS.doc

Yong Huang       

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 10 2010 - 16:10:37 CST

Original text of this message