Solved

Identify the local Oracle Client version in a Windows machine

Posted on 2004-10-04
3
1,189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 35

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Via a live example, show how to take different types of Oracle backups using RMAN.

749 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