1.根据q193893,我们需要在oracle里面建立两个视图。
information about using oracle with microsoft transaction server and com+ components
http://support.microsoft.com/?id=193893
根据我们以往的经验,我们可以尝试用sys账号运行oracle自带的脚本。脚本的默认路径在:
c:\oracle\ora92\rdbms\admin\xaview.sql
请在sql plus中运行脚本。
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;
以上的操作是在oracle数据库所在的电脑上进行。下面的操作是在部署com+ 组件的电脑上进行:
1. 根据q193893, 我们需要修改注册表:
hkey_local_machine\software\microsoft\msdtc\mtxoci
"oraclexalib"="oraclient9.dll"
"oraclesqllib"="orasql9.dll"
"oracleocilib"="oci.dll"
如果是windows 2003或者windows xp2,我们还需要建立:
hkey_local_machine\software\microsoft\msdtc\xadll
然后添加名字为:
mtxoci.dll的字符串键,内容为:
c:\windows\system32\mtxoci.dll
2. 如果您是在windows 2003或者windows xp上,我们需要给msdtc账号设定对应的权限。msdtc运行在network service账号下。请您把network service账号添加到administrators组里面。