BigdataLyn's TECH Blog! 刀不磨要生锈,人不学习要落后 - Thinking ahead

Oracle EM13c 02 - EMCC Install Tips

2018-09-29

Oracle EM13c 02 - EMCC Install Tips

The old version EM12c of installation.

Oracle Enterprise Manager 12c 安装过程

The port with EMCC are the following.

OMS Service:
	7788,7799,4889,4897,
	1159,4899,4908 

Monitor Target:
	22 (ssh),1521 (listener),
	3872(Agent)

Set port range

[root@emccsvr ~]# vi /etc/sysctl.conf

# oracle-database-preinstall-18c setting for net.ipv4.ip_local_port_range is 9000 65500
#net.ipv4.ip_local_port_range = 9000 65500
net.ipv4.ip_local_port_range = 11000 65000

[root@emccsvr ~]# sysctl -p
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 11000 65000
[root@emccsvr ~]#		

Close firewall

[oracle@emccsvr ~]$ systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-09-28 05:13:53 EDT; 23h ago
 Main PID: 622 (firewalld)
   CGroup: /system.slice/firewalld.service
		   └─622 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
[oracle@emccsvr ~]$ systemctl stop firewalld.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: root
Password:
==== AUTHENTICATION COMPLETE ===
[oracle@emccsvr ~]$ systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Sat 2018-09-29 04:44:24 EDT; 3s ago
 Main PID: 622 (code=exited, status=0/SUCCESS)
[oracle@emccsvr ~]$

Listener/Tnsname

netca for listener and tnsname

Step 1.

Step01

Step 2.

Step02

Step 3.

Step03

Step 4.

Step04

Step 5.

Step05

Step 6.

Step06

Step 7.

Step07

Step 8.

Step08

EMCC Install

Step 1.

Step01

Step 2.

Step02

Step 3.

Step03

Step 4.

Step04

Step 5.

Step05

Step 6.

Step06

Step 7.

Step07

Step 8.

Step08

Step 9.

Step09

Step 10.

Step10

Step 11.

Step11

Step 12.

Step12

Step 13.

Step13

Step 14.

Step14

Step 15.

Step15

Step 17.

Step17

Step 18.

Step18

Step 19.

Step19

Alias:

alias em_oms=$OMS_HOME/bin/emctl
alias em_agt=$AGT_HOME/bin/emctl
alias emcli=$OMS_HOME/bin/emcli

OMS detail:

[oracle@emccsvr ~]$ em_oms status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host        : emccsvr.oracle.com
HTTP Console Port          : 7788
HTTPS Console Port         : 7803
HTTP Upload Port           : 4889
HTTPS Upload Port          : 4903
EM Instance Home           : /u01/app/oracle/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 1
Console URL: https://emccsvr.oracle.com:7803/em
Upload URL: https://emccsvr.oracle.com:4903/empbs/upload

WLS Domain Information
Domain Name            : GCDomain
Admin Server Host      : emccsvr.oracle.com
Admin Server HTTPS Port: 7102
Admin Server is RUNNING

Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: emccsvr.oracle.com
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up

BI Publisher Server Information
BI Publisher Managed Server Name: BIP
BI Publisher Server is Up

BI Publisher HTTP Managed Server Port   : 9701
BI Publisher HTTPS Managed Server Port  : 9803
BI Publisher HTTP OHS Port              : 9788
BI Publisher HTTPS OHS Port             : 9851
BI Publisher is locked.
BI Publisher Server named 'BIP' running at URL: https://emccsvr.oracle.com:9851/xmlpserver/servlet/home
BI Publisher Server Logs: /u01/app/oracle/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/
BI Publisher Log        : /u01/app/oracle/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/bipublisher/bipublisher.log
[oracle@emccsvr ~]$

Starup/Shutdown

Cloud Control is set to auto-start using the “gcstartup” service. The “/etc/oragchomelist” file contains the items that will be started by the system.

[oracle@emccsvr ~]$ cat /etc/oragchomelist
/u01/app/oracle/middleware
/u01/app/oracle/agent/agent_13.3.0.0.0:/u01/app/oracle/agent/agent_inst
[oracle@emccsvr ~]$ systemctl list-unit-files|grep enabled | grep gcs
[oracle@emccsvr ~]$ systemctl list-unit-files|grep enabled
auditd.service                                enabled
autovt@.service                               enabled
crond.service                                 enabled
dbus-org.fedoraproject.FirewallD1.service     enabled
dbus-org.freedesktop.NetworkManager.service   enabled
dbus-org.freedesktop.nm-dispatcher.service    enabled
firewalld.service                             enabled
getty@.service                                enabled
irqbalance.service                            enabled
lvm2-monitor.service                          enabled
microcode.service                             enabled
NetworkManager-dispatcher.service             enabled
NetworkManager.service                        enabled
postfix.service                               enabled
rpcbind.service                               enabled
rsyslog.service                               enabled
smartd.service                                enabled
sshd.service                                  enabled
sysstat.service                               enabled
systemd-readahead-collect.service             enabled
systemd-readahead-drop.service                enabled
systemd-readahead-replay.service              enabled
tuned.service                                 enabled
dm-event.socket                               enabled
lvm2-lvmetad.socket                           enabled
lvm2-lvmpolld.socket                          enabled
rpcbind.socket                                enabled
default.target                                enabled
multi-user.target                             enabled
nfs-client.target                             enabled
remote-fs.target                              enabled
runlevel2.target                              enabled
runlevel3.target                              enabled
runlevel4.target                              enabled
[oracle@emccsvr ~]$ systemctl is-enabled gcstartup.service
gcstartup.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig gcstartup --level=5
disabled
[oracle@emccsvr ~]$
[oracle@emccsvr ~]$ vi /etc/oragchomelist
[oracle@emccsvr ~]$ cat /etc/oragchomelist
#/u01/app/oracle/middleware                                         ->> commont out by #
#/u01/app/oracle/agent/agent_13.3.0.0.0:/u01/app/oracle/agent/agent_inst ->> commont out by #
[oracle@emccsvr ~]$
[oracle@emccsvr ~]$ cd scripts
[oracle@emccsvr scripts]$ ls -ltr
total 8
-rwxr-xr-x. 1 oracle oinstall 295 Sep 29 05:12 emcc_start.sh
-rwxr-xr-x. 1 oracle oinstall 296 Sep 29 05:12 emcc_stop.sh
[oracle@emccsvr scripts]$ cat emcc_start.sh
#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/18.0.0/dbhome_1
export OMS_HOME=/u01/app/oracle/middleware
export AGENT_HOME=/u01/app/oracle/agent/agent_13.3.0.0.0

# Start everything
$ORACLE_HOME/bin/dbstart $ORACLE_HOME

$OMS_HOME/bin/emctl start oms

$AGENT_HOME/bin/emctl start agent
[oracle@emccsvr scripts]$ cat emcc_stop.sh
#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/18.0.0/dbhome_1
export OMS_HOME=/u01/app/oracle/middleware
export AGENT_HOME=/u01/app/oracle/agent/agent_13.3.0.0.0

# Stop everything
$OMS_HOME/bin/emctl stop oms -all

$AGENT_HOME/bin/emctl stop agent

$ORACLE_HOME/bin/dbshut $ORACLE_HOME
[oracle@emccsvr scripts]$

Have a good life! 2018/09 via LinHong


Similar Posts

Comments