首页 > 数据库 > Oracle > 正文

在MTS使用ODP读写Oracle是出现错误:无法加载 OraMTS 的解决办法

2020-03-09 22:53:18
字体:
来源:转载
供稿:网友
在oracle数据库的机器上操作:
1.根据kb 193893, 在oracle里面建立两个视图,请使用sys账号。
   脚本的默认路径在:oracle/ora92/rdbms/admin/xaview
2.建立两个视图以后,需要给这两个新建立的视图添加public权限:
   sql>grant select on v$xatrans$ to public with grant option; 
   sql>grant select on v$pending_xatrans$ to public with grant option; 
   sql>grant select any table to public;

在部署com+ 组件的电脑上进行以下操作:
1. 根据kb 193893, 修改注册表:
    hkey_local_machine oftware/microsoft/msdtc/mtxoci
          "oraclexalib"="oraclient9.dll"
          "oraclesqllib"="orasql9.dll"
          "oracleocilib"="oci.dll"
    如果是windows 2003或者windows xp2,我们还需要建立
    hkey_local_machine oftware/microsoft/msdtc/xadll
    然后添加名字为:
            mtxoci.dll的字符串键
            内容为:c:/windows ystem32/mtxoci.dll
2. 如果您是在windows 2003或者windows xp上,我们需要给msdtc账号设定对应的权限。msdtc运行在network service账号下。请您把network service账号添加到administrators组里面。
3.将msvcrtd.dll拷到c:/windows ystem32
4. 重新启动。运行程序。
注册会员,创建你的web开发资料库,
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表