Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Granting DBA privileges to user in Oracle

How do I grant a user DBA rights in Oracle? I guess something like:

CREATE USER NewDBA
IDENTIFIED BY passwd;

GRANT DBA TO NewDBA WITH ADMIN OPTION;

Is it the right way, or...

like image 784
RegedUser00x Avatar asked Apr 03 '12 13:04

RegedUser00x


People also ask

What are the privileges in DBA role Oracle?

DBA is the standard role that can be granted by an administrator to another administrator. It includes all system privileges and should only be granted to the most trusted and qualified of users. Assigning this role to a user enables the user to administer the database.

How do I give a user privileges to another user in Oracle?

To drop a connected user, you must first terminate the user sessions using the SQL statement ALTER SYSTEM with the KILL SESSION clause. You can drop a user from a database using the DROP USER statement. To drop a user and all the user schema objects (if any), you must have the DROP USER system privilege.

How do I grant privileges to user?

Database-Specific Privileges To GRANT ALL privileges to a user , allowing that user full control over a specific database , use the following syntax: mysql> GRANT ALL PRIVILEGES ON database_name.


1 Answers

You need only to write:

GRANT DBA TO NewDBA;

Because this already makes the user a DB Administrator

like image 169
Brezhnews Avatar answered Oct 18 '22 21:10

Brezhnews