OraProfCfg.exe
is a platform-independent (?) (AnyCPU) tool to configure ODP.NET drivers (managed and unmanaged). _arch
= x86
and one under _arch
= x64
. /action
are optional. /action:<act> | <act> is one of gac, ungac , register , unregister , config or unconfig |
/configfile:path/to/web.config | |
/product:<prod> | <prod> is one of odp , odpm or aspnet . |
/updateonly:… | Values true or false . Only k |
/component:<comp> | <comp> is one of oraclepermission, perfcounter, dbproviderfactory or configsection`. |
/productversion:<product version> | |
/frameworkversion:… | .NET framework version, for example 4.0.30319 |
/providerpath:path/to/provider/assembly | A possible path is %ORACLE_HOME%\ODP.NET\bin\4\Oracle.DataAccess.dll |
/verbose:… | true or false |
/set:[*\]<section name>\<attribute name>:<attribute value> | Set values for specific attribute names (for example oramts_sess_txntimetolive ) under given sections (for example section name distributedTransaction iunder oracle.manageddataaccess.client ) |
/unset:[*\]<section name>\<attribute name>:<attribute value> | |
/log:path/to/log.file | |
/force |
OraProvCfg /action:gac /providerpath:<provider path>
OraProvCfg /action:ungac /providerpath:<assembly name>
/action:ungac
, the provider path can be set to the assembly name and version, for example Oracle.DataAccess, Version=4.112.2.0
. OraProvCfg /action:config /force [/configfile:<app/web.config filepath>] /product:odp [/updateonly:<update only>][/component:<component name>]/frameworkversion:v4.0.30319 /providerpath:<provider path>
/productversion:<product version>
can also be used in place of /providerpath:<providerpath>
dbproviderfactory
or configsection
if user want to configure provider entries only for those specific section. OraProvCfg /action:config /product:odpm [/updateonly:<update only>] [/component:<component name>] /frameworkversion:v4.0.30319 /providerpath:<provider path> /set:distributedTransaction\omtsreco_ip_address:my-pc /set:distributedTransaction\omtsreco_port:2040 /set:distributedTransaction\oramts_sess_txntimetolive:240
configsection
if user does not want to configure dbproviderfactories
section.
/set
or /unset
is supported only with `odpm OraProvCfg /action:config [/configfile:<app/web.config filepath>] /product:odpm [/component:<component name>] /frameworkversion:v4.0.30319 /providerpath:<provider path> /unset:*\distributedTransaction\omtsreco_ip_address
/productversion:<product version>
can also be used in place of /providerpath:<providerpath>.
dbproviderfactory
or configsection
if user want to configure provider entries only for those specific section. OraProvCfg /action:unconfig [/configfile:<app/web.config filepath>] /product:odp /frameworkversion:v4.0.30319 [/providerpath:<provider path>]
/productversion:<product version>
can also be used in place of /providerpath:<providerpath>.
dbproviderfactory
or configsection
if user want to configure provider entries only for those specific section. OraProvCfg /action:config /force [/configfile:<app/web.config filepath>] /product:aspnet /component:<component name> /frameworkversion:v4.0.30319 /providerpath:<provider path>
OraProvCfg /action:unconfig [/configfile:<app/web.config filepath>] /product:aspnet /component:<component name> /frameworkversion:v4.0.30319
OraProvCfg /action:config /product:odp /component:oraclepermission /frameworkversion:v4.0.30319 /providerpath:<providerpath>
/productversion:<product version>
can also be used in place of /providerpath:<providerpath>
/action:unconfig
. Using this option without /providerpath
will remove all OraclePermission entries
OraProvCfg /action:register /product:odp /component:perfcounter /providerpath:<provider path>
/action:unregister