Add 'CASCADE' after the user's name in the DROP USER statement : Drop User « User Privilege « Oracle PL/SQL Tutorial






If the user's schema contains objects such as tables and so on.

SQL>
SQL> CREATE USER user1 IDENTIFIED BY pass1;

User created.

SQL>
SQL> GRANT CREATE SESSION TO user1;

Grant succeeded.

SQL>
SQL> DROP USER user1 cascade;
SQL>








36.3.Drop User
36.3.1.Add 'CASCADE' after the user's name in the DROP USER statement
36.3.2.Drop the user if it exists