Isn't that exactly what Chris Sarnowski's suggested
SQL does?  If you want the OS PID on the database
server process (running the DML under Oracle) that is
serving your client (Perl/DBI), 

select vp.spid from v$process vp, v$session vs where
vs.sid = (select sid from v$mystat where rownum = 1)
and vp.addr = vs.paddr

If you want to see all server processes for all
clients (not what you asked for, but good for
testing):
 
select vp.spid from v$process vp, v$session vs where
vp.addr = vs.paddr

Tom

--- "Drozdowski, Catharine"
<[EMAIL PROTECTED]> wrote:

> Yep, you got it...
> 
> PS I did send Ron/Chris separate email to make
> nice.... 
> 
> -----Original Message-----
> From: JupiterHost.Net
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 23, 2006 10:12 AM
> To: [email protected]
> Subject: Re: Identify PID for remote database
> handle--CLARIFICATION...
> 
> 
> 
> Reidy, Ron wrote:
> 
> > No, I do not know you are a DBA; maybe YOU cannot
> describe the problem
> 
> > well enough.
> > 
> > -----Original Message-----
> > From: Drozdowski, Catharine
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 23, 2006 10:11 AM
> > To: Reidy, Ron; [email protected]
> > Subject: RE: Identify PID for remote database
> handle--CLARIFICATION...
> > 
> > You know I AM a DBA and will withdraw the post as
> you guys seem to not
> 
> > be able to grasp the concept.
> 
> Ok kids ne nice :)
> 
> The question is (assuming I understand it)
> 
> Is there a way to get or have DBI set so it can be
> gotten the PID of the
> $dbh process ont he DB server (local or remote)
> 
> Correct?
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to