Find out Oracle client version
Hi!
Is there a water-proof way to find out which version of Oracle Client is installed? I need to do this in C#.
thanks!
Miro
Hi Miro,
I've taken yet another approach. Checking registry this time. The program should view every Oracle_Home, Oracle_Home_Name, and Version if present out of Windows 32-bit registry. (detection starting from Oracle9 and up)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;
namespace CheckForOracle
class Program
static void Main(string[] args)
Program pr = new Program();
pr.CheckOracleClient();
public void CheckOracleClient()
try
string[] Keynames;
string oracle_home, oracle_home_name, oracle_version;
RegistryKey HKLM = Registry.LocalMachine;
RegistryKey Orcl = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\\ORACLE", false);
RegistryKey SubKeyBufor;
if (Orcl == null)
Console.WriteLine("Missing Oracle!!! Please install Oracle from http://www.oracle.com/downloads");
else
Console.WriteLine("Installed Oracle Distribution");
Keynames = Orcl.GetSubKeyNames();
for (int i = 0; i < Keynames.Length; i++)
if (Keynames.Contains("KEY") || Keynames[i].StartsWith("HOME"))
SubKeyBufor = HKLM.OpenSubKey(@"SOFTWARE\\ORACLE\\" + Keynames[i], false);
string[] vnames;
vnames = SubKeyBufor.GetValueNames();
Console.WriteLine("\nOracle Client 32-bit");
for (int j = 0; j < vnames.Length; j++)
if (vnames[j].Equals("ORACLE_HOME"))
oracle_home = SubKeyBufor.GetValue(vnames[j]).ToString();
if (oracle_home == null)
Console.WriteLine("Oracle Home: missing info in registry" + oracle_home);
else
Console.WriteLine("Oracle Home: " + oracle_home);
if (vnames[j].Equals("ORACLE_HOME_NAME"))
oracle_home_name = SubKeyBufor.GetValue(vnames[j]).ToString();
if (oracle_home_name == null)
Console.WriteLine("Oracle Home Name: missing info in registry" + oracle_home_name);
else
Console.WriteLine("Oracle Home Name: " + oracle_home_name);
if (vnames[j].Equals("VERSION"))
oracle_version = SubKeyBufor.GetValue(vnames[j]).ToString();
if (oracle_version == null)
Console.WriteLine("Oracle Version: missing info in registry" + oracle_version);
else
Console.WriteLine("Oracle Version: "+ oracle_version);
catch (Exception e) { Console.WriteLine(e.ToString()); }
Console.WriteLine("\nPress key to exit");
Console.ReadKey();
The next step in evolution of this program is to access 64-bit Windows registry, which is accessed in a slight different way,
but the idea of detecting Oracle stays the same.
Hope it was helpfull.
Regs,
Mariusz
Similar Messages
-
hi guys,
How can you find which Oracle client version does SAP 4.6D is using to connect with Oracle.
is there any file or Parameter setting available for this.
Thanks.
ChandraHello,
I'm afraid that the answer given by Samrat Dangeti is incorrect.
V$VERSION tells you the version of the RDBMS ( Oracle Database ) not the version of the client used by SAP.
Please, check the following thread on the Oracle Forum where this is being clarified.
How do I check the oracle client version?
Message was edited by:
Fidel Vales -
How can I find out the java version Oracle has ?
How can I find out the java version Oracle has built in?
I've tried with ..
SELECT comp_id, comp_name, version
FROM dba_registry ;
But I get.."table doesn't not exist".
Thenks in advance!Pl post details of OS and database versions. Pl see this MOS Doc
What Version of Java is Compatible With The Database JVM? [ID 438294.1]
and these Oracle docs
11gR2 - http://docs.oracle.com/cd/E11882_01/appdev.112/e25518/adfns_environments.htm#ADFNS654
11gR1 - http://docs.oracle.com/cd/B28359_01/java.111/b31225/whatsnew.htm
HTH
Srini -
How do I check the oracle client version?
Hi All,
How do I check the oracle client version installed from the OS level. I do know my database version I need to check which client is being used. Is there a table where this information is stored.
Thanks
Shabnadisp+work.exe -V will tell you which OCI version was used during compiling and linking.
Oracle uses release independent DLL Names (Unix people would say Shared Libraries) and therefore the SAP Kernel will dynamically load any Oracle Client Version found in the standard DLL Load Path during startup.
If you have more versions installed on your computer and you are not shure which one is loaded you can use Process Explorer (freeware, see www.sysinternals.com) to find out which one is loaded. If they belong to an Oracle_home (up to release 9.2) refere to Oracle Universal Installers Inventory information in order to find out which exact version is used.
If an Oracle10 Instant Client is used, there is no corresponding Oracle_Home. In this case you can use Windows Explorer (right click on the DLL -for example oci.dll), select properties, the Version Tab and File Version).
But unfortunately Oracle is not updating the File Version every time they are patching something.
An SAP ABAP Server Integrated Resource is the version information disp+work.exe -V is listing (evquivalent to SM51 - Release Information).
<b>Datenbank Client Library : OCI_10201_SHARE (10.2.0.2.0)</b>
OCI_10201_SHARE is telling us the compile/link environment, the number in brackets (only available starting with Oracle10) tells us the the result of an Oracle Client GetVersion call. Unfortunately this one does also not reflect the installed Minipatch version up to now.
Here are some results on 10.2.0.2 Windows X86_64:
SM51: Datenbank Client Library : OCI_10201_SHARE (10.2.0.2.0)
Explorer (OCI.DLL located in the same directory as disp+work.exe):
10.2.0.2.0 Patch2
Explorer (oraociicus10.dll - the instant client implementation, this version is the one actual since mini patch 10.2.0.2.5 and it was definitely changed in 10.2.0.2.5):
OraOCIICUS10.dll - 10.2.0.1.0
oracore10.dll - 10.2.0.1.0 Production
oranls10.dll - 10.2.0.1.0 Production
orasnls10.dll - 10.2.0.1.0 Production
oraunls10.dll - 10.2.0.1.0 Production
oravsn10.dll - 10.2.0.1.0 Production
oracommon10.dll - 10.2.0.1.0 Patch1
orageneric10.dll - 10.2.0.2.0 Patch2
oraclient10.dll - 10.2.0.2.0 Patch2
orapls10.dll - 10.2.0.1.0 Patch1
orasql10.dll - 10.2.0.1.0 Production
oraxml10.dll - 10.1.0.2.0
orahasgen10.dll - 10.2.0.1.0 Production
oraocrutl10.dll - 10.2.0.1.0 Production
oraocr10.dll - 10.2.0.1.0 Production
oraocrb10.dll - 10.2.0.1.0 Production
oranbeq10.dll - 10.2.0.1.0 Production
orantcp10.dll - 10.2.0.1.0 Production
oracommon10.dll from the rdbms server does report 10.2.0.2.0 Patch5 at the same time. compare it with the version information of oracommon10.dll included in oraociicus10.dll. Both patches are included in the same patchset (10.2.0.2.5).
there are two possible conclusions about this:
1. the version infomation is not very reliable.
2. the Oracle Patch and Build environment is not very reliable
Peter -
How to install Oracle client Version 10.2.0.4 on a Windows server 2008
Hi,
I need to install an Oracle client on a Windows Server 2008 (32-bit), how do I do that?
I want to install Oracle client version 10.2.0.4 (Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications).
Pls. advice, I can't find instructions for this installation on Oracle.com or anywhere else.thx, it looks promising...
but how to run the .jar files and which one to run, both Class12.jar and ojdbc14.jar, to start the installation?
Do I need to install the java runtime environment to run the .jar files? -
Ways to get Oracle Client Version..?
Hi.
I want to check the oracle client version on my machine.
Do we have any command utility to get the client version(like osql in sql server)/ways to do this.?
Thanks in advance.Hi,
Just type the utility/command and you should get the version. Here is an example:
$ sqlplus /?
SQL*Plus: Release 10.2.0.4.0 - Production
$ expdp help=y
Export: Release 10.2.0.4.0 - 64bit ProductionOr, from the GUI, click on Help > About.
Note: 417395.1 - How To Find Version Of Oracle Client ?
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=417395.1
Regards,
Hussein -
Imp:How to find out whether client authentication Enabled on the Web Server
Hi,
I am trying to find out whether the Client Authentication Enabled on the Web Server or not.
Reason for doing this, if we have two certificates in the key store which will authenticate the Web Server, JSSE Authentication will always take the first cert from the keystore. If the first Certificate is Expired, it will fail while doing the HandShake.
So if I can find out whether Client Authentication is Enabled or not, then I can prompt a dialog for the user to select the Certificate for the Hand Shake.
Thanks in advance for any Response,
Krish.AUTH_TYPE will tell you only if it SSL or not. It won't say whether the Client Certificates Required for SSL Connection.
Also, AUTH_TYPE is not part of the Http Headers.
If there is any other solution, greatly appreciated.
Thanks
Krish. -
How to find out the exact version of web server 7.0
Dear all,
I am using currently web server 7.0 and in error logs its shows me following version
Sun Java System Web Server 7.0 B12/04/2006 10:15
what i need how to find out what exact version i am using in my webserver 7.0 is it update 6 or update 7 or update 8
how to find out what exact version i am using in web server 7.0.....
thanks and regards
tigerWeb Server tells you specifically which Update release in the string you quote (in your string you are running the original release of Web Server 7.0).
My server is currently running Web Server 7.0 Update 7. The startup string looks like:
[19/Jan/2010:11:18:27] info (15407): CORE1116: Sun Java System Web Server 7.0U7 B12/14/2009 22:58 -
Is there a way to find out the GUI version of a logged in user
Hello all,
SAP provides a method in CL_GUI_FRONT_END_SERVICES called GET_GUI_VERSION. This works fine for supplying the version information for the logged in user.
Unfortunately, it doesn't have any input parameters to specify "ANY" user name.
I'm looking for a way to find out the gui version of all logged in users.
Tables USR41 will give me a list of the logged in users
I can then use USR21, ADR6 and ADRP to get more user info.
But, I can't find a way to determine what GUI version each of the users is using.
Does anyone have any ideas?
Thanks
Ed BakerWe have done in a different way. ie we have used userexit SUSR0001 and coded using
* Collect SAPGUI info of the user logging on
call function 'RFC_SYSTEM_INFO' destination 'SAPGUI'
importing
rfcsi_export = i_rfcsi.
Here i_rfcsi-rfcsaprl contains the version info of SAPGUI
and updated this info in a custom table.
a® -
How to run different Oracle client versions on the same PC
I have developped an application (.Net 2.0, ODP v. 10). I must run it on PC where Oracle client version 8 is installed. The PC cannot be upgraded because of a client software running under this version.
I tried to install ODP v. 10 on this PC in different home, but the software using version 8 stops running.
Can Oracle Instant Client help ? But which version, 11 ? My application is based on ODP 10. Can ODP 10 access database via Instant Client 11 ?
Thanks for your help
LKThe problem on Windows is: The 10g installation changed the default ORACLE_HOME,now it points to 10g and makes the 8.0.5 application invalid,because it runs now in a much higher environment. What I did in a similar situation, I created a batch file, which sets temporarily the old environment (in my case PATH,ORACLE_SID,ORACLE_HOME) and then invokes the application.
I don't know whether such a solution will work for you (8.0.5 is very old,desupported since a long time), my old version was 8.1.7.4.
Werner -
Is there a way to tell the Oracle client version (9i or 10g) that is being used by SQL Developer from within SQL Developer? Our Citirx admin installed 10g client on the server and I am trying to verify that the 10g client is indeed being used by the SQL Developer.
In Toad there is a "Support Bundle" menu option to list the environment information (including the SQL client version) used by Toad. Is there something similar within SQL Developer?I am trying to verify that the 10g client is indeed being used by the SQL DeveloperSQL Developer uses whatever client you're connected to.
You don't believe your admin really installed 10g? C'mon!
Is there something similar within SQL Developer?Reports - Data Dictionary Reports - About your Database - Version Banner
Have fun with 10g,
K. -
Hi,
We are on PT 8.46.04 and FSCM 8.8 and planning to upgrade the Batch NT server Hardware running on Windows Server 2000 SP4 to WIndows Server 2003.
We are also upgrading the Oracle database from 9.0.2.1.0 to 10g.
My question is, do we need to upgrade the Oracle Client on the APP and BATCH servers to match the Database Version or still keep the old Oracle client version which is 9.0.2.1.0?
can we have different database and client versions?
And also does Oracle support client 9.2.0.1.0 on Windows server 2003 .
Any help would be appreciated.
Thanks.can we have different database and client versions?The official and recommanded way by Peoplesoft is to meet the same version between client (what ever client machine, application server and batch server) and the database server.
And also does Oracle support client 9.2.0.1.0 on Windows server 2003 Yes, Oracle 9.2 is certified on Windows 2003 (however, 9.2.0.3 or higher patchset was required).
No, it is not supported because Oracle 9.2 is is not supported anymore.
Nicolas. -
How do I find out the firmware version of my WD Black2?
Dumb question, maybe. How can I find out what firmware version I'm currently on? Need to know this to figure out if I need to update. Thanks
Oops, my mistake, that's the device driver in the OS. I should never post before my second cup of tea. Download and install WDC Lifeguard. Start it, right-mouse click on the drive in question, select Properties, and the firmware version will magically appear. http://support.wdc.com/product/download.asp?level1=6&lang=en
-
Higher version of Oracle client version is compatible with lower version
Higher version of Oracle client version is compatible with lower version Oracle DB
Oracle 10.2.0.5 client version should be compatible with 10.2.0.4 DB ?H wrote:
Higher version of Oracle client version is compatible with lower version Oracle DB
Oracle 10.2.0.5 client version should be compatible with 10.2.0.4 DB ?yes, compatible -
How to find out internet explorer version ,using a java program?
How to find out internet explorer version ,using a java program?
Browser version from java?....you must be referring it from some web application....rite?
You can read the User-Agent header using request.getUserAgent() or request.getHeader("User-Agent") in your jsp or servlet.
for more details pls refer:
http://www.jguru.com/jguru/faq/view.jsp?EID=12253
Maybe you are looking for
-
I bought Griffin A/V cable for Ipod Touch its not working at all I need help
-
How can I load my Microsoft Office documents to iCloud?
I just migrated from Mobile Me to iCloud. How can I get the doucments I had on iDisk into iCloud. They were mostly Microsoft Office docs. Also in the future, if I create an Office doc, how do I get it on iCloud?
-
Setting the Visibility of Groups in a View.
Hi, Here is a Scenario There Two WD Views in View 1 there are three groups,in second group i have a button Next, if i click this button it will navigate to View 2, in View two there are five groups, I want after clicking Next Button only first three
-
Change of Project & WBS Element Definition
Hi, Could you please let me know is there any function module to change the Project Definition ,WBS element Definition for an already existing Project and WBS element. Regards, Hemu Saini.
-
ISE failed to send Guest Email. Internal Error
I'm having problems to send email when I create guest accounts. ISE reports "Internal Error encountered. Please contact administrator or help desk" How can I troubleshoot, what is going on? I'm running version 1.1.2.145 Thanks in advance Daniel Escal