Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Good notes for shared pool Oracle
  • Find sort details from Db find_sort.sql Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Debugging Shell FIles Linux/Unix
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • sid_wise_sql.sql Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • v$event_name Oracle
  • send attachment from unix-shell script Linux/Unix
  • Check Oracle installed products using one command Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() 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

  • Paste command syntax Linux/Unix
  • Deleting first line and lastline of a file using sed Linux/Unix
  • More info about /proc folder and its relation with processes. Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • on IBM-AIX for display Linux/Unix
  • Korn Shell Arithmatic Linux/Unix

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • findobj.sql Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • Search and Replace vi editor command. Linux/Unix
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • sql_plan9i.sql Oracle
  • Implementing Listener Security Oracle
  • Oracle 11g Training on 29JAN1010 Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme