How to Create DBA ROLE

Source: Internet
Author: User

I was surprised when someone deleted the database dba role, so I had to find a way to recover it. After searching for information, I finally completely restored the dba role. Now I will share the recovery process with you:

Use sys/xxxx as sysdba to log on to sqlplus and then execute the following statements:

SQL> create role dba;

SQL> grant all PRivileges to dba with admin option;

SQL> grant select_catalog_role to dba with admin option;

SQL> grant execute_catalog_role to dba with admin option;

SQL> grant delete_catalog_role to dba with admin option;


EXPlanation:
================

The DBA role is created at database creation time by the "SQL. bsq" script. (The "SQL. bsq" script is typically found in the $ Oracle_HOME/dbs or
$ ORACLE_HOME/rdbms/admin Directory .)

Additional grants are made to dba through other scripts in the admin directory.

For example, exp_full_database and imp_full_database in catexp. SQL.

The above commands are excerpts from the "SQL. bsq" script

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.