- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: UX-process info vs. ORA-session info
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
Discussions
Discussions
Forums
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
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
тАО11-18-2003 07:16 PM
тАО11-18-2003 07:16 PM
I need a SELECT statement to combine UX-process information with ORA-session information. I'am trying to use v$process and v$session, but I don't seem to find the field to combine the tables. Are there any other tables to use?
Rgds Ragnar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 07:49 PM
тАО11-18-2003 07:49 PM
Re: UX-process info vs. ORA-session info
I think this is the one you are looking for.
select SID,PROCESS,SERIAL#,OSUSER from v$session;
Where PROCESS is OS process id, OSUSER is OS User.
Thanks,
Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 08:22 PM
тАО11-18-2003 08:22 PM
Re: UX-process info vs. ORA-session info
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1019526.6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 08:25 PM
тАО11-18-2003 08:25 PM
SolutionIf you want the UNIX PID, it comes from the SPID col of v$session.
Here's a contributed script which may do what you want:
select ' Sid, Serial#, Aud sid : '|| s.sid||' , '||s.serial#||' , '||
s.audsid||chr(10)|| 'DB User / OS User : '||s.username||
' / '||s.osuser||chr(10)|| ' Machine - Terminal : '||
s.machine||' - '|| s.terminal||chr(10)||
' OS Process Ids : '||
s.process||' (Client) '||p.spid||' (Server)'|| chr(10)||
' Client Program Name : '||s.program "Session Info"
from v$process p,v$session s
where p.addr = s.paddr
/
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 09:36 PM
тАО11-18-2003 09:36 PM
Re: UX-process info vs. ORA-session info
You have given me the two fields I was looking for. ADDR from V$PROCESS and PADDR from V$SESSION. I can now author the SELECT statement to my liking. Thanks again.
Rgds Ragnar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 09:47 PM
тАО11-18-2003 09:47 PM
Re: UX-process info vs. ORA-session info
:) Thanks ! Getting to know the databases.
-Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 09:49 PM
тАО11-18-2003 09:49 PM
Re: UX-process info vs. ORA-session info
Thanks Graham Again. !!!
-Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 08:48 PM
тАО11-19-2003 08:48 PM
Re: UX-process info vs. ORA-session info
I've the same problem in the past and I've develloped this Unix script that shows me all the activities done at Oracle level by a unix pid.
Feel free to chnage it as you prefer.
In case you will foind some error, please, could you notify them to me?
TIA.
Art