O Enterprise Manager Cloud Control oferece uma solução centralizada que permite gerenciar e monitorar toda infraestrutura Oracle (Hardware, SO, database, middleware) e outros produtos de mercado, lembrando que não é necessário licenciamento adicional, desde que seu parque Oracle esteja licenciado.
Este guia foi baseado em um ambiente com Oracle Linux 7.9 com Oracle database 19.11 e Cloud control com 13.5.
Links necessários para baixar os binários de instalação e patchs usados neste guia.
# Oracle Linux 7.9
https://yum.oracle.com/oracle-linux-isos.html
ShellScriptTemplate para criação do banco para o Oracle Enterprise Manager Cloud Control 13.5.
https://www.oracle.com/enterprise-manager/downloads/db-templates-13c-release5-downloads.html
ShellScriptDownload dos binários de instalação do Oracle Enterprise Manager Cloud Control 13.5.
https://www.oracle.com/enterprise-manager/downloads/linux-x86-64-13c-rel5-downloads.html
ShellScriptDownload dos binários de instalação do Oracle database 19.3.
https://www.oracle.com/br/database/technologies/oracle19c-linux-downloads.html
ShellScriptDownload do patch 19.11 do Oracle database 19.3.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=364863225848207&parent=DOCUMENT&sourceId=783141.1&id=1454618.1&_afrWindowMode=0&_adf.ctrl-state=8f9gfca1q_53
ShellScriptDownload o OPatch.
https://updates.oracle.com/download/6880880.html
ShellScriptDownload do patch 13.5.0.8 para o Oracle Enterprise Manager Cloud Control 13.5.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=88180793895006&parent=EXTERNAL_SEARCH&sourceId=REFERENCE&id=1605609.1&_afrWindowMode=0&_adf.ctrl-state=7axkoet4v_4
ShellScriptDownload do OMSPatcher para aplicação de patch do Oracle Enterprise Manager Cloud Control 13.
https://support.oracle.com/epmos/faces/ui/patch/PatchDetail.jspx?parent=DOCUMENT&sourceId=2646080.1&patchId=19999993
ShellScriptRequisitos de hardware de acordo com a quantidade de targets a ser monitorados.
https://docs.oracle.com/cd/E63000_01/EMBSC/preinstall_req_hw.htm#EMBSC124
ShellScriptDocumentação geral sobre o Oracle Enterprise Manager Cloud Control 13.
https://www.oracle.com/br/enterprise-manager/
https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/13.5/emrel/installing-oracle-enterprise-manager-cloud-control-13c-release.html
https://docs.oracle.com/en/enterprise-manager/cloud-control/enterprise-manager-cloud-control/13.5/index.html
ShellScriptAtualização do sistema operacional e preparação para Oracle database e Cloud control.
[root@localhost ~]# cat /etc/*-release | grep PRETTY
PRETTY_NAME="Oracle Linux Server 7.9"
[root@localhost ~]# uname -a
Linux localhost.localdomain 5.4.17-2011.6.2.el7uek.x86_64 #2 SMP Thu Sep 3 14:09:14 PDT 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#
ShellScriptAlterando o nome do servidor.
[root@localhost ~]# vi /etc/hostname
[root@localhost ~]# cat /etc/hostname
srvem.localdomain
[root@localhost ~]# hostnamectl status
Static hostname: srvem.localdomain
Transient hostname: localhost.localdomain
Icon name: computer-vm
Chassis: vm
Machine ID: f75eadcb10ec43228c559bb2b603fa7b
Boot ID: cd75afdf39074603b5cca9adc8c1badf
Virtualization: vmware
Operating System: Oracle Linux Server 7.9
CPE OS Name: cpe:/o:oracle:linux:7:9:server
Kernel: Linux 5.4.17-2011.6.2.el7uek.x86_64
Architecture: x86-64
[root@localhost ~]# hostnamectl set-hostname srvem.localdomain
[root@localhost ~]# systemctl restart systemd-hostnamed
[root@localhost ~]# uname -a
Linux srvem.localdomain 5.4.17-2011.6.2.el7uek.x86_64 #2 SMP Thu Sep 3 14:09:14 PDT 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#
ShellScriptAjustes no firewall do servidor.
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl status firewalld
[root@localhost ~]# systemctl disable --now firewalld
[root@localhost ~]# systemctl mask --now firewalld
[root@localhost ~]# systemctl stop avahi-daemon
[root@localhost ~]# systemctl disable avahi-daemon
[root@localhost ~]# systemctl status avahi-daemon
[root@localhost ~]#
ShellScriptAtualizar o sistema operacional.
[root@localhost ~]# yum update -y
[root@localhost ~]# init 6
ShellScript[root@srvem ~]# hostnamectl status
Static hostname: srvem.localdomain
Icon name: computer-vm
Chassis: vm
Machine ID: f75eadcb10ec43228c559bb2b603fa7b
Boot ID: 4a2ce8c3b770438b914b8bc190294998
Virtualization: vmware
Operating System: Oracle Linux Server 7.9
CPE OS Name: cpe:/o:oracle:linux:7:9:server
Kernel: Linux 5.4.17-2136.310.7.1.el7uek.x86_64
Architecture: x86-64
[root@srvem ~]# yum update -y
Loaded plugins: ulninfo
No packages marked for update
ShellScriptInstalando pacotes no SO Oracle database 19 e EM.
yum install xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps -y
yum install wget zip unzip rsync -y
yum install ntp nfs-utils net-tools -y
yum install NetworkManager-tui -y
yum install -y oracle-database-preinstall-19c
yum install -y bc
yum install -y binutils
yum install -y compat-libcap1
yum install -y compat-libstdc++-33
yum install -y dtrace-utils
yum install -y elfutils-libelf
yum install -y elfutils-libelf-devel
yum install -y fontconfig-devel
yum install -y glibc
yum install -y glibc-devel
yum install -y ksh
yum install -y libaio
yum install -y libaio-devel
yum install -y libdtrace-ctf-devel
yum install -y libXrender
yum install -y libXrender-devel
yum install -y libX11
yum install -y libXau
yum install -y libXi
yum install -y libXtst
yum install -y libgcc
yum install -y librdmacm-devel
yum install -y libstdc++
yum install -y libstdc++-devel
yum install -y libxcb
yum install -y make
yum install -y nfs-utils # ACFS
yum install -y python # ACFS
yum install -y python-configshell # ACFS
yum install -y python-rtslib # ACFS
yum install -y python-six # ACFS
yum install -y targetcli # ACFS
yum install -y smartmontools
yum install -y sysstat
yum install psmisc -y
yum install -y dtrace-modules
yum install -y dtrace-modules-headers
yum install -y dtrace-modules-provider-headers
yum install -y unixODBC
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
ShellScriptAjustar swap do servidor para 10 (Indica que o sistema poderá usar Swap a partir de 90% de uso de RAM, o default é 30).
[root@srvem ~]# sysctl vm.swappiness=10
vm.swappiness = 10
[root@srvem ~]# echo "vm.swappiness=10" >> /etc/sysctl.conf
[root@srvem ~]# /sbin/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 = 9000 65500
vm.swappiness = 10
[root@srvem ~]# cat /proc/sys/vm/swappiness
10
ShellScriptDesativar SELINUX.
cat /etc/selinux/config
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
ShellScriptAjustar arquivo de hosts.
cat >> /etc/hosts << EOF
192.168.72.138 srvem.localdomain srvem
EOF
[root@srvem ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.72.138 srvem.localdomain srvem
ShellScriptAjustar o ip_local_port_range para Oracle Enterprise Manager Cloud Control 13.
[root@srvem ~]# cat /etc/sysctl.conf | grep ip_local_port_range
# oracle-database-preinstall-19c setting for net.ipv4.ip_local_port_range is 9000 65500
net.ipv4.ip_local_port_range = 9000 65500
[root@srvtst ~]# vi /etc/sysctl.conf
net.ipv4.ip_local_port_range = 11000 65000
[root@srvtst ~]# /sbin/sysctl -p
ShellScriptInstalação do Oracle database para o repositorio do Oracle Enterprise Manager Cloud Control 13.5.
[root@srvem ~]# mkdir -p /u01/app/oracle/product/19.0.0.0/db_1
[root@srvem ~]# mkdir -p /u01/app/oracle/middleware/
[root@srvem ~]# mkdir -p /u01/app/oracle/agent/
[root@srvem ~]# chown -R oracle:oinstall /u01
[root@srvem ~]# chmod -R 775 /u01
ShellScript.bash_profile usuario oracle
[root@srvem ~]# vi /home/oracle/.bash_profile
# Oracle Settings
export TMP=/tmp
export ORACLE_HOSTNAME=srvem.localdomain
export ORACLE_UNQNAME=em
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.3.0.0/db_1
export ORACLE_SID=em
PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
alias cdob='cd $ORACLE_BASE'
alias cdoh='cd $ORACLE_HOME'
alias tns='cd $ORACLE_HOME/network/admin'
alias envo='env | grep ORACLE'
umask 022
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -u 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
envo
ShellScriptOracle Enterprise Manager Cloud Control variaveis.
export OMS_HOME=/u01/app/oracle/middleware/
export AGENT_HOME=/u01/app/oracle/agent/
ShellScriptAlterar senha do usuário oracle no sistema operacional.
[root@srvem ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
ShellScriptCriar o diretório de backups e instaladores.
[root@srvem ~]# mkdir -p /u02/instaladores
[root@srvem ~]# mkdir -p /u02/backups
[root@srvem ~]# mkdir -p /u02/logs
[root@srvem ~]# mkdir -p /u02/scripts
[root@srvem ~]# chown -R oracle:oinstall /u02
[root@srvem ~]# chmod -R 775 /u02
ShellScriptAgora iremos fazer o upload de todos os instaladores dos links acima.
[oracle@srvem instaladores]$ ls -lat
total 14735628
-rw-r--r--. 1 oracle oinstall 3059705302 Sep 3 13:02 LINUX.X64_193000_db_home.zip
drwxrwxr-x. 2 oracle oinstall 4096 Sep 3 13:00 .
-rw-r--r--. 1 oracle oinstall 1375008229 Sep 3 12:59 p32545013_190000_Linux-x86-64.zip
-rw-r--r--. 1 oracle oinstall 1178610858 Sep 3 12:52 p34158673_135000_Generic.zip
-rw-r--r--. 1 oracle oinstall 912424 Sep 3 12:52 p19999993_135000_Generic.zip
-rw-r--r--. 1 oracle oinstall 1494500710 Sep 3 12:52 em13500_linux64-5.zip
-rw-r--r--. 1 oracle oinstall 1454982045 Sep 3 12:52 em13500_linux64-4.zip
-rw-r--r--. 1 oracle oinstall 2130750885 Sep 3 12:51 em13500_linux64-3.zip
-rw-r--r--. 1 oracle oinstall 1897494675 Sep 3 12:51 em13500_linux64-2.zip
-rw-r--r--. 1 oracle oinstall 1586801533 Sep 3 12:50 em13500_linux64.bin
-rw-r--r--. 1 oracle oinstall 787609721 Sep 3 12:49 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0_Linux_x64.zip
-rw-r--r--. 1 oracle oinstall 122883931 Sep 3 12:44 p6880880_190000_Linux-x86-64.zip
ShellScriptInstaladores do Oracle database 19.3 e patch 19.11.
LINUX.X64_193000_db_home.zip
# OPatch
p6880880_190000_Linux-x86-64.zip
# Patch 19.11
p32545013_190000_Linux-x86-64.zip
ShellScriptInstaladores do Oracle Enterprise Manager Cloud Control 13.5.
em13500_linux64.bin
em13500_linux64-2.zip
em13500_linux64-3.zip
em13500_linux64-4.zip
em13500_linux64-5.zip
ShellScriptOMSPatcher similar ao OPatch do Oracle database.
p19999993_135000_Generic.zip
# Patch 13.5.0.8
p34158673_135000_Generic.zip
ShellScriptInstalando o binário do Oracle database 19.3 aplicando o patch 19.11.
[root@srvem ~]# chown -R oracle:oinstall /u02
[root@srvem ~]# chmod -R 775 /u02
[root@srvem ~]# su - oracle
[oracle@srvem ~]# cd $ORACLE_HOME
[oracle@srvem db_1]$ unzip -oq /u02/instaladores/LINUX.X64_193000_db_home.zip
[root@srvem product]# ls /u01/app/oracle/product/19.0.0.0/db_1
addnode bin css data deinstall dmu env.ora install javavm jlib md nls OPatch ord oui plsql R relnotes root.sh.old.1 sdk sqlj srvm usm xdk
apex clone ctx dbjava demo drdaas has instantclient jdbc ldap mgw odbc opmn ords owm precomp racg root.sh runInstaller slax sqlpatch suptools utl
assistants crs cv dbs diagnostics dv hs
ShellScriptVerificando a versão atual do OPatch.
[oracle@srvem ~]# $ORACLE_HOME/OPatch/opatch version
OPatch Version: 12.2.0.1.17
OPatch succeeded.
ShellScriptAtualizando a versão do OPatch pré-requisito para aplicar o patch no banco.
[oracle@srvem ~]# cd $ORACLE_HOME/
[oracle@srvem ~]# mv OPatch OPatch_old
[oracle@srvem ~]# cd /u02/instaladores/
[oracle@srvem ~]# unzip p6880880_190000_Linux-x86-64.zip
[oracle@srvem ~]# mv OPatch/ $ORACLE_HOME/
[oracle@srvem ~]# $ORACLE_HOME/OPatch/opatch version
OPatch Version: 12.2.0.1.29
OPatch succeeded.
ShellScriptInstalar o binário do Oracle database com RU 19.11.
[oracle@srvem ~]# unzip p32545013_190000_Linux-x86-64.zip
[oracle@srvem instaladores]$ cd $ORACLE_HOME/
[oracle@srvem db_1]$ ./runInstaller -applyRU /u02/instaladores/32545013
Preparing the home to patch...
Applying the patch /u02/instaladores/32545013...
Successfully applied the patch.
The log can be found at: /tmp/InstallActions2022-09-03_01-26-04PM/installerPatchActions_2022-09-03_01-26-04PM.log
Launching Oracle Database Setup Wizard...
The response file for this session can be found at:
/u01/app/oracle/product/19.0.0.0/db_1/install/response/db_2022-09-03_01-26-04PM.rsp
You can find the log of this install session at:
/tmp/InstallActions2022-09-03_01-26-04PM/installActions2022-09-03_01-26-04PM.log
Moved the install session logs to:
/u01/app/oraInventory/logs/InstallActions2022-09-03_01-26-04PM
ShellScriptCopiando o template para criação do database para Oracle Enterprise Manager Cloud Control 13.5.
[oracle@srvem db_1]$ cd /u02/instaladores/
[oracle@srvem ~]# unzip 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0_Linux_x64.zip -d $ORACLE_HOME/assistants/dbca/templates/
ShellScriptVerificando os novos templates extraídos.
[oracle@srvem instaladores]$ ls -lat /u01/app/oracle/product/19.0.0.0/db_1/assistants/dbca/templates/
total 1228588
drwxr-xr-x 2 oracle oinstall 4096 Sep 3 13:40 .
drwxr-xr-x 5 oracle oinstall 77 Sep 3 13:36 ..
-rw-r--r-- 1 oracle oinstall 1777 Jul 5 2021 shpool_19_11_0_0_0_Database_SQL_for_EM13_5_0_0_0.sql
-rw-r--r-- 1 oracle oinstall 7965 Jul 1 2021 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0_Small_deployment.dbc
-rw-r--r-- 1 oracle oinstall 7967 Jul 1 2021 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0_Medium_deployment.dbc
-rw-r--r-- 1 oracle oinstall 7969 Jul 1 2021 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0_Large_deployment.dbc
-rw-r--r-- 1 oracle oinstall 3095 Jul 1 2021 set_repo_param_19_11_0_0_0_Database_SQL_for_EM13_5_0_0_0_Medium_deployment.sql
-rw-r--r-- 1 oracle oinstall 2980 Jul 1 2021 set_repo_param_19_11_0_0_0_Database_SQL_for_EM13_5_0_0_0_Small_deployment.sql
-rw-r--r-- 1 oracle oinstall 3092 Jul 1 2021 set_repo_param_19_11_0_0_0_Database_SQL_for_EM13_5_0_0_0_Large_deployment.sql
-rw-r--r-- 1 oracle oinstall 1936 Jul 1 2021 shpool_19_11_0_0_0_Database_SQL_for_EM13_5_0_0_0_Small.sql
-rw-r--r-- 1 oracle oinstall 1931 Jul 1 2021 shpool_19_11_0_0_0_Database_SQL_for_EM13_5_0_0_0_Medium.sql
-rw-r--r-- 1 oracle oinstall 1931 Jul 1 2021 shpool_19_11_0_0_0_Database_SQL_for_EM13_5_0_0_0_Large.sql
-rw-r----- 1 oracle oinstall 19054592 Apr 23 2021 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0.ctl
-rw-r----- 1 oracle oinstall 186662912 Apr 23 2021 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0.dfb3
-rw-r----- 1 oracle oinstall 254746624 Apr 23 2021 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0.dfb2
-rw-r----- 1 oracle oinstall 417685504 Apr 23 2021 19_11_0_0_0_Database_Template_with_cdbpdb_for_EM13_5_0_0_0.dfb1
-rw-r----- 1 oracle oinstall 6611 Apr 17 2019 pdbseed.xml
-rw-r----- 1 oracle oinstall 4768 Apr 17 2019 General_Purpose.dbc
-rw-r----- 1 oracle oinstall 4888 Apr 17 2019 Data_Warehouse.dbc
-rw-r----- 1 oracle oinstall 18726912 Apr 17 2019 Seed_Database.ctl
-rw-r----- 1 oracle oinstall 274554880 Apr 17 2019 Seed_Database.dfb
-rw-r----- 1 oracle oinstall 86548480 Apr 17 2019 pdbseed.dfb
-rw-r----- 1 oracle oinstall 10772 Apr 5 2019 New_Database.dbt
ShellScriptAgora iremos criar o banco de dados usando o template pata Oracle Enterprise Manager Cloud Control 13.5.
[oracle@srvem instaladores]$ dbca
ShellScriptEscolha o template de acordo com o tamanho do ambiente a ser monitorado conforme a imagem de configuração e hardware recomendado.
Verificando as informações do Oracle database.
set lines 200
col DATABASE_HOST for a25;
col DB_UNIQUE_NAME for a25
col HOST_NAME for a15;
col DATABASE_ROLE for a10
col OPEN_MODE for a10
col STARTUP_TIME for a20
alter session set nls_date_format = 'DD/MM/YYYY HH24:MI:SS';
SELECT i.HOST_NAME "DATABASE_HOST" ,
i.INSTANCE_NAME "DB_NAME",
d.db_unique_name "DB_UNIQUE_NAME" ,
d.DATABASE_ROLE " DATABASE_ROLE",
i.VERSION,
d.OPEN_MODE " OPEN_MODE ",
d.LOG_MODE
,STARTUP_TIME
from GV$DATABASE d, gv$instance i
where i.INST_ID=d.INST_ID;
##### Patch 19.11 aplicado #####
set pagesize 20;
set linesize 200;
col ACTION_TIME format a30;
col DESCRIPTION format a50;
alter session set nls_date_format = 'DD/MM/YYYY HH24:MI:SS';
select PATCH_ID,ACTION,ACTION_TIME,DESCRIPTION,STATUS from registry$sqlpatch order by ACTION_TIME ;
SQLAjustando os parâmetros e o valor da SGA e PGA.
Alter system set pga_aggregate_limit=0 Scope=both Sid='*';
ALTER SYSTEM SET sga_target=4g SCOPE=SPFILE sid='*';
ALTER SYSTEM SET sga_max_size = 4g scope=SPFILE sid='*';
ALTER SYSTEM SET pga_aggregate_target =1500M SCOPE=SPFILE sid='*';
alter system set session_cached_cursors=300 scope=spfile;
alter system set shared_pool_size=600M scope=spfile;
alter system set processes=800 scope=spfile;
alter pluggable database all open;
alter pluggable database all save state;
set colsep " | "
set linesize 100
set pagesize 500
show parameter sga_max_size
show parameter sga_target
show parameter pga_aggregate_target
show parameter pga_aggregate_limit
show parameter memory_max_target
show parameter memory_target
SQLHabilitar archivelog.
[oracle@srvem backups]$ mkdir -p /u02/backups/backupset/
[oracle@srvem backups]$ mkdir -p /u02/backups/archivelogs/
ShellScriptSQL> SELECT LOG_MODE FROM V$DATABASE;
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=/u02/backups/archivelogs/ MANDATORY' SCOPE=BOTH;
SQL> alter system set log_archive_format='%t_%s_%r.arc' scope=spfile;
SQL> shutdown immediate;
SQL> STARTUP MOUNT;
SQL> ALTER DATABASE ARCHIVELOG;
SQL> ALTER DATABASE OPEN;
SQL> ALTER SYSTEM SWITCH LOGFILE;
SQL> !ls -lat /u02/backups/archivelogs/
SQLOracle Enterprise Manager Cloud Control 13c Instalação.
[oracle@srvem instaladores]$ ./em13500_linux64.bin
Launcher log file is /tmp/OraInstall2022-09-03_03-27-41PM/launcher2022-09-03_03-27-41PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Done
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Checking swap space: must be greater than 512 MB. Actual 8191 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2022-09-03_03-27-41PM
ScratchPathValue :/tmp/OraInstall2022-09-03_03-27-41PM
ShellScriptAcesso ao cloud control.
https://192.168.72.138:7803/em
ShellScriptUsuário: SYSMAN
Senha: usada na instalação
Operações diárias com o serviços do cloud control.
[oracle@srvem ~]$ export OMS_HOME=/u01/app/oracle/middleware/
[oracle@srvem ~]$ export AGENT_HOME=/u01/app/oracle/agent/agent_13.5.0.0.0/
[oracle@srvem ~]$ export OMS_HOME=/u01/app/oracle/middleware/
[oracle@srvem ~]$ export AGENT_HOME=/u01/app/oracle/agent/agent_13.5.0.0.0/
[oracle@srvem ~]$ $OMS_HOME/bin/emctl start oms
[oracle@srvem ~]$ $AGENT_HOME/bin/emctl start agent
[oracle@srvem ~]$ $OMS_HOME/bin/emctl stop oms
[oracle@srvem ~]$ $AGENT_HOME/bin/emctl stop agent
[oracle@srvem ~]$ $OMS_HOME/bin/emctl status oms
[oracle@srvem ~]$ $AGENT_HOME/bin/emctl status agent
[oracle@srvem ~]$ $OMS_HOME/bin/emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
[oracle@srvem ~]$ $AGENT_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.5.0.0.0
OMS Version : 13.5.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/app/oracle/agent/agent_inst
Agent Log Directory : /u01/app/oracle/agent/agent_inst/sysman/log
Agent Binaries : /u01/app/oracle/agent/agent_13.5.0.0.0
Core JAR Location : /u01/app/oracle/agent/agent_13.5.0.0.0/jlib
Agent Process ID : 8680
Parent Process ID : 8608
Agent URL : https://srvem:3872/emd/main/
Local Agent URL in NAT : https://srvem:3872/emd/main/
Repository URL : https://srvem:4903/empbs/upload
Started at : 2022-09-06 02:12:40
Started by user : oracle
Operating System : Linux version 5.4.17-2136.310.7.1.el7uek.x86_64 (amd64)
Number of Targets : 35
Last Reload : (none)
Last successful upload : 2022-09-06 09:57:44
Last attempted upload : 2022-09-06 09:57:44
Total Megabytes of XML files uploaded so far : 2.37
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 55.69%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2022-09-06 10:02:13
Last successful heartbeat to OMS : 2022-09-06 10:02:13
Next scheduled heartbeat to OMS : 2022-09-06 10:03:13
---------------------------------------------------------------
Agent is Running and Ready
ShellScript