Page 1 of 1

How determine version of Oracle client (OCI)

Posted: Thu 27 Feb 2014 08:55
by Quido
Hello

Can you help me? I need determine which version of Oracle client/OCI is used. UNIDAC has TOracleHome.DetectOCIClientVersion but it isn't simply avaible...



Update:

I have used oraCallUni.OCIVersionSt and oraCallUni.OCIVersion finally.

Re: How determine version of Oracle client (OCI)

Posted: Thu 27 Feb 2014 10:07
by AlexP
Hello,

To retrieve the information about the server and client version, you can use the following properties:

Code: Select all

UniConnection1.ServerVersion;
UniConnection1.ServerVersionFull;
UniConnection1.ClientVersion;

Re: How determine version of Oracle client (OCI)

Posted: Thu 27 Feb 2014 10:19
by Quido
OK, that's better.
Thanks

Update Delphi documentation of UNIDAC TUniConnection please.

Note: These properties are aviable after connect only. OCI version can be sooner but it's not problem for me now.

Re: How determine version of Oracle client (OCI)

Posted: Thu 27 Feb 2014 15:07
by AlexP
1) We will add description of these methods to the documentation;
2) Since we define the client version either using OCI methods or by the library version, and several Oracle clients can be installed on a PC - we cannot define the version before loading of the used library.