h-you / trunk / src / ProcessManagement / packages / Oracle.ManagedDataAccess.12.1.2400 / readme.txt @ 9
履歴 | 表示 | アノテート | ダウンロード (13.2 KB)
1 |
Oracle.ManagedDataAccess Nuget Package Version 12.1.2400 README |
---|---|
2 |
=============================================================== |
3 |
|
4 |
Release 12.1.2400 for ODAC 12c Release 4 |
5 |
|
6 |
Release Notes: Oracle Data Provider for .NET, Managed Driver |
7 |
|
8 |
October 2015 |
9 |
|
10 |
Copyright (c) Oracle Corporation 2015 |
11 |
|
12 |
This document provides information that supplements the Oracle Data Provider for .NET (ODP.NET) documentation. |
13 |
You have downloaded Oracle Data Provider for .NET from Oracle, the license agreement to which is available at |
14 |
http://www.oracle.com/technetwork/licenses/distribution-license-152002.html |
15 |
|
16 |
TABLE OF CONTENTS |
17 |
*New Features |
18 |
*Installation and Configuration Steps |
19 |
*Installation Changes |
20 |
*Documentation Corrections and Additions |
21 |
*Fixed Bugs Since Last ODP.NET NuGet Release |
22 |
*ODP.NET, Managed Driver Tips, Limitations, and Known Issues |
23 |
|
24 |
Note: The 32-bit "Oracle Developer Tools for Visual Studio" download from http://otn.oracle.com/dotnet is |
25 |
required for Entity Framework design-time features and for other Visual Studio designers such as the |
26 |
TableAdapter Wizard. This NuGet download does not enable design-time tools; it only provides run-time support. |
27 |
This version of ODP.NET supports Oracle Database version 10.2 and higher. |
28 |
|
29 |
|
30 |
|
31 |
New Features since Oracle.ManagedDataAccess Nuget Package Version 12.1.022 |
32 |
========================================================================== |
33 |
1. .NET Framework 4.6 Certification |
34 |
ODP.NET, Managed Driver is certified for .NET Framework 4.6. |
35 |
|
36 |
2. Network Data Encryption |
37 |
ODP.NET, Managed Driver supports database security network data encryption using Advanced Encryption Standard |
38 |
(AES), RC4, or Triple-DES to enable more secure database communication over intranet and cloud access. |
39 |
|
40 |
3. Secure External Password Store |
41 |
ODP.NET, Managed Driver supports connection establishment by retrieving password credentials from a client-side |
42 |
Oracle wallet. |
43 |
|
44 |
4. Service Relocation Connection Timeout |
45 |
Whenever a database service becomes unavailable, an application can encounter numerous connectivity errors. |
46 |
To avoid connection attempts to an unavailable service, ODP.NET, Managed Driver blocks any connection attempts |
47 |
until the service is up or until the configured time limit expires from the time when the service DOWN event |
48 |
was received. This feature is useful for planned outages and service relocations. It works with Oracle RAC and |
49 |
Oracle Data Guard. |
50 |
|
51 |
5. Transaction Guard |
52 |
ODP.NET, Managed Driver now supports Transaction Guard. Its API and architecture are the same as ODP.NET, |
53 |
Unmanaged Driver's in ODAC 12c Release 4 to provide improved developer productivity. |
54 |
|
55 |
6. Tracing Enhancements |
56 |
ODP.NET improves and unifies tracing features between managed and unmanaged ODP.NET. Key features include traces |
57 |
now output to a Windows temporary files directory and both providers use the same tracing parameters. |
58 |
|
59 |
|
60 |
|
61 |
Installation and Configuration Steps |
62 |
==================================== |
63 |
The downloads are NuGet packages that can be installed with the NuGet Package Manager. These instructions apply |
64 |
to install ODP.NET, Managed Driver. |
65 |
|
66 |
1. Un-GAC and un-configure any existing assembly (i.e. Oracle.ManagedDataAccess.dll) and policy DLL |
67 |
(i.e. Policy.4.121.Oracle.ManagedDataAccess.dll) for the ODP.NET, Managed Driver, version 12.1.0.2 |
68 |
that exist in the GAC. |
69 |
|
70 |
2. In Visual Studio 2010, 2012, 2013, or 2015 open NuGet Package Manager from an existing Visual Studio project. |
71 |
|
72 |
3. Install the NuGet package from an OTN-downloaded local package source or from nuget.org. |
73 |
|
74 |
|
75 |
From Local Package Source |
76 |
------------------------- |
77 |
A. Click on the Settings button in the lower left of the dialog box. |
78 |
|
79 |
B. Click the "+" button to add a package source. In the Source field, enter in the directory location where the |
80 |
NuGet package(s) were downloaded to. Click the Update button, then the Ok button. |
81 |
|
82 |
C. On the left side, under the Online root node, select the package source you just created. The ODP.NET NuGet |
83 |
packages will appear. |
84 |
|
85 |
|
86 |
From Nuget.org |
87 |
-------------- |
88 |
A. In the Search box in the upper right, search for the package with id, "Oracle.ManagedDataAccess". Verify |
89 |
that the package uses this unique ID to ensure it is the offical Oracle Data Provider for .NET, Managed Driver |
90 |
download. |
91 |
|
92 |
B. Select the package you wish to install. |
93 |
|
94 |
|
95 |
4. Click on the Install button to select the desired NuGet package(s) to include with the project. Accept the |
96 |
license agreement and Visual Studio will continue the setup. |
97 |
|
98 |
5. Open the app/web.config file to configure the ODP.NET connection string and local naming parameters |
99 |
(i.e. tnsnames.ora). Below is an example of configuring the local naming parameters: |
100 |
|
101 |
<oracle.manageddataaccess.client> |
102 |
<version number="*"> |
103 |
<dataSources> |
104 |
<!-- Customize these connection alias settings to connect to Oracle DB --> |
105 |
<dataSource alias="MyDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " /> |
106 |
</dataSources> |
107 |
</version> |
108 |
</oracle.manageddataaccess.client> |
109 |
|
110 |
After following these instructions, ODP.NET is now configured and ready to use. |
111 |
|
112 |
NOTE: ODP.NET, Managed Driver comes with two platform specific assemblies: |
113 |
|
114 |
i. Oracle.ManagedDataAccessDTC.dll (for Distributed Transaction Support) |
115 |
ii. Oracle.ManagedDataAccessIOP.dll (for Kerberos Support) |
116 |
|
117 |
The Oracle.ManagedDataAccessDTC.dll assembly is ONLY needed if you are using Distributed Trasactions and the |
118 |
.NET Framework being used is 4.5.1 or lower. If you are using .NET Framework 4.5.2 or higher, this assembly does |
119 |
not need to be referenced by your application. |
120 |
|
121 |
The Oracle.ManagedDataAccessIOP.dll assembly is ONLY needed if you are using Kerberos. Kerberos users will need |
122 |
to download MIT Kerberos for Windows 4.0.1 or higher from |
123 |
http://web.mit.edu/kerberos/dist/ |
124 |
to utilize ODP.NET, Managed Driver's support of Kerberos. |
125 |
|
126 |
These asssemblies are located under |
127 |
packages\Oracle.ManagedDataAccess.<version>\bin\x64 |
128 |
and |
129 |
packages\Oracle.ManagedDataAccess.<version>\bin\x86 |
130 |
depending on the platform. |
131 |
|
132 |
If these assemblies are required by your application, your Visual Studio project requires additional changes. |
133 |
|
134 |
Use the following steps for your application to use the 64-bit version of Oracle.ManagedDataAccessDTC.dll: |
135 |
|
136 |
1. Right click on the Visual Studio project. |
137 |
2. Select Add -> New Folder |
138 |
3. Name the folder x64. |
139 |
4. Right click on the newly created x64 folder |
140 |
5. Select Add -> Existing Item |
141 |
6. Browse to packages\Oracle.ManagedDataAccess.<version>\bin\x64 under your project solution directory. |
142 |
7. Choose Oracle.ManagedDataAccessDTC.dll |
143 |
8. Click the 'Add' button |
144 |
9. Left click the newly added Oracle.ManagedDataAccessDTC.dll in the x64 folder |
145 |
10. In the properties window, set 'Copy To Output Directory' to 'Copy Always'. |
146 |
|
147 |
For x86 targeted applications, name the folder x86 and add assemblies from the |
148 |
packages\Oracle.ManagedDataAccess.<version>\bin\x86 folder. |
149 |
|
150 |
Use the same steps for adding Oracle.ManagedDataAccessIOP.dll. |
151 |
|
152 |
To make your application platform independent even if it depends on Oracle.ManagedDataAccessDTC.dll and/or |
153 |
Oracle.ManagedDataAccessIOP.dll, create both x64 and x86 folders with the necessary assemblies added to them. |
154 |
|
155 |
|
156 |
|
157 |
Installation Changes |
158 |
==================== |
159 |
The following app/web.config entries are added by including the "Official Oracle ODP.NET, Managed Driver" NuGet package |
160 |
to your application: |
161 |
|
162 |
1) Configuration Section Handler |
163 |
|
164 |
The following entry is added to the app/web.config to enable applications to add an <oracle.manageddataaccess.client> |
165 |
section for ODP.NET, Managed Driver-specific configuration: |
166 |
|
167 |
<configuration> |
168 |
<configSections> |
169 |
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /> |
170 |
</configSections> |
171 |
</configuration> |
172 |
|
173 |
Note: If your application is a web application and the above entry was added to a web.config and the same config |
174 |
section handler for "oracle.manageddataaccess.client" also exists in machine.config but the "Version" attribute values |
175 |
are different, an error message of "There is a duplicate 'oracle.manageddataaccess.client' section defined." may be |
176 |
observed at runtime. If so, the config section handler entry in the machine.config for |
177 |
"oracle.manageddataaccess.client" has to be removed from the machine.config for the web application to not encounter |
178 |
this error. But given that there may be other applications on the machine that depended on this entry in the |
179 |
machine.config, this config section handler entry may need to be moved to all of the application's .NET config file on |
180 |
that machine that depend on it. |
181 |
|
182 |
2) DbProviderFactories |
183 |
|
184 |
The following entry is added for applications that use DbProviderFactories and DbProviderFactory classes. Also, any |
185 |
DbProviderFactories entry for "Oracle.ManagedDataAccess.Client" in the machine.config will be ignored with the following |
186 |
entry: |
187 |
|
188 |
<configuration> |
189 |
<system.data> |
190 |
<DbProviderFactories> |
191 |
<remove invariant="Oracle.ManagedDataAccess.Client" /> |
192 |
<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.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" /> |
193 |
</DbProviderFactories> |
194 |
</system.data> |
195 |
</configuration> |
196 |
|
197 |
3) Dependent Assembly |
198 |
|
199 |
The following entry is created to ignore policy DLLs for Oracle.ManagedDataAccess.dll and always use the |
200 |
Oracle.ManagedDataAccess.dll version that is specified by the newVersion attribute in the <bindingRedirect> element. |
201 |
The newVersion attribute corresponds to the Oracle.ManagedDataAccess.dll version which came with the NuGet package |
202 |
associated with the application. |
203 |
|
204 |
<configuration> |
205 |
<runtime> |
206 |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
207 |
<dependentAssembly> |
208 |
<publisherPolicy apply="no" /> |
209 |
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" /> |
210 |
<bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.121.2.0" /> |
211 |
</dependentAssembly> |
212 |
</assemblyBinding> |
213 |
</runtime> |
214 |
</configuration> |
215 |
|
216 |
4) Data Sources |
217 |
|
218 |
The following entry is added to provide a template on how a data source can be configured in the app/web.config. |
219 |
Simply rename "MyDataSource" to an alias of your liking and modify the PROTOCOL, HOST, PORT, SERVICE_NAME as required |
220 |
and un-comment the <dataSource> element. Once that is done, the alias can be used as the "data source" attribute in |
221 |
your connection string when connecting to an Oracle Database through ODP.NET, Managed Driver. |
222 |
|
223 |
<configuration> |
224 |
<oracle.manageddataaccess.client> |
225 |
<version number="*"> |
226 |
<dataSources> |
227 |
<dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " /> |
228 |
</dataSources> |
229 |
</version> |
230 |
</oracle.manageddataaccess.client> |
231 |
</configuration> |
232 |
|
233 |
|
234 |
|
235 |
Documentation Corrections and Additions |
236 |
======================================= |
237 |
This section contains information that corrects or adds to existing ODP.NET documentation, which can be found here: |
238 |
http://www.oracle.com/technetwork/topics/dotnet/tech-info/index.html |
239 |
|
240 |
1. ODP.NET Entity Framework Database First and Model First applications using Entity Framework 6 requires .NET |
241 |
Framework 4.5 or higher. |
242 |
|
243 |
2. All Oracle database clients support interrupting database query execution, such as through an ODP.NET command |
244 |
timeout. The database server can be interrupted via either TCP/IP urgent data or normal TCP/IP data, called out of band |
245 |
(OOB) or in band data, respectively. Windows-based database servers only support in band breaks, whereas all other |
246 |
(predominantly UNIX-based) database servers can support OOB or in band breaks. ODP.NET, Managed Driver uses OOB breaks |
247 |
by default with database servers that support it. For certain network topologies, the routers or firewalls involved in |
248 |
the route to the database may have been configured to drop urgent data or in band the data. If the routers or firewalls |
249 |
can not be changed to handle urgent data appropriately, then the ODP.NET, Managed Driver can be configured to utilize |
250 |
in band breaks by setting the .NET configuration parameter disable_oob to "on". The default value for disable_oob is |
251 |
"off". disable_oob can be set in the <settings> of the .NET config file for <oracle.manageddataaccess.client>. As with |
252 |
all ODP.NET, Managed Driver settings, disable_oob can be set in either the .NET config or sqlnet.ora files, whereas it |
253 |
can only be set for ODP.NET, Unmanaged Driver in the sqlnet.ora file. |
254 |
|
255 |
|
256 |
|
257 |
ODP.NET, Managed Driver Tips, Limitations, and Known Issues |
258 |
=========================================================== |
259 |
This section contains information that is specific to ODP.NET, Managed Driver. |
260 |
|
261 |
1. OracleConnection object's OpenWithNewPassword() method invocation will result in an ORA-1017 error with 11.2.0.3.0 |
262 |
and earlier versions of the database. [Bug 12876992] |
263 |
|
264 |
2. Stored functions/procedures in a PDB cannot be added to a .NET Entity Framework model. [Bug 17344899] |