Before you can do XML schema validation on your XML documents,
you need to set up an XML schema repository.
Before you begin
Besides Db2 for z/OS®, XML schema repository setup
requires that the following software is installed and configured:
- Workload Manager for z/OS (WLM)
- z/OS XML
System Services
- Java™ 2 Technology Edition,
V5 or later, 31-bit version
- IBM® Data Server Driver for JDBC and SQLJ
About this task
Setting up an XML schema repository involves defining
a set of Db2 tables and indexes
that store XML schema information, and setting up a set of stored
procedures that operate on the XML schemas that are stored in the
tables.
Procedure
To set up the XML schema repository:
- Define the XML schema repository objects by running the DSNTIJRT job that was generated by the Db2 installation CLIST.
- Define the WLM environment and startup procedure for the
C language XML schema repository stored procedures.
- Define the WLM environment and startup procedure for the Java language XML schema repository
stored procedure.
- Define the XML schema repository stored procedures to Db2.
- Bind the packages for the XML schema repository stored procedures.
Installation job DSNTIJRT invokes a program that binds the packages for the XML schema repository stored procedures. After the installation process customizes job DSNTIJRT, you can run DSNTIJRT without further modification to bind the packages.
- Bind the packages for the IBM Data Server Driver for JDBC and SQLJ.
- Test the XML schema repository setup.