云服务器内容精选

  • 三权分立检查 目标库为 GaussDB 时,会进行三权分立检查。GaussDB三权分立后,系统管理员即拥有SYSADMIN权限的用户将不再具有CREATEROLE属性(安全管理员)和AUDITADMIN属性(审计管理员)能力,即不再拥有创建角色和用户的权限,也不再拥有查看和维护数据库审计日志的权限。在UGO的对象迁移功能上,体现为开启三权分立后,SYSADMIN用户无法完成USER、ROLE、GRANT的迁移。 目标库为GaussDB时,开启三权分立,并迁移用户为SYSADMIN时,才会展现此检查项,其余情况,此检查项均不展示。 在开启三权分立后,如果SYSADMIN用户继续拥有安全管理员(拥有CREATEROLE权限)和审计管理员权限,这是来回切换权限模型导致的。如需从非三权分立权限管理模型切换至三权分立权限管理模型,应重新审视已有用户的权限集合,进行权限裁剪。
  • GUC参数检查 GaussDB 提供了许多运行参数,统称为 GUC 参数,配置这些参数可以影响数据库系统的行为。UGO 对于 SQL 语法的转换,是基于与源库兼容性最好的一组 GUC 参数配置进行的,请根据对象迁移预检查中的提示进行 GUC 参数设置,否则可能影响最终对象迁移的成功率和可用性。 目标库为GaussDB V2.0-3.1及以上版本,源库为 Oracle、Microsoft SQL Server、MySQL时,展示此检查项。检查用户是否设置了GUC参数配置,详细检查项参考表1。 针对 GUC 的校验是基于评估选定的目标数据库版本,而不是当前实际连接的目标数据库版本。 GaussDB 集中式版(M兼容)作为目标库时,暂不支持 GUC 参数检查。 GaussDB GUC 参数的设置方法请参考预检查页面中检查项的提示,或参考如何设置GaussDB GUC参数进行操作。 表1 目标库GUC参数检查项 源数据库类型 目标库版本 检查项 MySQL GaussDB集中式版 V2.0-3.1 企业版 - GaussDB集中式版 V2.0-3.2 企业版 b_format_behavior_compat_options GaussDB分布式版 V2.0-3.2 企业版 - GaussDB集中式版 V2.0-8.0 企业版 b_format_version, b_format_dev_version GaussDB分布式版 V2.0-8.0 企业版 b_format_version, b_format_dev_version GaussDB集中式版 V2.0-8.100 企业版 b_format_version, b_format_dev_version GaussDB分布式版 V2.0-8.100 企业版 b_format_version, b_format_dev_version GaussDB集中式版(M兼容) V2.0-8.100 企业版 m_format_behavior_compat_options, m_format_dev_version GaussDB集中式版(M兼容) V2.0-8.200 企业版 m_format_behavior_compat_options, m_format_dev_version GaussDB集中式版(M兼容) V2.0-9.0 企业版 m_format_behavior_compat_options, m_format_dev_version Oracle GaussDB集中式版 V2.0-3.1 企业版 behavior_compat_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-3.2 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB分布式版 V2.0-3.2 企业版 behavior_compat_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-3.3 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, IntervalStyle, a_format_version, a_format_dev_version GaussDB分布式版 V2.0-3.3 企业版 behavior_compat_options, sql_beta_feature, IntervalStyle, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-8.0 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, IntervalStyle, a_format_version, a_format_dev_version GaussDB分布式版 V2.0-8.0 企业版 behavior_compat_options, sql_beta_feature, IntervalStyle, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-8.100 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, IntervalStyle, a_format_version, a_format_dev_version GaussDB分布式版 V2.0-8.100 企业版 behavior_compat_options, sql_beta_feature, IntervalStyle, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-8.200 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, IntervalStyle, a_format_version, a_format_dev_version, a_format_date_timestamp GaussDB分布式版 V2.0-8.200 企业版 behavior_compat_options, sql_beta_feature, IntervalStyle, a_format_version, a_format_dev_version, a_format_date_timestamp GaussDB集中式版 V2.0-9.0 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, IntervalStyle, mapping_date_to_datea, a_format_version, a_format_dev_version, a_format_date_timestamp GaussDB分布式版 V2.0-9.0 企业版 behavior_compat_options, sql_beta_feature, IntervalStyle, mapping_date_to_datea, a_format_version, a_format_dev_version, a_format_date_timestamp Microsoft SQL Server GaussDB集中式版 V2.0-3.1 企业版 behavior_compat_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-3.2 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB分布式版 V2.0-3.2 企业版 behavior_compat_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-8.0 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB分布式版 V2.0-8.0 企业版 behavior_compat_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-8.100 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB分布式版 V2.0-8.100 企业版 behavior_compat_options, sql_beta_feature, a_format_version, a_format_dev_version GaussDB集中式版 V2.0-8.200 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, a_format_version, a_format_dev_version, a_format_date_timestamp GaussDB分布式版 V2.0-8.200 企业版 behavior_compat_options, sql_beta_feature, a_format_version, a_format_dev_version, a_format_date_timestamp GaussDB集中式版 V2.0-9.0 企业版 behavior_compat_options, plsql_compile_check_options, sql_beta_feature, a_format_version, a_format_dev_version, a_format_date_timestamp GaussDB分布式版 V2.0-9.0 企业版 behavior_compat_options, sql_beta_feature, a_format_version, a_format_dev_version, a_format_date_timestamp PostgreSQL GaussDB集中式版 V2.0-8.200 企业版 a_format_date_timestamp GaussDB分布式版 V2.0-8.200 企业版 a_format_date_timestamp GaussDB集中式版 V2.0-9.0 企业版 a_format_date_timestamp GaussDB分布式版 V2.0-9.0 企业版 a_format_date_timestamp GaussDB 集中式版的参数 plsql_compile_check_options,用于校验 FUNCTION、PROCEDURE 和 PACKAGE 中的全量语句。当语句中存在未定义对象时,将打印告警信息进行提示。由于该参数存在误报,因此仅推荐在测试环境使用以提高问题定位效率,在生产中建议关闭此参数。 父主题: 迁移预检查说明
  • 兼容模式检查 目标库为GaussDB时,会进行GaussDB兼容模式的检查。不同源数据库适配程度最高的兼容模式有所不同,如果目标数据库使用的兼容模式与推荐使用的不一致,则将提示风险。GaussDB兼容模式设置,请参考表1。 表1 兼容模式对应情况说明 源数据库 GaussDB兼容模式 MySQL、GoldenDB MySQL兼容模式。 其他 Oracle兼容模式。 MySQL兼容模式包括集中式B兼容模式、M兼容模式、以及分布式MYSQL兼容模式,Oracle兼容模式包括集中式A兼容模式和分布式ORA兼容模式。 父主题: 迁移预检查说明