Renames a user-defined domain or data type. Does not rename Java types.
ALTER { DOMAIN | DATATYPE } user-type RENAME new-name
an identifier representing the new domain name.
user-defined data type of the domain being renamed.
The following renames the Address domain to MailingAddress:
ALTER DOMAIN Address RENAME MailingAddress
The ALTER DOMAIN statement updates the name of the user-defined domain or data type in the SYSUSERTYPE system table.
You must recreate any procedures, views or events that reference the user-defined domain or data type, or else they will continue to reference the former name.
Automatic commit.
Must have DBA authority or be the database user who created the domain.