Q

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.

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:

CREATE USER myuser IDENTIFIED BY mypassword
DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
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 last published in June 2002

Dig Deeper on Oracle database design and architecture

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