平台:Windows
命令类型:cqload 子命令
cqload importschema 子命令用于从文本文件导入整个模式,并将其添加到模式存储库中。 该子命令可用于和无法访问模式存储库或者使用不同模式存储库的站点共享模式。
在使用 cqload importschema 子命令之前,必须使用 cqload exportschema 子命令导出模式。 要导入部分模式,请使用 cqload importintegration 子命令。
如果某个模式包含当前未安装到模式存储库中的程序包,那么针对每个未找到的程序包都会产生一个错误。在使用 cqload importschema 或 cqload importintegration 子命令之前,请右键单击模式存储库并选择安装程序包以安装缺少的程序包。
cqload importschema -dbset 2013.01.00 admin secret "c:\schema.txt"
C:\cq_schema_rep\test>cqload importschema -dbset test admin secret exported_schema.txt
*********************************************************
Starting importschema
*********************************************************
The import file "exported_schema.txt" is invalid:
The schema requires the following packages, which are not currently installed in the database...
revision '5.0' of package 'Notes'
revision '7.1' of package 'Email'.
*********************************************************
ERROR: importschema FAILED!
*********************************************************