실습 난이도: ★★★★★ (새로 configure할 때마다 매우 어렵고 에러도 많이 뜹니다....)
실습 환경: Oracle Database 19c, Non-MTA model, Oracle Enterprise Manager Cloud Control 13.4, RAM은 12G로 설정, 저장소는 120GB 이상으로 설정
필요 설치 파일: Oracle Enterprise Manager Cloud Control 13.4, Database Template for OEM 13.4, Oracle Database 19c, JDK, Oracle Weblogic 14c, Oracle Linux 7.9 (절대 oracle linux 8, 9로 진행하지 말것)
0. OEM Cloud Control 아키텍처
오라클마스터 브론즈(3) Oracle Enterprise Manager Database Express 및 SQL 관리 TOOL
3-1 Oracle Enterprise Manager Database Express (EM Express) /* 2023.02.14. 2021년부터 adobe flash 기능이 지원 종료됨에 따라 em express의 기능도 크게 제한되었습니다. 앞으로는 EM Cloud Control만 사용하는 것이 유리해
yooliberalhouse.tistory.com

Amazon.co.jp: オラクルマスター教科書 Gold DBA Oracle Database AdministrationII : 株式会社コーソル企画&マ
Using your mobile phone camera - scan the code below and download the Kindle app.
www.amazon.co.jp

| 구성요소 | 설명 |
| OMS(Oracle Management Server) | 웹 기반의 관리 콘솔 을 제공하는 Web 어플리케이션. 웹 브라우저에서 OMS에 액세스하면, 관리 콘솔을 표시할 수 있다. OMA, OMR과 연계하여 동작하며, 한번에 여러 타깃을 관리 가능하다. |
| OMR(Oracle Management Repository) | Cloud Control의 관리정보, OMA가 수집한 데이터를 관리하는 데이터베이스이다. OMS와 같은 호스트에 배치할 수도, 다른 위치에 배치할 수도 있다. |
| OMA(Oracle Management Agent) | 관리대상 서버 위의 관리대상 타깃의 제어 및 정보의 수집을 진행한다. 모든 관리대상 서버에는 OMA를 배치하여만 한다. |
| 관리대상 타겟 | Oracle 데이터베이스나 Weblogic Server와 같이, Cloud Control이 관리 가능한 제품 |
1. 오라클 홈페이지에서 Oracle Enterprise Manager Cloud Control 13.4 설치용 파일을 모두 설치한다.
https://www.oracle.com/enterprise-manager/downloads/linux-x86-64-13c-rel4-downloads.html
Oracle Enterprise Manager Cloud Control Downloads
We’re sorry. We could not find a match for your search. We suggest you try the following to help find what you’re looking for: Check the spelling of your keyword search. Use synonyms for the keyword you typed, for example, try "application" instead of
www.oracle.com

2. OEM 구성을 위한 데이터베이스 템플릿을 다운로드받는다.
https://www.oracle.com/enterprise-manager/downloads/db-templates-13c-release4-downloads.html
Database Template for Installing Oracle Enterprise Manager Cloud Control 13c Release 4
Database Template (with EM 13.4.0.0.0 repository pre-configured) for Installing Oracle Enterprise Manager Cloud Control 13c Release 4 (13.4.0.0.0) Note: You can use the following DB templates only with EM 13.4.0.0.0 release. Refer to the EM 13.4.0.0.0 Inst
www.oracle.com

3. JDK(Java Develop Kit) 19를 설치하고, 확인한다.
https://www.oracle.com/java/technologies/javase/jdk19-archive-downloads.html
Java Archive Downloads - Java SE 19
WARNING: These older versions of the JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production. For production use Oracle recommends downloading th
www.oracle.com


/* JDK 설치 확인, JDK19 설치 완료시 화면처럼 코드가 나와야 됩니다. */
# which java
# java -version

/* 일반적인 코드 */
# yum -y install https://download.oracle.com/java/19/archive/jdk-19.0.2_linux-x64_bin.rpm
/* 외부로부터 rpm파일을 다운로드 */
# curl -O https://download.oracle.com/java/19/archive/jdk-19.0.2_linux-x64_bin.rpm
/* rpm파일을 적용 */
# rpm -i jdk-19.0.2_linux-x64_bin.rpm
4. 설치된 파일들을 모두 VMbox에 옮기고, 사전작업을 한다.

/* 1. OEM 13.4 구성 파일의 디렉토리 옮기기 */
$ su - root
# mkdir -p /u02/app
# chown -R oracle:oinstall /u02
# chmod -R 755 /u02
# exit
$ mv em13400* /u02
/* 2. OEM 13.4 설치용 DB 템플릿의 디렉토리 옮기기 */
$ mv 19_5* $ORACLE_HOME/assistants/dbca/templates
/* 3. OEM 13.4 구성 시 사용할 에이전트, 미들웨어용 디렉토리 생성하기*/
$ mkdir -p /u02/app/middleware
$ mkdir -p /u02/app/agent
5. 오라클 데이터베이스 19c를 구성한다.
https://yooliberalhouse.tistory.com/34
오라클 리눅스 8.6에서 오라클21C 설치하기(2)
(*주의: 이전글 "오라클 리눅스 8.6에서 오라클21C 설치하기(1)"에서의 로컬호스트명, 기본 유저명 및 IP 주소 설정이 다름에 주의) 1. /etc/hosts에 정보를 등록하기 # vi /etc/hosts 2. NIC 설정 NIC#1 NIC#2 3. NI
yooliberalhouse.tistory.com










6. DB에 접속해서 OMR로 기능할 수 있도록 데이터베이스 구성을 변경한다.(oem13.4 템플릿을 이용해 데이터베이스를 생성했다면 직접 조정할 필요 없다.)

alter system set "_allow_insert_with_update_check"=true scope=both;
alter system set session_cached_cursors=200 scope=spfile;
alter system set shared_pool_size=600M scope=spfile;
alter system set processes=600 scope=spfile;
7. OEM 13.4를 구성한다. (2시간 정도 소요)

# vi /etc/sysctl.conf
net.ipv4.ip_local_port_range = 11000 65000
$ cd /u02
$ ./em13400_linux64.bin













/* 미들웨어 PATH 디렉토리로 이동 */
$ cd /u02/app/middleware/bin
/* OMS 실행 */
$ ./emctl start oms
/* OMS 상태 확인 */
$ ./emctl status oms
/* OMS 정지 */
$ ./emctl stop oms

$ sqlplus / as sysdba
alter user dbsnmp account unlock;
alter user dbsnmp identified by <password>;