tags:

views:

63

answers:

1

Hello,

I want to my app to work for target machines where the Oracle client could be 10 or 11. Is it possible to do it with ODP?

If in my app I reference Oracle.DataAccess.dll from my dev machine (i have ORA client11) - my app works only on target machines with client 11...

If I reference ODP from my client 10 - the app works only for machines with ORA client 10.

Is it possible to develop application(with ODP) which will work for both Oracle client versions 10, 11? I am asking for ORA client versions, not DB versions.

Thanks!

A: 

I have the same question. I have created a program that uses version 11, but some of the users have applications that uses version 10. So if they install client 11, the programs that uses client 10 stops working.

So, is it possible to have both versions in my program? So that the user can change between using 10 or 11 from a setting in my program? Or are there some other solution?

Ragowit
hi Ragowit,because nobody answered to my question - i came up with this solution:for C#/.Net you may use the app.config file to redirect ranges of versions of a DLL(like Oracle.DataAccess.dll) to a specific version, I think the property was "bindingRedirect"Then compile the application for this version.When you start the app on place with lower version of DLL - it will be used if it fits in the range.I don't know if this is best method toughIf it is not .NET - probably you can use late binding by name
Vlad Bayan

related questions