Ask the Expert

Creating a user with all privileges

I have installed Oracle9i database, and I would like to create a user with all privileges. Please help me.

    Requires Free Membership to View

To create a user, use the CREATE USER statement. There are lots of options for this one statement, so you will want to consult the documentation for more information. To create a basic user, issue the following:

You can substitute values for the lowercase words above. This newly created user does not have any privileges. You may want to let them connect to the database and create database objects. To do that, you can grant the CONNECT and RESOURCE roles to that user with the following command:
GRANT connect,resource TO myuser;
If you want the user to be "all powerful", then grant the DBA role as well:
GRANT dba TO myuser;

For More Information

This was first published in June 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: