Link to home
Start Free TrialLog in
Avatar of princyrajan
princyrajan

asked on

Unix command to find Oracle version number

hai friends,
       Is there any command in unix to find the Oracle version number of a oracle that set in the ORACLE_HOME environment variable.

Thanks
Avatar of yuzh
yuzh

type in:
file $ORACLE_HOME/bin/oracle

$ORACLE_HOME/bin/sqlplus -version

Wesly
The SQLPLUS version is the same as the installed Oracle's.

Wesly
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The method I mentioned works for Oracle 9.
yuzh's method is for Oracle 7 and 8. I don't have inspdver in oracle 9.

Wesly
you can look for column named "version" etc.

cat /etc/oratab | grep prod

above works for aix & hp-ux

for solaris

cat /var/opt/oracle/oratab | grep prod

hth
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Mine is not very accurate.

I'd try `what` and `strings` first, accountant records after, and only then go to SQL....