Basic Oracle Concepts and Programming Question:
How To Delete a User Account in Oracle?
Answer:
If you want to delete a user account and its associated schema, you can log in as SYSTEM and use the DROP USER command as shown in the following example:
>.insqlplus /nolog
SQL> connect SYSTEM/globalguideline
Connected.
SQL> DROP USER DEV CASCADE;
User dropped.
SQL> CREATE USER DEV IDENTIFIED BY developer ACCOUNT UNLOCK;
User created.
Note that CASCADE tells the server drop the associated schema.
>.insqlplus /nolog
SQL> connect SYSTEM/globalguideline
Connected.
SQL> DROP USER DEV CASCADE;
User dropped.
SQL> CREATE USER DEV IDENTIFIED BY developer ACCOUNT UNLOCK;
User created.
Note that CASCADE tells the server drop the associated schema.
Previous Question | Next Question |
How To Change User Password in Oracle? | What Privilege Is Needed for a User to Connect to Oracle Server? |