- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ghost Process. Want to know the reason.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 07:58 PM
12-16-2004 07:58 PM
Ghost Process. Want to know the reason.
script was executed by cron job.
The log is below.
# more oraarc1368.log
oracle8 1373 1368 0 13:15:01 ? 0:00 /usr/sbin/sh /PRODUCTS/oracle8/ARCH/oraarc_press.sh
oracle8 1368 1365 0 13:15:00 ? 0:00 /usr/sbin/sh /PRODUCTS/oracle8/ARCH/oraarc_press.sh
oracle8 1365 1274 0 13:15:00 ? 0:00 sh -c $HOME/ARCH/oraarc_press.sh
#
As my understanding PROCESS ID 1373 may the ghost process. This situation is not occoured every time.
Hope someone give me advise.
Thank you very much.
Chen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2004 09:27 PM
12-17-2004 09:27 PM
Re: Ghost Process. Want to know the reason.
I believe you are misreading the information.
This looks like output from the following command:
`ps -ef|grep oraarc_press`
Process Id 1373 is a child process of 1368
Process Id 1368 is a child process of 1365
Process Id 1365 is the initial call of:
sh -c $HOME/ARCH/oraarc_press.sh
Without the code for "oraarc_press.sh" that's about all I can tell.
Are you running this from cron?
If so is it the root cron or does oracle have it's own?
Hope this helps,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2004 11:06 AM
12-19-2004 11:06 AM
Re: Ghost Process. Want to know the reason.
oracle8.
I will upload a part of the script later.
Chen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2004 08:16 PM
12-19-2004 08:16 PM
Re: Ghost Process. Want to know the reason.
This is called from oracle8's cron every 30 minutes, to avoid duplicate execution, check to see whether there is already the process which has same name running or not.
I wonder why this (script itself forks another process ) happens.
/usr/bin/ps -ef | /usr/bin/grep ${MYNAME} | /usr/bin/grep -v grep > ${PROCFILE}
PNUM=`cat ${PROCFILE} | /usr/bin/wc -l `
if [ $PNUM -gt 2 ]; then
echo "${MYNAEM} already executed."
ERRORCODE=3
exit ${ERRORCODE}
fi
Notice:
${RPOCFILE} is predefined working filename.
${MYNAME} is got from `basename $0` - ie.)oraarc_press.sh .
Chen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2004 03:06 AM
12-20-2004 03:06 AM
Re: Ghost Process. Want to know the reason.
You should look at a problem in the environment causing the process to clone itself which doesnt happen when run from a command line
Put set -x in the statup script and look for an email after the run
Steve STeel