Dropping Users

Previous
Previous
Next
Next

Dropping a user removes the user from the database. Before you can drop a user, you must first drop all the user's schema objects. Or, you can use the cascade feature of the drop operation, which simultaneously drops a user and all his schema objects. The following are two alternatives to dropping a user and losing all the user's schema objects:


Caution:

Under no circumstances should you attempt to drop the SYS or SYSTEM users, or any other internal user accounts. Doing so could cause Oracle Database XE to malfunction.

Example: Dropping a User

Suppose Nick's project is canceled and Nick takes a position in another department. You want to drop the user NICK and all associated schema objects.

To drop user NICK and all his owned schema objects:

  1. View the Manage Database Users page that contains the icon or link for NICK.

    See "Viewing Users" for instructions.

  2. Click the NICK icon or link.

    The User page appears, with account information for user NICK displayed.

    Description of alter_database_user.gif follows
    Description of the illustration alter_database_user.gif

  3. Click Drop.

    The Confirm Drop User page appears.

    Description of drop_confirm.gif follows
    Description of the illustration drop_confirm.gif

  4. Select the Cascade check box.

    This indicates that you want to drop the user's schema objects also. If the user has schema objects and you do not select this option, you receive an error message if you attempt to complete the drop operation.

  5. Click Drop User.

    A confirmation message is displayed.