getbyte(binarystring, i))::bigint; i i + 1; j 0; LOOP val ((val >> 1) (3988292384 (val & 1)))::bigint; j j + 1; IF j > 8 THEN EXIT; END IF; END LOOP; IF i > bytelength THEN EXIT; END IF; END LOOP; RETURN (val 4294967295); END $$ IMMUTABLE LANGUAGE plpgsql; 验证改写后的结果: select crc32(null),crc32(''),crc32('1'); crc32 crc32 crc32 ++ 0 2212294583 (1 row)
物理机服务器不同规格操作系统兼容性列表如下所示。操作系统版本均为64bit。 物理机机服务器兼容性列表(V4) 类型 Windows CentOS Red Hat SUSE Ubuntu Oracle Linux ::::::: 本地存储型d1 physical.d1.large Windows Server 2012 R2 Standard CentOS 6.8/7.4/7.5/7.6 Red Hat 6.8 Ubuntu 16.04 LTS 通用型规格s3 physical.s3.large physical.s3.xlarge physical.s3.2xlarge Windows Server 2012 R2 Standard CentOS 7.3/7.4/7.5 Red Hat 6.8 SUSE Linux Enterprise 11.SP4/12.SP1/12.SP2/12.SP3 Ubuntu 16.04 LTS Oracle Linux 6.9/7.3 GPU加速型规格 physical.p1.large physical.p2.large CentOS 7.4 Ubuntu 16.04 LTS 物理机服务器兼容性列表(V5) 类型 Windows CentOS Red Hat SUSE Ubuntu Oracle Linux ::::::: 本地存储型d2 physical.d2.large Windows Server 2012 R2 Standard CentOS 6.8/7.2/7.3/7.4/7.5 Red Hat 6.7/6.8 SUSE Linux Enterprise 11.SP4/12.SP1/12.SP2/12.SP3 Ubuntu 16.04 LTS Oracle Linux 6.9/7.3 通用型规格s4 physical.s4.medium physical.s4.large physical.s4.xlarge physical.s4.2xlarge physical.s4.3xlarge Windows Server 2012 R2 Standard CentOS 7.4/7.5 Red Hat 6.7/6.8 SUSE Linux Enterprise 11.SP4 Ubuntu 16.04 LTS Oracle Linux 6.9/7.3 IO优化型规格io2 physical.io2.xlarge Windows Server 2012 R2 Standard CentOS 6.9/7.3/7.4/7.5 Red Hat 6.9/7.3/7.4/7.5 SUSE Linux Enterprise 11.SP4 Ubuntu 16.04 LTS Oracle Linux 6.9/7.4 高性能计算型规格h2 physical.h2.large CentOS 6.9/7.3/7.4 SUSE Linux Enterprise 11.SP4 Ubuntu 16.04 LTS GPU加速型规格p3 physical.p3.large CentOS 7.3
本节介绍了变更数据捕获(CDC)的相关内容。 操作场景 使用存储过程对指定数据库开启或关闭变更数据捕获功能。变更数据捕获可记录应用到所启用的表中的插入、更新和删除活动,同时采用易于使用的关系格式提供变更详细信息。 说明 仅RDS for SQL Server企业版和RDS for SQL Server 2016及其以上版本的标准版支持变更数据捕获。 关于变更数据捕获的其他功能可参考官方文档。 前提条件 成功连接RDS for SQL Server实例。关于连接关系型数据库实例, 执行此存储过程的必须是拥有[CREATE ANY DATABASE]权限的用户。如果不具备此权限的用户尝试执行该存储过程,系统将会如下提示: plaintext Database restores can only be performed by database logins with [CREATE ANY DATABASE] permissions. 约束 对于系统库,不可进行开启或关闭变更数据捕获功能。如果您试图对系统库进行此操作,系统将会如下提示: plaintext CDC can not open on system database and [rdsadmin]. 变更数据捕获功能操作仅包括 1,0,若尝试进行其他操作,系统将会如下提示: plaintext @dbAction just support 1:open 0:close 操作步骤 执行以下命令,开启或关闭变更数据捕获。 EXEC msdb.dbo.rdscdcdb '@DBName', @dbAction; @ DBName:指定要操作的数据库。 @ dbAction:指定操作,1为开启变更数据捕获,0为关闭变更数据捕获。 对“testDB1”打开变更数据捕获,示例如下: EXEC msdb.dbo.rdscdcdb 'testDB1', 1;