怎樣安裝和卸載 Oracle XML database (XMLDB/XDB)?____Oracle

來源:互聯網
上載者:User

If you are on database release 10.1.x or 10.2.x the XDB Feature is Mandatory in order to use any of the member functions of the XMLTYPE. This is true even if you are not using the repository , or registered schema aspects of the XDB feature. Before we begin to install it, let's check the steps of how to remove it manually.

    1, Shutdown and restart the database

    2, Connect as sysdba and run catnoqm.sql script. connect / as sysdba
@?/rdbms/admin/catnoqm.sql
drop trigger sys.xdb_installation_trigger;
drop trigger sys.dropped_xdb_instll_trigger;
drop table dropped_xdb_instll_tab;

    3, Modify parameter values in init.ora or spfile. shared_pool_size =150 MB # Or larger value
java_pool_size =150 MB # Or larger value

    4, Create XDB tablespace as XMLDB repository storage, make sure it has 150MB free space.

    5, Restart the database to make the parameters take effect.

    Now we are ready to install a new XDB.

    1, Connect as sysdba and run catqm.sql script. set echo on
spool xdb_install.log
@?/rdbms/admin/catqm.sql xdb_user_pass xdb_tbs temp_tbs

    2, If you are using Oracle 9.2, reconnect as SYSDBA and run catxdbj.sql script. Oracle 10g also has this script, but have nothing to do. @?/rdbms/admin/catxdbj.sql

    3, Change database system parameters in init.ora or spfile. a. Non-RAC
dispatchers="(PROTOCOL=TCP)(SERVICE=<sid>XDB)"
b. RAC
inst1.dispatchers="(PROTOCOL=TCP)(SERVICE=<instanceid1>XDB)"
inst2.dispatchers="(PROTOCOL=TCP)(SERVICE=<instanceid2>XDB)"

    4, Make sure there is no invalid objects in XDB schema, and check XMLDB status in DBA_REGISTRY. select count(*) from dba_objects
where owner='XDB' and status='INVALID';
select comp_name, status, version
from DBA_REGISTRY
where comp_name= 'Oracle XML Database';

    5, Bounce the database to enable the XMLDB protocol.

    The original Oracle metalink notes id is 243554.1

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.