SnowConvert AI - Teradata¶
迁移的第一步是获取需要迁移的代码。有很多方法可以从数据库中提取代码。但是,我们建议使用 Snowflake 提供的提取脚本。
这些脚本的所有源代码都是开源的,可在 GitHub (https://github.com/Snowflake-Labs/SC.DDLExportScripts/) 上获得。
先决条件¶
使用 Teradata 数据库访问服务器。
允许运行具有服务器访问权限的 shell 脚本。
像
bteq / tpt
这样的 Teradata 实用工具。
安装脚本¶
前往 https://github.com/Snowflake-Labs/SC.DDLExportScripts/ (https://github.com/Snowflake-Labs/SC.DDLExportScripts/)。
从“Code”选项中,选择下拉列表并使用 下载 ZIP 选项下载代码。
解压缩该 ZIP 文件。Teradata 的代码应位于 Teradata 文件夹下
按照 [使用说明] (https://github.com/Snowflake-Labs/SC.DDLExportScripts/blob/main/Teradata/README.md) 修改文件并在系统上运行它们。
打包结果¶
When the script is done, the output folder will contain all the DDLs for the migration. You can then compress this folder to use it with SnowConvert AI.
例如,运行:
zip -r output.zip ./output