在11g安装 XML DB 组件
2015-10-20 09:51
417 查看
昨晚做全库impdp导入时,发现有些表使用了xml的存放。导致导入的时候表都无法创建。
因dbca建库的只安装了jvm组件,所以需要安装XML DB组件。
安装步骤如下:
Confirm XML DB is not already installed.
SELECT username FROM DBA_USERS where username = 'XDB'; returns 0 rows.
DESCRIBE RESOURCE_VIEW fails.
As SYS, perform the XML DB installation - Note: this will not be a complete build due to Oracle Bug9818995:
@?/rdbms/admin/catqm.sql xdb <xml db tablespace> <xdb temp tablespace> <use secure files yes|no>
As SYS, grant the relevent permissions to the XDB user:
GRANT EXECUTE ON utl_file TO xdb;
GRANT EXECUTE ON dbms_lob TO xdb;
As SYS, ensure their are no invalid objects:
@?/rdbms/admin/utlrp.sql
Assuming an spfile is in use, as SYS configure the XDB dispatcher:
ALTER SYSTEM SET DISPATCHERS="(PROTOCOL=TCP)(SERVICE=<SID>XDB)" SCOPE=both;
If init.ora is in use, edit the init.ora file instead.
As SYS, install the missing contents caused by Oracle Bug 9818995:
SHUTDOWN IMMEDIATE;
STARTUP UPGRADE
@?/rdbms/admin/xsdbmig.sql
SHUTDOWN IMMEDIATE;
STARTUP
As SYS, ensure their are no invalid objects:
@?/rdbms/admin/utlrp.sql
As SYS, confirm the XML DB is now fully installed by running the following query and returning the following output:
原文地址:http://blog.csdn.net/xionglang7/article/details/38034555
因dbca建库的只安装了jvm组件,所以需要安装XML DB组件。
安装步骤如下:
Confirm XML DB is not already installed.
SELECT username FROM DBA_USERS where username = 'XDB'; returns 0 rows.
DESCRIBE RESOURCE_VIEW fails.
As SYS, perform the XML DB installation - Note: this will not be a complete build due to Oracle Bug9818995:
@?/rdbms/admin/catqm.sql xdb <xml db tablespace> <xdb temp tablespace> <use secure files yes|no>
As SYS, grant the relevent permissions to the XDB user:
GRANT EXECUTE ON utl_file TO xdb;
GRANT EXECUTE ON dbms_lob TO xdb;
As SYS, ensure their are no invalid objects:
@?/rdbms/admin/utlrp.sql
Assuming an spfile is in use, as SYS configure the XDB dispatcher:
ALTER SYSTEM SET DISPATCHERS="(PROTOCOL=TCP)(SERVICE=<SID>XDB)" SCOPE=both;
If init.ora is in use, edit the init.ora file instead.
As SYS, install the missing contents caused by Oracle Bug 9818995:
SHUTDOWN IMMEDIATE;
STARTUP UPGRADE
@?/rdbms/admin/xsdbmig.sql
SHUTDOWN IMMEDIATE;
STARTUP
As SYS, ensure their are no invalid objects:
@?/rdbms/admin/utlrp.sql
As SYS, confirm the XML DB is now fully installed by running the following query and returning the following output:
SELECT object_value FROM xdb.xs$securityclass WHERE EXTRACTVALUE(object_value, '/securityClass/@targetNamespace')='http://xmlns.oracle.com/plsql' AND EXTRACTVALUE(object_value, '/securityClass/@name')='network' / OBJECT_VALUE -------------------------------------------------------------------------------- <securityClass xmlns="http://xmlns.oracle.com/xs" xmlns:dav="DAV:" xmlns:plsql="
原文地址:http://blog.csdn.net/xionglang7/article/details/38034555
相关文章推荐
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- Oracle Containers for J2EE远程安全漏洞(CVE-2014-0413)
- Oracle 10g R2不能使用EM的问题
- 表空间操作
- PreparedStatement中in子句的处理
- VMware下RedHat4.8_64位安装Oracle 10g RAC--简略脚本
- oracle sql日期比较
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- OS block size和Oracle block size,查找OS Blocksize的方法
- XML 与 JSON 优劣对比
- oracle中创建数据库和表空间的几点总结
- 数据库自动备份脚本
- As3.0 xml + Loader应用代码
- 网马生成器 MS Internet Explorer XML Parsing Buffer Overflow Exploit (vista) 0day
- ext读取两种结构的xml的代码
- oracle的nvl函数的使用介绍
- 解决oracle用户连接失败的解决方法
- oracle的一些tips技巧