Пересоздание Oracle Enterprise Manager

emca -config dbcontrol db -repos recreate

Если ошибка
CONFIG: ORA-00955: name is already used by an existing object

Решение:

drop user SYSMAN cascade;
drop user MGMT_VIEW cascade;
drop public synonym SETEMVIEWUSERCONTEXT;
drop role MGMT_USER;
drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;

begin
for cur in (select synonym_name
from dba_synonyms
where table_owner = 'SYSMAN'
and owner = 'PUBLIC'
) loop
--dbms_output.put_line('drop public synonym '||cur.synonym_name);
execute immediate ('drop public synonym '||cur.synonym_name);
end loop;
end;

emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create

Где лежат файлы Enterprise Manager
%ORACLE_HOME%\srv_kazs
%ORACLE_HOME%\srv_kazs\sysman\config — конфиги Enterprise Manager
%ORACLE_HOME%\oc4j\j2ee\OC4J_DBConsole_srv_kazs

srv — имя сервера, kazs — SID

Логи установки
%ORACLE_HOME%\cfgtoollogs\emca

Ошибка: Error starting Database Control