Xcopy 使用Xcheck进行数据对比验证 表级别对比 plaintext ./Xcheck sourcehost 源库host sourceport 源库端口 sourceuser 源库用户 sourcepassword "源库密码" desthost 目标库host destport 目标库端口 destuser 目标库用户 destpassword "目标库密码" mappingfile "mappingfile绝对路径" mode high; 模式级别对比 plaintext ./Xcheck sourcehost 源库host sourceport 源库端口 sourceuser 源库用户 sourcepassword "源库密码" desthost 目标库host destport 目标库端口 destuser 目标库用户 destpassword "目标库密码" dbname postgres destdbname postgres schema 模式名 destschema 模式名 mode high 库级别对比 plaintext ./Xcheck sourcehost 源库host sourceport 源库端口 sourceuser 源库用户 sourcepassword "源库密码" desthost 目标库host destport 目标库端口 destuser 目标库用户 destpassword "目标库密码" dbname "库名" destdbname "库名" mode high 使用Ximport导入数据 1. 在机器上创建名为controlfile2的controlfile文件,并写入数据库实例和需要导入的表的相关信息 2. 执行以下语法导入指定表 plaintext ./Ximport controlfile 'controlfile文件绝对路径' host 实例host port 实例端口 user root database ximport forcepasswordauth 使用Xexport导出数据 执行以下语法导出指定表: plaintext ../Xexport h 实例host p 实例端口 u 用户名 s '密码' d "Xexport" r "AllcolumnCopy"."Test1" o '导出文件名称1' i '~' z 'none' l "Nsmallint",ninteger c 'UTF8' w 'where "Nsmallint">1'