How determine version of Oracle client (OCI)

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Quido
Posts: 25
Joined: Mon 09 Jan 2006 15:10

How determine version of Oracle client (OCI)

Post by Quido » Thu 27 Feb 2014 08:55

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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: How determine version of Oracle client (OCI)

Post by AlexP » Thu 27 Feb 2014 10:07

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;

Quido
Posts: 25
Joined: Mon 09 Jan 2006 15:10

Re: How determine version of Oracle client (OCI)

Post by Quido » Thu 27 Feb 2014 10:19

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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: How determine version of Oracle client (OCI)

Post by AlexP » Thu 27 Feb 2014 15:07

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.

Post Reply