简体   繁体   English

如何在db2 9.7上还原db2 10.1数据库备份

[英]how to restore db2 10.1 database backup on db2 9.7

I am trying to restore the database backup taken from db2 10.1 system, now i want to restore it to db2 9.7 system on windows machine. 我正在尝试还原从db2 10.1系统获取的数据库备份,现在我想将其还原到Windows计算机上的db2 9.7系统。

below is the error i am getting- 以下是我得到的错误-

SQL2542N No match for a database image file was found based on the source database alias "DBASPECT" and timestamp "20160317210717" provided. SQL2542N根据提供的源数据库别名“ DBASPECT”和时间戳“ 20160317210717”,找不到与数据库映像文件匹配的文件。

You can restore a DB2 database backup to the same or newer DB2 version. 您可以将DB2数据库备份还原到相同或更新的DB2版本。 The reason is that the DB2 software needs to know how to handle the image/content. 原因是DB2软件需要知道如何处理图像/内容。 With features added in new DB2 versions, the DB2 9.7 system on your Windows machine cannot know how to handle those V10.1 structures and metadata. 有了新的DB2版本中添加的功能,Windows机器上的DB2 9.7系统无法知道如何处理那些V10.1结构和元数据。

You could try to restore to a DB2 10.1, then extract the schema and data with tools like db2look or db2move and export . 您可以尝试还原到DB2 10.1,然后使用诸如db2lookdb2move类的工具提取模式和数据,然后export You would have scripts and CSV files to rebuild the database on a V9.7 level. 您将具有脚本和CSV文件以在V9.7级别上重建数据库。

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

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