Q

Command to add and remove users in Oracle

What command is used to add and remove users to the database? How do you archive a user?

What command is used to add and remove users to the database? How do you archive a user?

To add a user, use the CREATE USER command.

To remove a user, use the DROP USER command.

There is no ARCHIVE USER command. Instead, you'll want to use Oracle's export utility to generate a dump of all objects the user owns. This is done on the database server with the following command:

exp userid=system/manager file=my_user.dmp owner=my_user
The above signs on to the database with the SYSTEM user. The dump file will contain all objects owned by MY_USER.
This was last published in May 2007

Dig Deeper on Oracle DBA jobs, training and certification

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close