SPUG: DBI question: Lookup given a SID

Eric Hanchrow offby1 at blarg.net
Tue Jan 9 12:19:21 PST 2007

>>>>>   <Eric.D.Peterson at alltel.com> writes:

      Given a database name (i.e., SID) is there a way to lookup the
    hostname and/or ip address?  For example I know the following:

                    db: dbname
                    Host: xxx.alltel.com
                    IP: nn.nn.nn.nn

      I'd like to do something like this in Perl.

                    my ( $host, $IP ) = who ( $db );

I must be failing to understand something basic.  You first say you
know the host and IP; then you ask how to get the host and IP.  What
am I missing?

Keaton, Chaplin, Garbo - let them now make room for Gromit.
        A. O. Scott, in The New York Times

More information about the spug-list mailing list