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
Is there any command in unix to find the Oracle version number of a oracle that set in the ORACLE_HOME environment variable.
Thanks
$ORACLE_HOME/bin/sqlplus -version
Wesly
Wesly
The SQLPLUS version is the same as the installed Oracle's.
Wesly
Wesly
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
above works for aix & hp-ux
for solaris
cat /var/opt/oracle/oratab | grep prod
hth
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Mine is not very accurate.
I'd try `what` and `strings` first, accountant records after, and only then go to SQL....
I'd try `what` and `strings` first, accountant records after, and only then go to SQL....
file $ORACLE_HOME/bin/oracle