Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to know current SID Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • sql_plan9i.sql Oracle
  • All About Trace Fils Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • useful dg links Oracle
  • Changing the Global Database Name Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Goog notes on X$ tables Oracle
  • sid_wise_sql.sql Oracle
  • Flowers Resize datafiles Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • find_err.sql for finding errors from dba_errors. Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle

To Find Orphan OS processes.

Posted on 19-Feb-2007 By Admin No Comments on To Find Orphan OS processes.

To Find Orphan OS processes.

When a process run from command line its parent process id will be 1. Consider following example:

In current session, we are executing SQLPLUS. whose process id = 22833 and parent is 22822.

process 22822 is ksh. So this is not orphan process. if you find any process with parent id 1, confirm with users for how this program is executed. When a process or program is running directly without Shell, it will have 1 as parent process id and orphan processes also have parent process id as 1.

SQL> !ps -ef | grep -i sqlplus

oracle 6833 22833 0 13:56:39 pts/1 0:00 grep -i sqlplus

oracle 22833 22822 0 12:04:27 pts/1 0:00 sqlplus / as sysdba

SQL> !ps -ef | grep 22822

oracle 22822 22820 0 12:04:14 pts/1 0:00 -ksh

oracle 6934 22833 0 13:57:02 pts/1 0:00 grep 22822

oracle 22833 22822 0 12:04:27 pts/1 0:00 sqlplus / as sysdba

SQL>

Linux/Unix, shell

Post navigation

Previous Post: Another Tuning Article for subheap of shared pool
Next Post: chk_space_SID.ksh

Related Posts

  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • good linux notes Linux/Unix
  • Single character replacement in Unix Linux/Unix
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Parallel DML Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Rollback force for distributed transactions Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Monitor Long Running Job Oracle
  • logminer and my_lbu Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme