ALTER ROLE Statement

Migrates a compatibility role to a user-defined system role, then automatically drops the compatibility role.

Note: You cannot use the ALTER ROLE statement to migrate SYS_AUTH_SA_ROLE or SYS_AUTH_SSO_ROLE. These roles are automatically migrated when SYS_AUTH_DBA_ROLE is migrated.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

Syntax 1 – To migrate SYS_AUTH_DBA_ROLE

ALTER ROLE predefined_sys_role_name
   MIGRATE TO new_role_name [, new_sa_role_name, new_sso_role_name]

Syntax 2 – To migrate all other compatibility roles

ALTER ROLE predefined_sys_role_name 
   MIGRATE TO new_role_name

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

During the migration process:

Since no role administrator was specified during the migration process, only global role administrators can manage the new role. Use the CREATE ROLE statement to add role administrators with appropriate administrative rights to the role.

Standards

(back to top)

ANSI SQL–Compliance level: Transact-SQL extension.

Permissions

(back to top)

Requires the MANAGE ROLES system privilege granted with administrative rights.