How to find which version of Oracle is installed on a Linux server (In terminal) [closed] How to find which version of Oracle is installed on a Linux server (In terminal) [closed] linux linux

How to find which version of Oracle is installed on a Linux server (In terminal) [closed]


Enter in sqlplus (you'll see the version number)

# su - oracleoracle# sqlplus

OR

echo $ORAHOME

Will give you the path where Oracle installed and path will include version number.

OR

Connect to Oracle DB and run

select * from v$version where banner like 'oracle%';


As the user running the Oracle Database one can also try $ORACLE_HOME/OPatch/opatch lsinventory which shows the exact version and patches installed.

For example this is a quick oneliner which should only return the version number:

$ORACLE_HOME/OPatch/opatch lsinventory | awk '/^Oracle Database/ {print $NF}'


Login as sys user in sql*plus. Then do this query:

select * from v$version; 

or

select * from product_component_version;