@clisdodo
2020-07-02T15:51:09.000000Z
字数 2810
阅读 2106
OEL6.5
EMCC12
Oracle12c
OCM
AskScuti:搭建类 2级-EM EMCC 12 在 OEL 6.5 上的安装 (12c OCM 环境)
内容目录
进行标题内容切换0 级搭建类
相关文档完成此操作环境 | 客户端 | 服务端 |
---|---|---|
主机名 | host01.example.com | host02.example.com |
IP | 192.168.1.50 | 192.168.1.51 |
OS | OEL 6.5 | OEL 6.5 |
数据库 | 12.1.0.4 | 12.1.0.4 |
Container | Non-CDB | Non-CDB |
DB_NAME | PROD5 | EMREP |
ORACLE_SID | PROD5 | EMREP |
yum install make -y
yum install binutils -y
yum install gcc -y
yum install libaio -y
yum install glibc-common -y
yum install libstdc++ -y
yum install libXtst -y
yum install sysstat -y
yum install glibc-devel -y
yum install glibc -y
yum install libaio -y
yum install glibc-devel.i686 -y
sqlplus / AS SYSDBA
ALTER SYSTEM SET processes=300 SCOPE=SPFILE;
ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;
ALTER SYSTEM SET sga_target=2G SCOPE=SPFILE;
ALTER SYSTEM SET shared_pool_size=600M SCOPE=SPFILE;
ALTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;
ALTER SYSTEM SET job_queue_processes=20 SCOPE=SPFILE;
ALTER SYSTEM SET db_securefile='PERMITTED' SCOPE=SPFILE;
-- Restart the instance.
SHUTDOWN IMMEDIATE
STARTUP
mkdir -p /emcc/app/oracle/oms12c
mkdir -p /emcc/app/oracle/agent12c
chown -R oracle:oinstall /emcc
chmod -R 775 /emcc
su - oracle
cd /emcc
unzip em12104_linux64_disk1.zip
unzip em12104_linux64_disk2.zip
unzip em12104_linux64_disk3.zip
./runInstaller
服务端编辑 /etc/hosts
添加客户端(代理)主机名及IP
echo "192.168.1.50 host01.example.com" >> /etc/hosts
客户端(代理)编辑 /etc/hosts
添加服务端主机名及IP
echo "192.168.1.51 host02.example.com" >> /etc/hosts
客户端(代理)创建 Agent 目录
mkdir -p /emcc/app/oracle/oms12c
mkdir -p /emcc/app/oracle/agent12c
chown -R oracle:oinstall /emcc
chmod -R 775 /emcc
为服务端编辑 agentpush.properties
添加执行 root.sh 脚本权限
cd /emcc/app/oracle/oms12c/oms/sysman/prov/agentpush
cp agentpush.properties agentpush.properties.bak
vim agentpush.properties
修改原
oracle.sysman.prov.agentpush.enablePty = false
为
oracle.sysman.prov.agentpush.enablePty = true
客户端(代理)编辑 /etc/sudoers
添加权限
cp /etc/sudoers /etc/sudoers.bak
vim /etc/sudoers
修改原
# Refuse to run if unable to disable echo on the tty.
Defaults !visiblepw
为
Defaults visiblepw
修改原
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
为
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
oracle ALL=(ALL) ALL
登录 EMCC : sysman/xxxxxx
添加服务端主机 host02
到 EMCC
添加注册数据库 EMREP
到 EMCC
[End]