Migrates a compatibility role to a user-defined system role, then automatically drops the compatibility role.
Quick Links:
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
ALTER ROLE SYS_AUTH_DBA_ROLE MIGRATE TO Custom_DBA, Custom_SA, Custom_SSO
ALTER ROLE SYS_AUTH_OPERATOR_ROLE MIGRATE TO Operator_role
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.