- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lsof, IPC and oracle
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-10-2003 11:22 PM
12-10-2003 11:22 PM
lsof, IPC and oracle
Here's my problem:
On a HPUX 11i box :
I have several X process with the same name TOTO ; they connect (dedicated server) to a oracle database via IPC (not SQL*Net)
Now there are X process oracleORACLE_SID
How can I do the link between the PID of one process TOTO with the PID of the oracle shadow
process associated ?
I tried different options with lsof but with
a IPC connection, I didn't success
(You can try with several TOTO=sqlplus for example)
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 11:57 PM
12-10-2003 11:57 PM
Re: lsof, IPC and oracle
select s.sid, s.serial#, s.audsid, s.username, s.osuser, s.machine, s.terminal, s.process, p.spid, s.program
from v$process p,v$session s
where p.addr = s.paddr
The SPID col is the client, the PROCESS col is the shadow.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 12:04 AM
12-11-2003 12:04 AM
Re: lsof, IPC and oracle
Massimo (still thinking to the answer..)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 12:06 AM
12-11-2003 12:06 AM
Re: lsof, IPC and oracle
Graham is perfectly correct, I read the wrong column :)
SORRY, SORRY, SORRY !!
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 12:53 AM
12-11-2003 12:53 AM
Re: lsof, IPC and oracle
Your sql select is ok
but I would like to find a
way with OS commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 01:04 AM
12-11-2003 01:04 AM
Re: lsof, IPC and oracle
try to see, if the Oracle process and the application process dont have a father/son relationship. The Oracle process should be the son of the application process, it it is a local connect.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 01:06 AM
12-11-2003 01:06 AM
Re: lsof, IPC and oracle
For example, the command:
UNIX95= ps -efH
will give all processes by hierarchy and you can grep or awk out the ones you want.
(NB ps -H is expensive - see "man ps")
-- Graham