Oracle安裝XA

來源:互聯網
上載者:User
 1) To install the basic JServer in the Oracle database.. i.e. Complete
Java Runtime, you must run $ORACLE_HOME/javavm/install/initjvm.sql as
SYS. This will give you base JServer which is required to install any
additional Java related add-ons. After the installation, if you run
this query as SYS will give you > 8500 object count.
SQL> select count(*) from user_objects where object_type like 'JAVA%'.
This first step must be done before proceeding with installation of any
other Java related add-ons. You can also run the above query before
running initjvm.sql to see if the JServer is already installed.

By including $ORACLE_HOME/jdbc/lib/classes12.zip in the classpath will
expose all client side XA classes.

2) $ORACLE_HOME/javavm/install/initxa.sql creates the server side
wrapper package called JAVA_XA. This package requires server side XA
classes to be installed in the database i.e. "oracle.jdbc.xa.server.*".
I looked thru some posts in Metalink which only says to run initjvm.sql
followed by initxa.sql. This looks wrong to me since initxa.sql ONLY
creates a plsql wrapper package for server side XA classes. It does not
actually install the server side XA classes which reside in
$ORACLE_HOME/javavm/lib/aurora.zip file. By just running the initxa.sql
and calling one of the package functions will most likely error out
since no underlying class exists. Oracle does not do a check to see if
the java class exists when deploying the wrapper package.
I have not tested this but I am pretty sure that installing
$ORACLE_HOME/javavm/lib/aurora.zip via loadjava tool must be done
before running initxa.sql.. else there is no point just running
initxa.sql without the underlying classes.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.