db2cfexp与db2cfimp

本文遵循BY-SA版权协议,转载请附上原文出处链接。


本文作者: 黑伴白

本文链接: http://heibanbai.com.cn/posts/495c053a/

db2cfexp与db2cfimp

db2cfexp - 连接配置导出工具命令

Exports connectivity configuration information to an export profile, which can later be imported at another Db2® database workstation instance of similar instance type (that is, client instance to client instance). The resulting profile will contain only configuration information associated with the current Db2 database instance. This profile can be referred to as a client configuration profile or a configuration profile of an instance.

This utility exports connectivity configuration information into a file known as a configuration profile. It is a non-interactive utility that packages all of the configuration information needed to satisfy the requirements of the export options specified. Items that can be exported are:

  • Database information (including DCS and ODBC information)
  • Node information
  • Protocol information
  • database manager configuration settings
  • registry settings
  • Common ODBC/CLI settings.

This utility is especially useful in situations where multiple similar remote Db2 clients are to be installed, configured, and maintained (for example, cloning or making templates of client configurations).

将连接配置信息导出到导出概要文件,稍后可以在另一个类似实例类型 (即客户机实例到客户机实例) 的 Db2® 数据库工作站实例上导入这些信息。 生成的概要文件将仅包含与当前 Db2 数据库实例相关联的配置信息。 此概要文件可以称为 客户机 配置概要文件或 实例的配置概要文件。

此实用程序将连接配置信息导出到称为配置概要文件的文件中。 它是一个非交互式实用程序,用于打包满足指定导出选项的需求所需的所有配置信息。 可以导出的项包括:

  • 数据库信息 (包括 DCS 和 ODBC 信息)
  • 节点信息
  • 协议信息
  • 数据库管理器配置设置
  • 注册表设置
  • 公共 ODBC/CLI 设置。

在要安装,配置和维护多个类似的远程 Db2 客户机 (例如,克隆或制作客户机配置模板) 的情况下,此实用程序特别有用。

Command syntax - 命令语法

db2cfexp filename [TEMPLATE|BACKUP|MAINTAIN]

Command parameters - 命令参数

filename

Specifies the fully qualified name of the target export file. This file is known as a configuration profile.

指定目标导出文件的标准名称。 此文件称为配置概要文件。

TEMPLATE

Creates a configuration profile that is used as a template for other instances of the same instance type (that is, client instance to client instance). The profile includes information about:

  • All databases, including related ODBC and DCS information
  • All nodes associated with the exported databases
  • Common ODBC/CLI settings
  • Common client settings in the database manager configuration
  • Common client settings in the Db2 registry.

创建配置概要文件,该概要文件用作相同实例类型 (即,客户机实例到客户机实例) 的其他实例的模板。 概要文件包含有关以下内容的信息:

  • 所有数据库,包括相关的 ODBC 和 DCS 信息
  • 与导出的数据库关联的所有节点
  • 公共 ODBC/CLI 设置
  • 数据库管理器配置中的公共客户机设置
  • Db2 注册表中的公共客户机设置。

BACKUP

Creates a configuration profile of the Db2 database instance for local backup purposes. This profile contains all of the instance configuration information, including information of a specific nature relevant only to this local instance. The profile includes information about:

  • All databases including related ODBC and DCS information
  • All nodes associated with the exported databases
  • Common ODBC/CLI settings
  • All settings in the database manager configuration
  • All settings in the Db2 registry
  • All protocol information.

创建 Db2 数据库实例的配置概要文件以用于本地备份。 此概要文件包含所有实例配置信息,包括仅与此本地实例相关的特定性质的信息。 概要文件包含有关以下内容的信息:

  • 所有数据库,包括相关的 ODBC 和 DCS 信息
  • 与导出的数据库关联的所有节点
  • 公共 ODBC/CLI 设置
  • 数据库管理器配置中的所有设置
  • Db2 注册表中的所有设置
  • 所有协议信息。

MAINTAIN

Creates a configuration profile containing only database- and node-related information for maintaining or updating other instances.

创建仅包含用于维护或更新其他实例的数据库和节点相关信息的配置概要文件。

1
db2cfexp /tmp/db2.catalog

db2cfimp - 连接配置导入工具命令

Imports connectivity configuration information from a file known as a configuration profile. It is a non-interactive utility that will attempt to import all the information found in the configuration profile.

A configuration profile can contain connectivity items such as:

  • Database information (including Db2 Connect and ODBC information)
  • Node information
  • Protocol information
  • database manager configuration settings
  • Db2® database registry settings
  • Common ODBC/CLI settings.

This utility can be used to duplicate the connectivity information from another similar instance (that is, client instance to client instance) that was configured previously. It is especially useful in situations where multiple similar remote Db2 clients are to be installed, configured, and maintained (for example, cloning or making templates of client configurations). When cloning an instance, the profile imported should always be a client configuration profile that contains configuration information about one Db2 atabase instance only.

从称为配置概要文件的文件导入连接配置信息。 它是非交互式实用程序,将尝试导入配置概要文件中找到的所有信息。

配置概要文件可以包含连接项,例如:

  • 数据库信息 (包括 Db2 Connect 和 ODBC 信息)
  • 节点信息
  • 协议信息
  • 数据库管理器配置设置
  • Db2® 数据库注册表设置
  • 公共 ODBC/CLI 设置。

此实用程序可用于复制先前配置的另一个类似实例 (即,客户机实例到客户机实例) 的连接信息。 在要安装,配置和维护多个类似的远程 Db2 客户机 (例如,克隆或制作客户机配置的模板) 的情况下,它特别有用。 克隆实例时,导入的概要文件应该始终是客户机配置概要文件,其中仅包含有关一个 Db2 atabase 实例的配置信息。

Command syntax - 命令语法

db2cfimp filename

Command parameters - 命令参数

filename

Specifies the fully qualified name of the configuration profile to be imported. Valid import configuration profiles are profiles created by any Db2 database or Db2 Connect product using the db2cfexp command.

指定要导入的配置概要文件的标准名称。 有效导入配置概要文件是由任何 Db2 数据库或 Db2 Connect 产品使用 db2cfexp 命令创建的概要文件。

1
db2cfimp db2.catalog

蚂蚁再小也是肉🥩!


db2cfexp与db2cfimp
http://heibanbai.com.cn/posts/495c053a/
作者
黑伴白
发布于
2024年6月6日
许可协议

“您的支持,我的动力!觉得不错的话,给点打赏吧 ୧(๑•̀⌄•́๑)૭”

微信二维码

微信支付

支付宝二维码

支付宝支付