v2.0
- 简介
- 环境依赖
- 快速上手
- 配置文件
- 命令介绍
- mtk
- init-project
- config
- license
- mig
- show
- sync
- sync-schema
- sync-sequence
- sync-object-type
- sync-domain
- sync-wrapper
- sync-server
- sync-user-mapping
- sync-queue
- sync-table
- sync-nickname
- sync-rule
- sync-table-data
- sync-table-data-estimate
- sync-index
- sync-constraint
- sync-db-link
- sync-view
- sync-mview
- sync-function
- sync-procedure
- sync-package
- sync-trigger
- sync-synonym
- sync-table-data-com
- sync-alter-sequence
- sync-coll-statistics
- check-table-data
- gen
- gen completion
- encrypt
- convert-plsql
- report
- self
- mvd
- usql
- 图形化
- 常见问题
- Release
MTK环境依赖
迁移不同的数据库需要安装必要的客户端软件。
Oracle
-
进入Oracle Instant Client页面选择对应的平台
-
选择相应的版本如
Version 19.10.0.0.0
-
下载
Basic Package (ZIP)
包,上传到服务器,执行解压命令# 此文件为arm64平台 unzip instantclient-basic-linux.arm64-19.10.0.0.0dbru.zip
会解压出来类似
instantclient_19_10
目录. -
配置环境变量
Linux: export LD_LIBRARY_PATH=<对应目录>/instantclient_19_10:$LD_LIBRARY_PATH Mac: export DYLD_LIBRARY_PATH=<对应目录>/instantclient_19_10:$DYLD_LIBRARY_PATH
DB2
-
选择相应平台的版本下载,上传到服务器,执行解压并配置环境变量.
tar -zxvf linuxx64_odbc_cli.tar.gz -C /db2client
-
配置环境变量
export DB2HOME=/db2client/clidriver export CGO_CFLAGS=-I$DB2HOME/include export CGO_LDFLAGS=-L$DB2HOME/lib export PATH=$DB2HOME/bin:$PATH Linux: export LD_LIBRARY_PATH=$DB2HOME/lib:$LD_LIBRARY_PATH Mac: export DYLD_LIBRARY_PATH=$DB2HOME/lib:$DYLD_LIBRARY_PATH
-
测试
db2cli --version
如果没有安装 db2 odbc cli 会遇到如下报错
mtk: error while loading shared libraries: libdb2.so.1: cannot open shared object file: No such file or directory
MySQL
无需安装额外客户端
openGauss
无需安装额外客户端
Informix
参考DB2