importschema 子命令是 cqload 命令行实用程序的一部分,用于从文本文件导入整个模式,并将其添加到您的模式存储库中。该子命令可用于和无法访问模式存储库或者使用不同模式存储库的站点共享模式。
在使用 importschema 之前,您必须使用 exportschema 命令导出该模式。要导入部分模式,请使用 importintegration 子命令。
如果某个模式包含当前未安装到模式存储库中的程序包,那么针对每个未找到的程序包都会产生一个错误。在使用 importschema 或 importintegration 子命令之前,右键单击模式存储库以显示弹出菜单,然后选择安装程序包以安装缺少的程序包。
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!
*********************************************************