Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. Oracle.ManagedDataAccess NuGet Package 19.6.0 README
  2. ====================================================
  3. Release Notes: Oracle Data Provider for .NET, Managed Driver
  4. November 2019
  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 from Oracle, the license agreement to which is available at
  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 and higher.
  19. New Features
  20. ============
  21. None
  22. Bug Fixes since Oracle.ManagedDataAccess NuGet Package 19.5.0
  23. =============================================================
  24. 30355981 ORABUFWRITER:READRESETRESPONSE - UNEXPECTED PACKET RECEIVED
  25. 30266960 CONNECTION CREATION DELAY IS OBSERVED WHEN TRYING TO OPEN CONNECTION FOR SECOND TIME IN ASP.NET APPLICATION
  26. 30190314 DOUBLE QUATED PLACEFOLDER CAUSE 'INVALID PARAMETER BINDING' WITH BINDBYNAME=TRUE ON ODP.NET MANAGED AND CORE
  27. 30134453 LONG COLUMN DOES NOT RETURN DATA
  28. 30107816 ODP.NET MANAGED & CORE : THROWING "INDEX WAS OUTSIDE THE BOUNDS OF THE ARRAY" ERROR AFTER UPGRADING DB TO 18C
  29. 29956349 METACHARACTERS IN NETWORK SHARE DIRECTORY PATH FOR TNSADMIN PRODUCE INCORRECT PATH NAME
  30. 29885887 ORACLEREFCURSOR: SLOWER PERFORMANCE USING IDENTITY VS. SEQUENCE
  31. 29822515 INVALIDCASTEXCEPTION OCCUR WHEN ODP.NET MANAGED AND CORE ISSUES SQL WITH ARRAY BIND
  32. 29760546 GETSCHEMATABLE SPLITS DBLINK INTO MORE THAN THREE PARTS CAUSING INDEXOUTOFRANGEEXCEPTION
  33. 29630212 CALL TO UPDATE ON DA FAILS WITH NULLREFERENCEEXCEPTION WHEN UPDATEBATCHSIZE > 1
  34. 29237698 DIFFERENT VALUE IS SET TO DATATABLE.COLUMNS.READONLY PROPERTY FOR ODP.NET MANAGED & CORE
  35. 29183084 ODP.NET MANAGED & CORE : CONNECTION.CLOSE DOES NOT CLEAR MODULE, ACTION, CLIENT_IDENTIFIER ATTRIBUTES IN V$SESSION
  36. 28468785 ASSOCIATIVE ARRAY WITH RAW OUT PARAMETER TRUNCATES DATA
  37. 27815019 ORACLEDECIMAL.VALUE RETURNS INCORRECT VALUE AFTER SETPRECISION
  38. 26894469 APPLICATIONS RECEIEVE HA/FAN EVENTS THAT NOT ESSENTIAL FOR CONNECTION CLEAN-UP
  39. 24289289 INLINE SQL COMMENT /**/ CAUSES INDEX OUTSIDE THE BOUNDS OF THE ARRAY ERROR
  40. Installation and Configuration Steps
  41. ====================================
  42. The downloads are NuGet packages that can be installed with the NuGet Package Manager. These instructions apply
  43. to install ODP.NET, Managed Driver.
  44. 1. Un-GAC and un-configure any existing assembly (i.e. Oracle.ManagedDataAccess.dll) and policy DLL
  45. (i.e. Policy.4.122.Oracle.ManagedDataAccess.dll) for the ODP.NET, Managed Driver, version 4.122.19.1
  46. that exist in the GAC. Remove all references of Oracle.ManagedDataAccess from machine.config file, if any exists.
  47. 2. In Visual Studio, open NuGet Package Manager from an existing Visual Studio project.
  48. 3. Install the NuGet package from an OTN-downloaded local package source or from nuget.org.
  49. From Local Package Source
  50. -------------------------
  51. A. Click on the Settings button in the lower left of the dialog box.
  52. B. Click the "+" button to add a package source. In the Source field, enter in the directory location where the
  53. NuGet package(s) were downloaded to. Click the Update button, then the Ok button.
  54. C. On the left side, under the Online root node, select the package source you just created. The ODP.NET NuGet
  55. packages will appear.
  56. From Nuget.org
  57. --------------
  58. A. In the Search box in the upper right, search for the package with id, "Oracle.ManagedDataAccess". Verify
  59. that the package uses this unique ID to ensure it is the official Oracle Data Provider for .NET, Managed Driver
  60. download.
  61. B. Select the package you wish to install.
  62. 4. Click on the Install button to select the desired NuGet package(s) to include with the project. Accept the
  63. license agreement and Visual Studio will continue the setup.
  64. 5. Open the app/web.config file to configure the ODP.NET connection string and connect descriptors.
  65. Below is an example of configuring the net service aliases and connect descriptors parameters:
  66. <oracle.manageddataaccess.client>
  67. <version number="*">
  68. <dataSources>
  69. <!-- Customize these connection alias settings to connect to Oracle DB -->
  70. <dataSource alias="MyDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  71. </dataSources>
  72. </version>
  73. </oracle.manageddataaccess.client>
  74. After following these instructions, ODP.NET is now configured and ready to use.
  75. IMPORTANT: Oracle recommends configuring net service aliases and connect descriptors in a .NET config file to
  76. have the application configuration be self-contained rather than using tnsnames.ora or TNS_ADMIN.
  77. NOTE: ODP.NET, Managed Driver comes with one set of platform specific assemblies for Kerberos support: Oracle.ManagedDataAccessIOP.dll.
  78. The Oracle.ManagedDataAccessIOP.dll assembly is ONLY needed if you are using Kerberos5 based external
  79. authentication. Kerberos5 users will need to download MIT Kerberos for Windows version 4.0.1 from
  80. https://web.mit.edu/kerberos/dist/
  81. to utilize ODP.NET, Managed Driver's support of Kerberos5.
  82. The asssemblies are located under
  83. packages\Oracle.ManagedDataAccess.<version>\bin\x64
  84. and
  85. packages\Oracle.ManagedDataAccess.<version>\bin\x86
  86. depending on the platform.
  87. If these assemblies are required by your application, your Visual Studio project requires additional changes.
  88. Use the following steps for your application to use the 64-bit version of Oracle.ManagedDataAccessIOP.dll:
  89. 1. Right click on the Visual Studio project.
  90. 2. Select Add -> New Folder.
  91. 3. Name the folder x64.
  92. 4. Right click on the newly created x64 folder.
  93. 5. Select Add -> Existing Item.
  94. 6. Browse to packages\Oracle.ManagedDataAccess.<version>\bin\x64 under your project solution directory.
  95. 7. Choose Oracle.ManagedDataAccessIOP.dll.
  96. 8. Click the 'Add' button.
  97. 9. Left click the newly added Oracle.ManagedDataAccessIOP.dll in the x64 folder.
  98. 10. In the properties window, set 'Copy To Output Directory' to 'Copy Always'.
  99. For x86 targeted applications, name the folder x86 and add assemblies from the
  100. packages\Oracle.ManagedDataAccess.<version>\bin\x86 folder.
  101. 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.
  102. Installation Changes
  103. ====================
  104. The following app/web.config entries are added by including the "Official Oracle ODP.NET, Managed Driver" NuGet package
  105. to your application:
  106. 1) Configuration Section Handler
  107. The following entry is added to the app/web.config to enable applications to add an <oracle.manageddataaccess.client>
  108. section for ODP.NET, Managed Driver-specific configuration:
  109. <configuration>
  110. <configSections>
  111. <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  112. </configSections>
  113. </configuration>
  114. Note: If your application is a web application and the above entry was added to a web.config and the same config
  115. section handler for "oracle.manageddataaccess.client" also exists in machine.config but the "Version" attribute values
  116. are different, an error message of "There is a duplicate 'oracle.manageddataaccess.client' section defined." may be
  117. observed at runtime. If so, the config section handler entry in the machine.config for
  118. "oracle.manageddataaccess.client" has to be removed from the machine.config for the web application to not encounter
  119. this error. But given that there may be other applications on the machine that depended on this entry in the
  120. machine.config, this config section handler entry may need to be moved to all of the application's .NET config file on
  121. that machine that depend on it.
  122. 2) DbProviderFactories
  123. The following entry is added for applications that use DbProviderFactories and DbProviderFactory classes. Also, any
  124. DbProviderFactories entry for "Oracle.ManagedDataAccess.Client" in the machine.config will be ignored with the following
  125. entry:
  126. <configuration>
  127. <system.data>
  128. <DbProviderFactories>
  129. <remove invariant="Oracle.ManagedDataAccess.Client" />
  130. <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" />
  131. </DbProviderFactories>
  132. </system.data>
  133. </configuration>
  134. 3) Dependent Assembly
  135. The following entry is created to ignore policy DLLs for Oracle.ManagedDataAccess.dll and always use the
  136. Oracle.ManagedDataAccess.dll version that is specified by the newVersion attribute in the <bindingRedirect> element.
  137. The newVersion attribute corresponds to the Oracle.ManagedDataAccess.dll version which came with the NuGet package
  138. associated with the application.
  139. <configuration>
  140. <runtime>
  141. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  142. <dependentAssembly>
  143. <publisherPolicy apply="no" />
  144. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  145. <bindingRedirect oldVersion="4.122.0.0 - 4.65535.65535.65535" newVersion="4.122.19.1" />
  146. </dependentAssembly>
  147. </assemblyBinding>
  148. </runtime>
  149. </configuration>
  150. 4) Data Sources
  151. The following entry is added to provide a template on how a data source can be configured in the app/web.config.
  152. Simply rename "MyDataSource" to an alias of your liking and modify the PROTOCOL, HOST, PORT, SERVICE_NAME as required
  153. and un-comment the <dataSource> element. Once that is done, the alias can be used as the "data source" attribute in
  154. your connection string when connecting to an Oracle Database through ODP.NET, Managed Driver.
  155. <configuration>
  156. <oracle.manageddataaccess.client>
  157. <version number="*">
  158. <dataSources>
  159. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  160. </dataSources>
  161. </version>
  162. </oracle.manageddataaccess.client>
  163. </configuration>
  164. Documentation Corrections and Additions
  165. =======================================
  166. None
  167. ODP.NET, Managed Driver Tips, Limitations, and Known Issues
  168. ===========================================================
  169. None
  170. Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.