【问题标题】:install db2 database dump exported from linux to windows安装从linux导出到windows的db2数据库转储
【发布时间】:2023-03-03 06:56:24
【问题描述】:

我有一个来自 linux 系统的数据库转储。现在我必须在 Windows 上的另一个 db2 服务器上建立 db。

我该怎么做?

【问题讨论】:

    标签: linux window db2


    【解决方案1】:

    您无法在这些平台之间恢复,因为它们具有不同的字节序。将 linux 数据库重新创建到 Windows 中的唯一方法是通过导出 - 导入/加载,例如:

    在 Linux 上

    * db2look
    * db2move export
    

    之后,在 Windows 上

    * db2 -tf db2lookFile.sql
    * db2move import
    

    在其他论坛的 StackOverFlow 上有很多关于这个问题的问题。请检查他们

    更多信息请查看:http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0005960.html

    【讨论】:

    • 我同意这一点。我以实例所有者的身份登录 unix box。但是现在当我键入 db2move 命令时,它会告诉“无法识别 db2move 命令”。我需要做任何事情来运行它吗? technomagus.wordpress.com/database/ibm-db2/…
    • 你必须加载 db2profile: 。 /home/db2inst1/sqllib/db2profile
    • 您缺少几个步骤
    猜你喜欢
    • 2012-09-11
    • 2011-09-17
    • 1970-01-01
    • 1970-01-01
    • 2011-05-06
    • 1970-01-01
    • 2017-05-20
    • 1970-01-01
    • 2018-04-24
    相关资源
    最近更新 更多