In 8.1 (not sure about 8.0 or 7.3):

select host_name from v$instance;

-----Original Message-----
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 10:13 AM
To: 'Igor Feldman '; '[EMAIL PROTECTED] '
Subject: RE: host name detection


As far as I know these attributes are kept private and can't be accessed
through the $dbh object, but I might be wrong:)  If you are connecting using
these attributes, why can't you just keep them for later reference?

Ilya

-----Original Message-----
From: Igor Feldman
To: [EMAIL PROTECTED]
Sent: 7/26/01 6:34 AM
Subject: host name detection

Hello !
Can any body help me with identify server name from connection
descriptor while I've alredy been connected to Oracle DB?
I'm looking for way in which I could describe server name from
connection
descriptor $dbh insted looking into tnsnames.ora file in order to detect
hostname (server) regards to that specific service.

Thanks a lot !
Igor.

Reply via email to