Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
   
ORACLE OEM REPOSITORY RECREATION




By Ferhat Ozturk
Aug 05, 2008

Digg! digg!     Print    email to friend Email to Friend

Note: This article was written for educational purpose only. Please refer to the related vendor documentation for detail.




Download Free Confio Software

DROP CURRENT REPOSITORY (If available)

In order to successfully create a new repository for OEM, you need to drop existing repository at first stage. There are a few operations you need to perform to have a clean drop operation. Operations are listed below:

EXEC sysman.emd_maintenance.remove_em_dbms_jobs;

DROP USER mgmt_view CASCADE;

DROP ROLE mgmt_user;

drop public synonym MGMT_TARGET_BLACKOUTS;

drop public synonym SETEMVIEWUSERCONTEXT;

DROP USER sysman CASCADE;

DECLARE
CURSOR c1 IS
SELECT owner, synonym_name name
FROM dba_synonyms
WHERE table_owner = SYSMAN;
BEGIN
FOR r1 IN c1
LOOP
IF r1.owner = PUBLIC THEN
EXECUTE IMMEDIATE DROP PUBLIC SYNONYM ||r1.name;
ELSE
EXECUTE IMMEDIATE DROP SYNONYM
||r1.owner||.||r1.name;
END IF;
END LOOP;
END;
/


After issuing these commands from sqlplus, you are ready to use emca program to drop your current OEM repository as below:

CREATE A NEW REPOSITORY FOR OEM

 After entering correct information to EMCA’s questions, repository creation operation will start and under normal condition it would not raise an error and you will be successfully created a new repository for your OEM.  When you see the successful completion message, you shall restart new windows service of OEM and try to open OEM page.

 

 
About author:

Hi, I am Ferhat OZTURK from TURKEY, Istanbul. I got my OCA certification at April 2008 and my OCP degree at June 2008. For Oracle related discussions add me to your msn: ozturk.ferhat@hotmail.com

 

Please login to post your comments





  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software