編程生活

             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            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 閱讀(341) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 内江市| 石棉县| 建德市| 蒲城县| 西宁市| 德江县| 罗山县| 隆子县| 和林格尔县| 泰州市| 平邑县| 南宁市| 仁布县| 隆林| 汉沽区| 忻州市| 开平市| 盐亭县| 怀集县| 于都县| 泊头市| 花莲县| 和静县| 合江县| 罗山县| 山东| 甘洛县| 两当县| 武山县| 芒康县| 灵川县| 丰台区| 赤壁市| 石柱| 喀喇沁旗| 襄樊市| 常德市| 稻城县| 长寿区| 安宁市| 望都县|