A DROP USER statement deletes the definition of a database user. The metadata of the user to be dropped is dropped from the database catalog.
<drop_user_statement> ::= DROP USER <user_name> [<cascade_option>]
The current user must have owner authorization over the user to be dropped.
The specified user must not be logged onto the database system when the DROP USER statement is executed.
· If the user to be dropped does not belong to a usergroup and is the owner of synonyms or tables, and if the CASCADE option RESTRICT was specified, the DROP USER statement fails.
· If no cascade option or the cascade option CASCADE is specified, all the synonyms and tables of the user to be dropped, as well as all indexes, privileges, view tables, etc. based on these objects, are dropped together with the database user.
Dropping a user with the database user class DBA does not affect any users that were created by this user. The SYSDBA user becomes the new owner of these users.