readme.txt 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. Oracle.ManagedDataAccess NuGet Package 19.14.0 README
  2. =====================================================
  3. Release Notes: Oracle Data Provider for .NET, Managed Driver
  4. December 2021
  5. This document provides information that supplements the Oracle Data Provider for .NET (ODP.NET) documentation.
  6. You have downloaded Oracle Data Provider for .NET. The license agreement is available here:
  7. https://www.oracle.com/downloads/licenses/distribution-license.html
  8. TABLE OF CONTENTS
  9. *New Features
  10. *Bug Fixes
  11. *Installation and Configuration Steps
  12. *Installation Changes
  13. *Documentation Corrections and Additions
  14. *ODP.NET, Managed Driver Tips, Limitations, and Known Issues
  15. Note: The 32-bit "Oracle Developer Tools for Visual Studio" download from https://otn.oracle.com/dotnet is
  16. required for Entity Framework design-time features and for other Visual Studio designers such as the
  17. TableAdapter Wizard. This NuGet download does not enable design-time tools; it only provides run-time support.
  18. This version of ODP.NET supports Oracle Database version 11.2.0.4 and higher.
  19. Bug Fixes since Oracle.ManagedDataAccess NuGet Package 19.13.1
  20. ==============================================================
  21. Bug 33576541 - BULK COPY CANNOT INSERT MORE THAN 255 COLUMNS
  22. Installation and Configuration Steps
  23. ====================================
  24. The downloads are NuGet packages that can be installed with the NuGet Package Manager. These instructions apply
  25. to install ODP.NET, Managed Driver.
  26. 1. Un-GAC and un-configure any existing assembly (i.e. Oracle.ManagedDataAccess.dll) and policy DLL
  27. (i.e. Policy.4.122.Oracle.ManagedDataAccess.dll) for the ODP.NET, Managed Driver, version 4.122.19.1
  28. that exist in the GAC. Remove all references of Oracle.ManagedDataAccess from machine.config file, if any exists.
  29. 2. In Visual Studio, open NuGet Package Manager from an existing Visual Studio project.
  30. 3. Install the NuGet package from NuGet Gallery (nuget.org).
  31. From Local Package Source
  32. -------------------------
  33. A. Click on the Settings button in the lower left of the dialog box.
  34. B. Click the "+" button to add a package source. In the Source field, enter in the directory location where the
  35. NuGet package(s) were downloaded to. Click the Update button, then the Ok button.
  36. C. On the left side, under the Online root node, select the package source you just created. The ODP.NET NuGet
  37. packages will appear.
  38. From Nuget.org
  39. --------------
  40. A. In the Search box in the upper right, search for the package with id, "Oracle.ManagedDataAccess". Verify
  41. that the package uses this unique ID to ensure it is the official Oracle Data Provider for .NET, Managed Driver
  42. download.
  43. B. Select the package you wish to install.
  44. 4. Click on the Install button to select the desired NuGet package(s) to include with the project. Accept the
  45. license agreement and Visual Studio will continue the setup.
  46. 5. Open the app/web.config file to configure the ODP.NET connection string and connect descriptors.
  47. Below is an example of configuring the net service aliases and connect descriptors parameters:
  48. <oracle.manageddataaccess.client>
  49. <version number="*">
  50. <dataSources>
  51. <!-- Customize these connection alias settings to connect to Oracle DB -->
  52. <dataSource alias="MyDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  53. </dataSources>
  54. </version>
  55. </oracle.manageddataaccess.client>
  56. After following these instructions, ODP.NET is now configured and ready to use.
  57. IMPORTANT: Oracle recommends configuring net service aliases and connect descriptors in a .NET config file to
  58. have the application configuration be self-contained rather than using tnsnames.ora or TNS_ADMIN.
  59. NOTE: ODP.NET, Managed Driver comes with one set of platform specific assemblies for Kerberos support: Oracle.ManagedDataAccessIOP.dll.
  60. The Oracle.ManagedDataAccessIOP.dll assembly is ONLY needed if you are using Kerberos5 based external
  61. authentication. Kerberos5 users will need to download MIT Kerberos for Windows version 4.0.1 from
  62. https://web.mit.edu/kerberos/dist/
  63. to utilize ODP.NET, Managed Driver's support of Kerberos5.
  64. The asssemblies are located under
  65. packages\Oracle.ManagedDataAccess.<version>\bin\x64
  66. and
  67. packages\Oracle.ManagedDataAccess.<version>\bin\x86
  68. depending on the platform.
  69. If these assemblies are required by your application, your Visual Studio project requires additional changes.
  70. Use the following steps for your application to use the 64-bit version of Oracle.ManagedDataAccessIOP.dll:
  71. 1. Right click on the Visual Studio project.
  72. 2. Select Add -> New Folder.
  73. 3. Name the folder x64.
  74. 4. Right click on the newly created x64 folder.
  75. 5. Select Add -> Existing Item.
  76. 6. Browse to packages\Oracle.ManagedDataAccess.<version>\bin\x64 under your project solution directory.
  77. 7. Choose Oracle.ManagedDataAccessIOP.dll.
  78. 8. Click the 'Add' button.
  79. 9. Left click the newly added Oracle.ManagedDataAccessIOP.dll in the x64 folder.
  80. 10. In the properties window, set 'Copy To Output Directory' to 'Copy Always'.
  81. For x86 targeted applications, name the folder x86 and add assemblies from the
  82. packages\Oracle.ManagedDataAccess.<version>\bin\x86 folder.
  83. To make your application platform independent even if it depends on Oracle.ManagedDataAccessIOP.dll, create both x64 and x86 folders with the necessary assemblies added to them.
  84. Installation Changes
  85. ====================
  86. The following app/web.config entries are added by including the ODP.NET, Managed Driver NuGet package to your application:
  87. 1) Configuration Section Handler
  88. The following entry is added to the app/web.config to enable applications to add an <oracle.manageddataaccess.client>
  89. section for ODP.NET, Managed Driver-specific configuration:
  90. <configuration>
  91. <configSections>
  92. <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  93. </configSections>
  94. </configuration>
  95. Note: If your application is a web application and the above entry was added to a web.config and the same config
  96. section handler for "oracle.manageddataaccess.client" also exists in machine.config but the "Version" attribute values
  97. are different, an error message of "There is a duplicate 'oracle.manageddataaccess.client' section defined." may be
  98. observed at runtime. If so, the config section handler entry in the machine.config for
  99. "oracle.manageddataaccess.client" has to be removed from the machine.config for the web application to not encounter
  100. this error. But given that there may be other applications on the machine that depended on this entry in the
  101. machine.config, this config section handler entry may need to be moved to all of the application's .NET config file on
  102. that machine that depend on it.
  103. 2) DbProviderFactories
  104. The following entry is added for applications that use DbProviderFactories and DbProviderFactory classes. Also, any
  105. DbProviderFactories entry for "Oracle.ManagedDataAccess.Client" in the machine.config will be ignored with the following
  106. entry:
  107. <configuration>
  108. <system.data>
  109. <DbProviderFactories>
  110. <remove invariant="Oracle.ManagedDataAccess.Client" />
  111. <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  112. </DbProviderFactories>
  113. </system.data>
  114. </configuration>
  115. 3) Dependent Assembly
  116. The following entry is created to ignore policy DLLs for Oracle.ManagedDataAccess.dll and always use the
  117. Oracle.ManagedDataAccess.dll version that is specified by the newVersion attribute in the <bindingRedirect> element.
  118. The newVersion attribute corresponds to the Oracle.ManagedDataAccess.dll version which came with the NuGet package
  119. associated with the application.
  120. <configuration>
  121. <runtime>
  122. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  123. <dependentAssembly>
  124. <publisherPolicy apply="no" />
  125. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  126. <bindingRedirect oldVersion="4.122.0.0 - 4.65535.65535.65535" newVersion="4.122.19.1" />
  127. </dependentAssembly>
  128. </assemblyBinding>
  129. </runtime>
  130. </configuration>
  131. 4) Data Sources
  132. The following entry is added to provide a template on how a data source can be configured in the app/web.config.
  133. Simply rename "MyDataSource" to an alias of your liking and modify the PROTOCOL, HOST, PORT, SERVICE_NAME as required
  134. and un-comment the <dataSource> element. Once that is done, the alias can be used as the "data source" attribute in
  135. your connection string when connecting to an Oracle Database through ODP.NET, Managed Driver.
  136. <configuration>
  137. <oracle.manageddataaccess.client>
  138. <version number="*">
  139. <dataSources>
  140. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  141. </dataSources>
  142. </version>
  143. </oracle.manageddataaccess.client>
  144. </configuration>
  145. Documentation Corrections and Additions
  146. =======================================
  147. None
  148. ODP.NET, Managed Driver Tips, Limitations, and Known Issues
  149. ===========================================================
  150. None
  151. Copyright (c) 2021, 2022, Oracle and/or its affiliates.