, , IIS , ( 4.0), , DLL .
/ odp,
% Ora_home\\11.2.0\client_1\odp.net\Bin\4\OraProvCfg.exe
, readme ( , ):
% Ora_home\\11.2.0\client_1\odp.net\DOC\readme.txt( , , , )
==============================
ORACLEPERMISSION RELATED NOTES
==============================
1. Configuring OraclePermission for Web Applications in high or medium trust
For Web Applications operating under high or medium trust, OraclePermission
needs to be configured in the appropriate "web_<trust level>.config" file so
that the application does not encounter any security errors. This
configuration can be done through the OracProvCfg tool. OraProvCfg.exe will
make the appropriate entries in both web_hightrust.config as well as
web_mediumtrust.config associated with the specified .NET framework version.
Given below is an example on the usage of OraProvCfg tool for configuring
OraclePermission in a .NET 2.0 web application:
OraProvCfg.exe /action:config /product:odp /component:oraclepermission
/frameworkversion:v4.0.30319
/providerpath:<Oracle.DataAccess.dll full path>
On running the above command, The following entry will be made in
"web_hightrust.config" and "web_mediumtrust.config" under ASP.NET permissionset
<IPermission class="Oracle.DataAccess.Client.OraclePermission, Oracle.DataAccess, Version=4.112.2.50, Culture=neutral, PublicKeyToken=89b483f429c47342" version="1" Unrestricted="true" />
OraProvCfg can also be used to remove these entries from these config files
when they need to be removed.
OraProvCfg.exe /action:unconfig /product:odp /component:oraclepermission
/frameworkversion:v4.0.30319
/providerpath:<Oracle.DataAccess.dll full path>
2. Configuring OraclePermission For Windows Applications in partial trust
For Windows applications operating in a partial trust environment, the
OraclePermission entry should be specified under the appropriate permission
set in security.config file. (Security.config is available in
%windir%\Microsoft.NET\Framework\{version}\CONFIG). The example below
specifies the OraclePermission entry that would be required for a .NET 2.0
Windows application
<IPermission class="Oracle.DataAccess.Client.OraclePermission, Oracle.DataAccess, Version=4.112.2.50, Culture=neutral, PublicKeyToken=89b483f429c47342" version="1" Unrestricted="true" />
( " web_hightrust.config" " web_mediumtrust.config" )
<IPermission class="Oracle.DataAccess.Client.OraclePermission,
Oracle.DataAccess, Version=4.112.2.50, Culture=neutral,
PublicKeyToken=89b483f429c47342" version="1" Unrestricted="true" />
( readme -3 EF, , )
(, )
https://forums.oracle.com/forums/thread.jspa?threadID=575320
HTH