Oracle 11g re-build the objects to be deleted by EM

Source: Internet
Author: User

Oracle 11g re-build the objects to be deleted by EM

The re-built EM is required. The re-built EM is forced to stop due to some errors, such as the object already exists and the user already exists. In the end, the necessary conditions for creation are found;

1. environment variables (Oracle and Grid are installed under the same user ):

Set ORACLE_HOME to the DB path;

ORACLE_UNQNAME to be set;

2. Delete synonyms related to em:

Select 'drop public synonym' | synonym_name | ';' from dba_synonyms where regexp_like (synonym_name, '^ MGMT _ | ^ SMP_EMD | ^ EMD _') order by synonym_name; 3. delete em users:

Drop user MGMT_VIEW;
Drop user SYSMAN cascade; 4. Delete em related role:

Drop role MGMT_USER; 5. Check the residual objects related to em and delete them:

Select * from dba_objects where status = 'invalid' AND OBJECT_TYPE = 'synonym'; 6. Recreate em:

Em-config dbcontrol db-repos create

Hope is personal, hope is something that no one can give to you, you have to choose to believe in hope, you have to make it yourself ..

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.