When you install Oracle CDD/Repository on your system, the installation procedure creates a template repository (CDD$TEMPLATE) and a repository database directory (CDD$TEMPLATEDB). CDD$TEMPLATE contains the CDD$PROTOCOL directory, which stores all the type definitions Oracle CDD/Repository uses to create metadata. The DEFINE REPOSITORY command creates several files in the specified OpenVMS anchor directory. Oracle CDD/Repository keeps directory information in these files in the anchor directory; Oracle CDD/Repository does not store directory information with the CDO definitions in the Oracle Rdb database. Oracle CDD/Repository creates all new CDO repositories from CDD$TEMPLATE and CDD$TEMPLATEDB. If, after defining customized types in a repository, you want to include these types in all subsequent repositories that you create, you must make them part of the template. To do this, execute the following command procedure: $ @SYS$LIBRARY:CDD_BUILD_TEMPLATE.COM - _$ repository-anchor-dir repository-db-anchor-dir Use the repository-anchor-dir parameter to specify the repository that contains definitions of your customized types. Use the repository-db-anchor-dir parameter to specify the empty directory that will hold database files. Then, rename the CDD$TEMPLATE and CDD$TEMPLATEDB logicals to the parameter names you specified. After you have assigned the logical name CDD$TEMPLATE to a repository, the protocols in that repository's CDD$PROTOCOLS directory will be distributed to any new CDO repository you create. If you have extended the types supplied by Oracle CDD/Repository or if you have created your own types in a repository, you may want to assign the logical name CDD$TEMPLATE to that repository so that these types will be copied into the CDD$PROTOCOLS directory of any subsequent repositories you create. If CDD$TEMPLATE is not defined, each new repository you create will contain only types supplied by Oracle CDD/Repository. If you no longer want to use the templates supplied by Oracle CDD/Repository and want to use only the customized template that you created, delete the original CDD$TEMPLATE and CDD$TEMPLATEDB directories. Modify the following lines the SYS$STARTUP:CDDSTRTUP.COM command procedure to point to the new location of the template: $ DEFINE/NOLOG/SYSTEM/EXEC CDD$TEMPLATE device:[CDD$TEMPLATE] $ DEFINE/NOLOG/SYSTEM/EXEC CDD$TEMPLATEDB device:[CDD$TEMPLATEDB]