Using Oracle.DataAccess.DLL is already on the PC without providing it

I want to make my program more dynamic. I would like it to be able to support Oracle 10g and the Oracle 11g database with the same program. If I create a program using the .DLL link for one version, then the other does not work. Is there a way to use Oracle.DataAccess.DLL, which is already installed on the computer, instead of providing a DLL in my installer?

Thanks in advance.

+3
source share
3 answers

SpecificVersion - , . , , ; SpecificVersion , , . , , . , SpecificVersion , , .

" , Specific Version , " (http://www.code-magazine.com/article.aspx? quickid = 0507041 &. = 3)

, , . oldVersion - (, ), newVersion , .

  <dependentAssembly>
    <assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89B483F429C47342"/>
    <bindingRedirect oldVersion="1.0.0.0-2.111.9999.9999" newVersion="2.102.2.20"/>
  </dependentAssembly>

(. http://msdn.microsoft.com/en-us/library/7wd6ex19.aspx.)

node . web.config app.config / /assemblyBinding node.

Oracle 10g, 11g? , @BQ:

  • ODP.NET. (10g 11g) ODP.NET(10g 11g). . @BQ.
  • , . , app.config, 10g ODP.NET, 11g ODP.NET.

:

  • , , Oracle, GAC. web/app.config
  • , , ODP.NET , IIS, .
+6

Visual Studio "" ( F4), " ". false, DLL.

, DLL. .exe(.. ) GAC, , .

+2

@MattRodatus , , Oracle.DataAccess, , .

However, you must have access to a 10g or 11g database with any version of the Oracle client installation.

See @ the.jxc answer on Oracle: does oracle 10g client work with 11g server? for a good overview with which customers maintain databases.

+1
source

Source: https://habr.com/ru/post/1781288/


All Articles