Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 17973 invoked from network); 9 Sep 2008 23:48:45 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by air964.startdedicated.com with SMTP; 9 Sep 2008 23:48:45 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 545BC950BB7;
 Wed, 10 Sep 2008 00:48:45 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 27831-01; Wed, 10 Sep 2008 00:48:45 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id CC0F8950B9C;
 Wed, 10 Sep 2008 00:48:44 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 10 Sep 2008 00:46:46 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 23E9F950AF4	for <oracle-l@freelists.org>; Wed, 10 Sep 2008 00:46:46 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])	by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)	with ESMTP id 27042-07 for <oracle-l@freelists.org>;	Wed, 10 Sep 2008 00:46:46 -0400 (EDT)
Received: from gw00.edita.fi (gw00.edita.fi [192.49.50.236])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 9DC03950AE6	for <oracle-l@freelists.org>; Wed, 10 Sep 2008 00:46:45 -0400 (EDT)
Received: from EDITA-MTA by gw00.edita.fi	with Novell_GroupWise; Wed, 10 Sep 2008 07:46:43 +0300
Message-Id: <s8c77b63.049@gw00.edita.fi>
Date: Wed, 10 Sep 2008 07:46:34 +0300
From: "Teijo Lallukka" <teijo.lallukka@edita.fi>
To: <oratips@gmail.com>,<sol.beach@gmail.com>
Cc: <oracle-l@freelists.org>
Subject: Vs: Re: Server IP Address and Listener Port
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis
Content-Disposition: inline
X-archive-position: 10713
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: teijo.lallukka@edita.fi
Precedence: normal
Reply-to: teijo.lallukka@edita.fi
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain

Hi!

Server IP you would get with this:

SELECT UTL_INADDR.get_host_address from dual;

Look at:
http://www.oracle-base.com/articles/misc/IdentifyingHostNamesAndAddresses.php 

I don't know about listener port... I think there could be a way to do that without parsing...

-Teijo

>>> "sol beach" <sol.beach@gmail.com> 10.9.2008 4:27 >>>
If you are determined to do this from a procedure running inside Oracle,you
should be able to use UTL_FILE to read listener.ora & then parse it.
This presumes UTL_FILE can access the directory where listener.ora reside.
Alternatively, I am sure it can be by a custom Java procedure.

On Tue, Sep 9, 2008 at 5:46 PM, Bala <oratips@gmail.com> wrote:

> Is there anyway to find out Server IP Address and Listener Port from within
> an Oracle 10gR2 Database ?
> Is it Possible at all ?
>
> Thanks for any all tips.
> --
> Bala Rao
>

--
http://www.freelists.org/webpage/oracle-l


