简体   繁体   English

db2模式备份

[英]db2 schema backup

Getting the following error while backing up schema in db2. 在db2中备份模式时发生以下错误。 The schema name is OFFICE . 模式名称是OFFICE

Error: 错误:

SQL0206N "OFFICE" is not valid in the context where it is used. SQL0206N“ OFFICE”在使用它的上下文中无效。
SQLSTATE=42703 SQLSTATE = 42703

The command I used is: 我使用的命令是:

db2 CALL ADMIN.BACKUPSCHEMA \('OFFICE','database/config/db2inst1/' \)

Thanks in advance. 提前致谢。

Try one of the following: 请尝试以下方法之一:

db2 "CALL ADMIN.BACKUPSCHEMA ('OFFICE','database/config/db2inst1/')"
db2 CALL ADMIN.BACKUPSCHEMA \(\'OFFICE\',\'database/config/db2inst1/\' \)

There is no such a standard routine in DB2. DB2中没有这样的标准例程。 If you read the Backup and restore SQL schemas for DB2 Universal Database post where this routine is mentioned, then you must download the backupschema.zip file mentioned there, and create these routines manually with the script inside. 如果阅读了提到该例程的“ 备份和还原DB2通用数据库的SQL模式”一文,则必须下载backupschema.zip提到的backupschema.zip文件,并使用内部脚本手动创建这些例程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM