Tags

11g (5) 12c (6) 18c (3) 19c (4) ASM (1) Critical Patch (11) Data Pump (1) Dataguard (9) Diverse (3) GRID (7) GitLab (2) Linux (8) OEM (2) ORA Errors (13) Oracle (12) RMAN (4)

Wednesday, May 27, 2020

OEM Cloud Control 13c Installation


OEM Cloud Control 13c Installation Step by Step

Oracle Enterprise Manager Cloud Control 13c Release 3 (13.3.0.0) Installation on Red Hat Enterprise Linux Server release 7.5


PURPOSE: All documents are provided on this Blog just for educational purposes only.  Please make sure that you run it in your test environment before to move on to production environment.

Those are basic steps for the OS level. You may need or not. It depends on your environment.

You do not need to setup environment for Oracle_home and ASM and OEM. When the Installation completed then you can set it up.

If you see yum issue, then you can try to fix issue as follow:
# subscription-manager refresh
# yum repolist all
# yum update -y

Following packages are necessary for the cloud control and Oracle Installation.

yum install -y bc binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf.i686 elfutils-libelf elfutils-libelf-devel.i686 elfutils-libelf-devel fontconfig-devel glibc.i686 glibc glibc-devel.i686 glibc-devel ksh libaio.i686 libaio libaio-devel.i686 libaio-devel libX11.i686 libX11 libXau.i686 libXau libXi.i686 libXi libXtst.i686 libXtst libgcc.i686 libgcc librdmacm-devel libstdc++.i686 libstdc++ libstdc++-devel.i686 libstdc++-devel libxcb.i686 libxcb make nfs-utils net-tools python python-configshell python-rtslib python-six smartmontools sysstat targetcli unixODBC

Database Installation (Software-Only)
I am going to use 18c Software, but the Installation will work as well as on 12c.
Allocating 200 GB Raw device for ASM
You can check via fdisk -l
....
....
Disk /dev/sdc: 214.7 GB, 214748364800 bytes, 419430400 sectors
....
....
Create a rules file for asm and save it.
vi /etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL=="sdc",OWNER:="oracle",GROUP:="dba",MODE:="660"
Execute the following command, which will reload the rule.
udevadm control --reload-rules && udevadm trigger

Now the device is owned by oracle:dba
# ll /dev/sdc
brw-rw---- 1 oracle dba 8, 32 Sep 17 09:23 /dev/sdc

Stop the Firewall and disable
systemctl stop firewalld.service
systemctl disable firewalld.service
iptables -L

Download Oracle Database 18c Grid Infrastructure (18.3) for Linux x86-64 and ASM
LINUX.X64_180000_grid_home.zip
Copy the above file in the grid home and unzip the file:

cd /apps/oracle/app/home/product/18.0.0/grid_18
$ unzip LINUX.X64_180000_grid_home.zip

Patching existing software with patch 28096386 (18.3) which will perform patching prior actual installation
DISPLAY=xxx.xx.xx.xx:0.0; export DISPLAY
This command will also install grid + patch.

$ ./gridSetup.sh -applyRU /download/28096386

Do not forget to install cvuqdisk-1.0.10-1.rpm
As root:
cd /apps/oracle/app/home/product/18.0.0/grid/cv/rpm
rpm -Uvh cvuqdisk-1.0.10-1.rpm
ps -fu oracle

Now you can install just Oracle 18c software.

Oracle 18c software.


cd $ORACLE_HOME
unzip LINUX.X64_180000_db_home.zip

I am using MobaXterm for xterminal.
DISPLAY=xxx.xx.xxx.xxx:0.0; export DISPLAY
./runInstaller

NOTE: The steps are straightforward. I am not going to add the screenshot.

As root user execute the script.
# /apps/oracle/app/oraInventory/orainstRoot.sh
Changing permissions of /apps/oracle/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing group name of /apps/oracle/app/oraInventory to dba.
The execution of the script is complete.
# /apps/oracle/app/home/product/18.0.0/dbhome_18/root.sh
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /apps/oracle/app/home/product/18.0.0/dbhome_18

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Do you want to setup Oracle Trace File Analyzer (TFA) now ? yes|[no] :
no
Oracle Trace File Analyzer (TFA - Non Daemon Mode) is available at :
    /apps/oracle/app/home/product/18.0.0/dbhome_18/suptools/tfa/release/tfa_home/bin/tfactl

Note:
1. tfactl will use TFA Daemon Mode if TFA already running in Daemon Mode and user has access to TFA
2. tfactl will configure TFA Non Daemon Mode only if user has no access to TFA Daemon mode or TFA Daemon mode is not installed
OR
Oracle Trace File Analyzer (TFA - Daemon Mode) can be installed by running this script:
    /apps/oracle/app/home/product/18.0.0/dbhome_18/suptools/tfa/release/tfa_home/install/roottfa.sh
***********ORACLE SOFTWARE INSTALLATION IS COMPLETED ***********

You must do below changes before you can continue
Recommended minimum settings.

  alter pluggable database emrep save state;
  alter system set "_allow_insert_with_update_check"=true scope=both;
  alter system set session_cached_cursors=500 scope=spfile;
  alter system set shared_pool_size=600M;

Bounce the DB

On OS Side you must configure in .bash_profile and .bashrc
export EM_THREAD_STACK_SIZE=8192
Installing now OEM
em13300_linux64-2.zip
em13300_linux64-3.zip
em13300_linux64-4.zip
em13300_linux64-5.zip
em13300_linux64-6.zip
em13300_linux64.bin

You may need to create following directories.
Setup Software Library
mkdir -p /apps/oracle/app/home/swlib
mkdir -p /apps/oracle/app/home/middleware
mkdir -p /apps/oracle/app/home/agent
DISPLAY=xxx.xx.xxx.xxx:0.0; export DISPLAY

chmod u+x em13300_linux64.bin
./em13300_linux64.bin
























OEM standard commands:

# Set env OMS
 OMS_HOME=/app/oracle/product/13.2.0/middleware/oms
# Check oms status
 $OMS_HOME/bin/emctl status oms
# Stop oms
 $OMS_HOME/bin/emctl stop oms
 # Start oms
 $OMS_HOME/bin/emctl start oms
 # Set env AGT
 AGT_HOME=/app/oracle/product/13.2.0/agent/agent_13.2.0.0.0
 # Check agent status
 $AGT_HOME/bin/emctl status agent
 # Stop agent
 $AGT_HOME/bin/emctl stop agent
 # Start agent
 $AGT_HOME/bin/emctl start agent

1 comment:

physical standby without duplicate command

physical standby without duplicate command create a physical standby database using RMAN without using duplicate command PURPOSE:   All docu...