Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • create database link syntax Oracle
  • Python class import from different folders Python/PySpark
  • adding new line after specific pattern using sed Linux/Unix
  • find checksum of a file. Linux/Unix
  • Find total file sizes Linux/Unix
  • Histogram Overview Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • longtx.sql Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • runsql_once.ksh Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Logic to chech # of parameters command line parameters Linux/Unix

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

  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • Korn Shell Arithmatic Linux/Unix
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • oracle 10g on linux Linux/Unix
  • Unix split command to split files Linux/Unix
  • Linux CPU info. Linux/Unix

Leave a Reply Cancel reply

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

Categories

  • AMC10 (0)
  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (9)
  • Videos (0)

Recent Posts

  • Tutornet.US — Source of excellent learning14-Oct-2026
  • OCI Infrastructure Patching14-Oct-2026
  • Free API credits for AI models14-Oct-2026
  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • import-export with multiple files Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • find_err.sql for finding errors from dba_errors. Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • sql_plan9i.sql Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Wait time tuning research Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme