Solved

Identify the local Oracle Client version in a Windows machine

Posted on 2004-10-04
3
1,181 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.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows how to recover a database from a user managed backup
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

920 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

12 Experts available now in Live!

Get 1:1 Help Now