1826989 Members
3307 Online
109705 Solutions
New Discussion

Re: change process name

 
SOLVED
Go to solution
heaman1
Regular Advisor

change process name

I have some processes in my system that is already dead ( that means it is not running and still keep the process name in the system ) , I tried to use kill -9 but still can't kill it .

#ps -ef |grep ora
root 18013 1 0 Nov25 ? 00:00:01 ora_pri


As above , ora_pri is the process name that keep on the system but is not running .

Now , too name same process name makes our system calculation error , so I would like to change the process name to another name ( eg. change it to dummy_process )
can advise is it possible to change the process name ?

thx
7 REPLIES 7
Steven Schweda
Honored Contributor
Solution

Re: change process name

I know nothing, but I don't think that "ps"
shows you a "process name" in the same sense
that, say, a VMS "SHOW SYSTEM" report shows
you a process name. "ps" is (I believe)
showing you the command line argument(s), and
I'd guess that it's too late to change
it/them.

> [...] Now , too name same process name
> makes our system calculation error [...]

Perhaps your system calculation should be
looking for a particular process id (pid)
(and/or ppid) instead of for a particular
"name"?
heaman1
Regular Advisor

Re: change process name

thx reply,

Perhaps your system calculation should be
looking for a particular process id (pid)
(and/or ppid) instead of for a particular
"name"?

No , it is not check pid , it really check process name .


do you mean the process name could not be change ?
Yogeeraj_1
Honored Contributor

Re: change process name

hi,

Instead of renaming the running "process" (which i dont think will be possible), i would rather remove the process_name from the calculation itself.

Maybe if you can post an extract from the calculation script we can help you alter it.


hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Suraj K Sankari
Honored Contributor

Re: change process name

Hi,

If you not able to kill this process, One last option is there and that is you have to take reboot.

Suraj
Steven Schweda
Honored Contributor

Re: change process name

> No , it is not check pid , it really check
> process name .

That's your problem.

> do you mean the process name could not be
> change ?

I mean that what you call a "process name" is
not a process name. I don't think that UNIX
has process names. VMS has process names,
and you can change them all you want, using a
command like "SET PROCESS /NAME = string"
(or using system services). But this isn't
VMS, and I don't know how to change what "ps"
says.

That "process name" which "ps" gives you does
not uniquely identify a process. The pid
does, which is why you should use the pid,
not the "process name" (which is not a
process name).
Dennis Handly
Acclaimed Contributor

Re: change process name

>I have some processes in my system that is already dead

This process is hung, not dead yet.

>is it possible to change the process name?

I don't think so. It would be simpler to reboot than to figure this out. I do know that some oracle processes change their names.
I'm not sure if this is writing to argv that does it, or it needs to fiddle with uarea?

>do you mean the process name could not be change?

Right, you are looking at the executable name.

Perhaps you need to look for ora_pri but skip all of them whose PPID is 1?
Laurent Menase
Honored Contributor

Re: change process name

It is possible using adb, but it is dangerous and unsupported.
- load the proc table, then get the addresses of the command field of the processes,
then change the command with adb.
You should TOC the system when possible and contact HP support!