Re: Version of Oracle Database without connecting to the database.

From: David Ballester <ballester.david_at_gmail.com>
Date: Fri, 24 Oct 2008 17:52:09 +0200
Message-ID: <6a29f8b0810240852t433d4f29s3880dd26bc2cb068@mail.gmail.com>


2008/10/24 Fuad Arshad <fuadar_at_yahoo.com>

> Folks,
> I'm trying to find a way to script finding an approximation of the version
> of the database without connecting to the database itself.
> The goal is to try to find out of the Oracle_home is a Oracle 10 home , 9
> home etc .
>
> right now i'm doiing something like
> DATAVERSION1=`echo $ORACLE_HOME | awk -F/ '{print $6}'`
> expecting that $6 would lead me to something like
> /usr/local/oracle/product/10.2
>
> but this is not a very foolproof implementation since installs can take
> various forms and break this implementation.
>
>
> Any ideas of how i can get the oracle version info considering that i will
> always know the value of $ORACLE_HOME.
>

lsnrctl status will give you the listener binary version

may be can help

D.

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Oct 24 2008 - 10:52:09 CDT

Original text of this message