SnowConvert AI - Redshift¶
迁移的第一步是获取需要迁移的代码。有很多方法可以从数据库中提取代码,但我们建议使用 Snowflake 提供的提取脚本。
这些脚本的所有源代码都是开源的,可在 GitHub (https://github.com/Snowflake-Labs/SC.DDLExportScripts/) 上获得。
先决条件 ¶
使用 Redshift 数据库访问 Redshift 集群。
最好以超级用户或数据库所有者的身份访问数据库。
安装 AWS CLI。
访问 AWS 门户。
安装脚本¶
前往 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/Redshift/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