티스토리 뷰
[ORACLE] ORACLE 11g EM(Enterprise Manager) 재설치
SUPERMANGS 2016. 5. 12. 17:01# reference : http://ethernet0.tistory.com/127
[ORACLE] ORACLE 11g EM(Enterprise Manager) 재설치
상태 확인
emctl status dbconsole
emctl status agent
중지
emctl stop dbconsole
제거
emca -deconfig dbcontrol db -repos drop
재설치
emca -config dbcontrol db -repos create
시작
emctl start dbconsole
---------------------------------------------------------------------------------------------------- ---
재설치 도중 오류가 발생할 경우 아래와 같이 조치
drop user SYSMAN cascade;
drop public synonym SETEMVIEWUSERCONTEXT;
drop role MGMT_USER;
drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
drop user MGMT_VIEW;
그리고 아래 쿼리 실행하여 synonym 모두 삭제해준다.
select 'drop public synonym '||synonym_name||';' from dba_synonyms where table_owner = 'SYSMAN';
em config 제거하고
emca -deconfig dbcontrol db
재설치 다시 시도
emca -config dbcontrol db -repos create
설치 도중 DB 연결이 잘 안되거나 하는 오류가 발생할 경우 $ORACLE_HOME\bin\relink all 실행 한 번 해준다.
그래도 안되면 hostname이 문제가 될 경우가 많으니 hostname을 모두 IP address로 변 경해준다.
(환경변수인 ORACLE_HOSTNAME, 리스너, TNSNAME 포함)
Enter the following information:
Database SID: orcl (설치할 때 입력한 SID 를 입력합니다~~)
Continue? [Is (Y) / No (N)]: y
...
Database SID: orcl (설치할 때 입력한 SID 입력)
Listener port number: 1521 (설치할 때 입력한 Listener 포트 입력)
SYS user's password: (설치할 때 입력 비밀번호 입력)
SYSMAN user password: le
SYSMAN user passwords:
Continue? [Is (Y) / No (N)]: y
...
Information: successfully deleted data repository has successfully completed the
...
...
Enter the following information:
Database SID: orcl (새로 만들 SID 를 입력합니다..)
Listener port number: 1521 (Listener 포트를 입력합니다)
Listener ORACLE_HOME [D: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1]:
DBSNMP user's password:
SYSMAN user password:
SYSMAN user password: the email address (optional): (옵션이니깐 패스~~)
Notice copies (SMTP) server (optional): (이것두 패스~~)
...
Continue? [Is (Y) / No (N)]: y
...
EMCA ends at 2010-7-16 9:56:19
Environment variable ORACLE_UNQNAME not defined.
5. ORACLE_UNQNAME 을 설정합니다.
6. 다시 em 의 상태를 확인합니다.
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https: / / 192.168.0.228:1158 / em / console / aboutApplication
Oracle Enterprise Manager 11g is running.
-------------------------------------------------- ----------------
Logs are generated in directory D: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1/192.168.0.228_orcl/sysman/log