?
Solved

Identify the local Oracle Client version in a Windows machine

Posted on 2004-10-04
3
Medium Priority
?
1,196 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 150 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

752 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