Installing the Oracle XML Database component

Source: Internet
Author: User

The recent deployment project database encountered an error while compiling the package:


Package CTG. Ctg_csb_common compilation Error

Error: Pls-00201:identifier ' XMLDOM ' must be declared
Line: 124
Text: Function Getvaluebyxpath (Innode in Xmldom.domnode, Inxpath in Varchar2)

Error: Pl/sql:declaration ignored
Line: 124

Text: Function Getvaluebyxpath (Innode in Xmldom.domnode, Inxpath in Varchar2)

Reason: Missing Oracle XML Database component


To verify that XML DB is installed, you can use the Dba_registry view

Select Comp_name "Component" from Dba_registry;
Results:
Component
------------------------------------------
Oracle Database Catalog views

Oracle Database Packages and Types

Workaround: Call the Catqm.sql script to import this component


This script will create the XDB user


Recommended new table space for XML DB

Create Tablespace Xmldb_ts
DataFile ' d:\oracle\databases\ora10\xmldb_ts.dbf ' size 10M autoextend on MaxSize Unlimited
Extent management local uniform size 1M;

Of course, you can also use the Sysaux table space.

At the same time, the pool size should preferably be set large enough

alter system Set shared_pool_size = 80M scope=spfile;
If the shared pool size resets the amount, the database must be restarted.

Run the script. Note: This script can only be run by the SYS user.

When invoking a script, the following parameters are given:

Catqm.sql <XDB_PASSWD> <TABLESPACE> <TEMP_TABLESPACE>

@?/rdbms/admin/catqm Xml_password Xmldb_ts temp;

Verify that the creation was successful:

Select Comp_name "Component" from Dba_registry;

Results:
Component
------------------------------------------
Oracle Database Catalog views
Oracle Database Packages and Types
Oracle XML Database

If you want to unload XML DB:

Sql> @?/rdbms/admin/catnoqm
sql> alter tablespace xmldb_ts offline;
Sql> drop tablespace xmldb_ts including contents;

Ext.: http://blog.csdn.net/vvqboy/article/details/8169344

Installing the Oracle XML Database component

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.