odp.net - ODP app working for Oracle clients 10 and 11 -
I want to make my app work for targeted machines where the oracle client can be 10 or 11. Is it possible with ODP?
If in my app I refer to Oracle.DataAccess.dll from my Dev Machine (I have ORA Client 11) - My app works on target machines only with client 11 ...
If I refer to ODD from my customer 10 - AP ARA works for machines with client 10.
Is it possible to develop applications (with ODP) that Oracle customer version 10, 11? I am asking for ORA client versions, not the DB version
Thank you!
I think the two versions (hence 2.102.2.20
or Anything on Oracle.DataAccess.dll
) is the safest to build on the bottom.
In case of machines where higher version is installed, you can set a policy in GAC
(global assembly cache). This policy file redirects to applications that use the 2.102.2.20
reference to the new version of ODP.NET
(11.xxx.xx).
Normal Oracle Client Installation This policy file must already be in your GAC
, but if it is not, you can call it ORACLE_HOME \ odp.net \ PublisherPolicy \ 2 .x Should be able to find in
You can start these policy files in your GAC
(Start> Run> % systemroot% \ assembling
).
As long as the correct policy applies, your app should be manufactured with 10 versions, also run on the machine that has Oracle Client 11 installed.
Note: You can also create such a policy file yourself; Take a look for more details
Comments
Post a Comment