Solved

Identify the local Oracle Client version in a Windows machine

Posted on 2004-10-04
3
1,177 Views
Last Modified: 2008-01-16
Hi,

I need to identify the version of the local oracle client in a Windows machine. The requirement is to get the Client version using a VB program and then do required database export only if the client version is the desired one.

The export utility is identified from the ORACLE_HOME\bin folder, but it is not possible to identify the version of the selected export utility.

The problem is that there is no standard product versioning info (using Windows version.dll) for Oracle exes.

It does not seem feasible to capture the log of SQLPlus or so to get the client version to get the client version.

Is there any environment setting for the Client version, any registry setting or any file that has the client details? Any file names that are maintained properly with version numbers across different versions of Oracle from 7 to 10g?

0
Comment
Question by:bees
3 Comments
 
LVL 34

Expert Comment

by:johnsone
ID: 12218290
I believe that with the introduction of the Universal Installer, this is nearly impossible.

According to Oracle the best way to determine this is by running the Universal Installer and checking the Installed Products.

Another way, which may work, is to look in the C:\Program Files\Oracle\Inventory\Components\oracle.client directory.  There should be a directory in there that tells the client version.  If a patch has been installed that only upgraded certain components this would probably not be reflected here.  It should give you the base version though.

Of course, this implies that users are not smart enough th change the inventory location.  I am not sure if it can be done in Windows, but it s pretty easy to do in the Unix world.
0
 
LVL 7

Accepted Solution

by:
BobMc earned 50 total points
ID: 12218610
On Windows, the export binaries were named according to version, exp73, exp80, and since 8i, plain old exp. There was a similar convention for versions of sqlplus.

The only way I can think of to reliably return the client version, would to be do "EXP HELP=Y" and parse the first line of output.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows how to recover a database from a user managed backup
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now