Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best way to determine which version of Oracle client I'm running?

Tags:

windows

oracle

The subject says it all: What is the best way to determine the exact version of the oracle client I'm running? Our clients are all running Windows.

I found one suggestion to run the tnsping utility, without parameters, which does display the version information. Is there a better way?

Does the client install put this information in any sort of text file?

like image 449
chris Avatar asked Jul 23 '09 13:07

chris


People also ask

How do I know what version of Oracle client I have?

Hi, In the sql plus prompt type. SQL> select * from v$version; You will get your oracle client verison.

What is the latest version of Oracle database client?

Oracle Database 19c is the latest Long Term Release with the widest window of support duration. For details about database releases and their support timeframes, refer to Oracle Support Document 742060.1 (Release Schedule of Current Database Releases) on My Oracle Support.

How do I know if Oracle Instant client is installed on Windows?

Go to a different directory from the one on which you installed Oracle's Instant Client and enter the following command: sqlplus scott@bigdb/tiger select user from dual; If this test is successful, you are ready to use the run-time.


2 Answers

TNSPing command line will show the version. similarly, sqlPlus.exe will print its version. You can also go to the readme files in the 'relnotes' directory of your client install. Version 10.2 has a file named README_jdbc.txt, for example, which will tell you which version has been installed.

like image 35
akf Avatar answered Sep 19 '22 19:09

akf


You can use the v$session_connect_info view against the current session ID (SID from the USERENV namespace in SYS_CONTEXT).

e.g.

SELECT   DISTINCT   s.client_version FROM   v$session_connect_info s WHERE   s.sid = SYS_CONTEXT('USERENV', 'SID'); 
like image 72
Josh Bode Avatar answered Sep 17 '22 19:09

Josh Bode