- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to kill a process by ip address
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
08-18-2003 12:01 PM
08-18-2003 12:01 PM
I have a PL/SQL script running on a Windows XP box that is connected to Oracle on HP-UX and appears to be running away, so would like to kill it. We used PL/SQL Developer to kill it, but it still will not go away.
Now I would like to try to find it on the HP-UX side and try to kill it from there. When I do a ps -ef | grep -i oracle, I can not differentiate which PID that we can kill.
Is there a method to associate an IP address to a PID and kill the PID? Is there any other way to kill a single network session on HP-UX?
Thanks in advance,
Huggy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 12:28 PM
08-18-2003 12:28 PM
SolutionFirst you need to download and install the lsof utility.
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.67/
Next, invoke lsof looking for a specific ip address and also "oracle".
e.g.
lsof -i -n | grep "oracle" | grep "65.12.77.123"
That should yield a line with a process id which you can feed to kill.
The -n option instructs lsof to suppress hostname to ip address translation since you specifically asked for ip address.
That should get you started, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 12:45 PM
08-18-2003 12:45 PM
Re: How to kill a process by ip address
Is there a version of lsof for 64-bit O/S? The version I installed, seems to be for 32-bit HP-UX.
Thanks for your help anyway.
Huggy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 12:50 PM
08-18-2003 12:50 PM
Re: How to kill a process by ip address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2003 01:23 AM
08-19-2003 01:23 AM
Re: How to kill a process by ip address
why would you kill a unix session rather than the oracle session itself ??
find out the hostname of your xp box by using 'hostname' in a cmd shell.
next connect to the database as dba.
select sid,serial# from v$session
where machine='windows xp box';
alter system kill session 'sid,serial#'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2003 01:56 AM
08-19-2003 01:56 AM
Re: How to kill a process by ip address
select 'alter system kill session '||''''||s.sid||','||s.serial#||''';' "SS"
from v$session s, v$process p
where type='USER'
and p.addr=s.paddr
and status != 'KILLED'
AND LAST_CALL_ET > 60*60*2
order by last_call_et desc;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2003 02:24 AM
08-19-2003 02:24 AM
Re: How to kill a process by ip address
ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/binaries/hpux/B.11.00/vxfs/64/9000_800/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2003 02:37 AM
08-19-2003 02:37 AM
Re: How to kill a process by ip address
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.11/
HP-UX 11.0 64 bit lsof:
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.00/vxfs/64/9000_800/
Pete
Pete