編程生活

             :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            113 隨筆 :: 0 文章 :: 18 評論 :: 0 Trackbacks

          Configuring Oracle for XA

          • Oracle 10.2.0.3 and lower
          • Oracle 10.2.0.4, 11g and higher

          Oracle 10.2.0.3 and lower

          NOTE: this tip was written with Oracle DBMS version 10.2.0.2.0

          How can you know if your Oracle server is correctly configured for XA?

          The simplest and usually the most effective way is the following:

          • logon to SQLPlus (or use another tool if you like); make sure to use the user/password that you are using for your application
          • execute the query: select * from SYS.DBA_PENDING_TRANSACTIONS;

          If this works then XA is configured.

          If not then you should do one or all of the following:

          1. run the oracle scripts 'initxa.sql' and 'xaview.sql' (or ask your DBA to do this for you).
          2. ask your DBA to grant select rights (to your user) on SYS.DBA_PENDING_TRANSACTIONS
          3. for the driver ojdbc14.jar, you also need execute rights on SYS.DBMS_SYSTEM

          The last step is NOT needed for the older (JDK 1.2) drivers in classes12.jar

          Oracle 10.2.0.4, 11g and higher

          For Oracle 10.2.0.4 and up, you no longer need execute rights on SYS.DBMS_SYSTEM. This was fixed in Oracle 10.2.0.4 (BUG 5945463).

          Make sure you are also using client driver ojdbc14 version 10.2.0.4 and up.

          posted on 2013-07-26 09:45 wilesun 閱讀(335) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 吉木萨尔县| 新田县| 鄂伦春自治旗| 洛南县| 青阳县| 佛坪县| 河北省| 金乡县| 宣恩县| 洞口县| 黄山市| 建德市| 成安县| 台东县| 栾川县| 舟山市| 马公市| 樟树市| 乌鲁木齐县| 雅江县| 板桥市| 武穴市| 布拖县| 甘南县| 娄底市| 江口县| 波密县| 阿荣旗| 通州市| 大悟县| 贵州省| 合川市| 蓬溪县| 增城市| 罗江县| 咸宁市| 天台县| 佛教| 镇雄县| 萨迦县| 沈丘县|