oracle数据库xdb,怎样安装和卸载 Oracle XML database (XMLDB/XDB)?

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=XDB)"

b. RAC

inst1.dispatchers="(PROTOCOL=TCP)(SERVICE=XDB)"

inst2.dispatchers="(PROTOCOL=TCP)(SERVICE=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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值