Platform: Windows
Command type: cqload subcommand
[-dbset name ] login password "schema_pathname"
The importschema subcommand, part of the cqload command line utility, imports an entire schema from a text file and adds it to your schema repository. This subcommand is useful for sharing schemas with sites that can not access your schema repository or that use a different schema repository.
Before using importschema, you must export the schema using the cqload exportschema subcommand. To import a partial schema, use the cqload importintegration subcommand.
If a schema contains packages that are not currently installed into the schema repository, an error occurs for each package that is not found. Before using importschema or the importintegration subcommand, right-click on a schema repository to display the pop-up menu and select install package to install the missing packages.
cqload importschema -dbset 2003.06.00 admin "" "c:\schema.txt"
C:\cq_schema_rep\test>cqload importschema -dbset test admin "" exported_schema.txt
*********************************************************
Starting importschema
*********************************************************
The import file "exported_schema.txt" is invalid:
The schema requires the following package(s), which is(are) not currently installed in the database...
revision '5.0' of package 'Notes'
revision '7.1' of package 'Email'.
*********************************************************
ERROR: importschema FAILED!
*********************************************************