- Installation Guide
- Installing Session Monitor Offline
- Installing Oracle Communications Session Monitor for the First Time using the Above Configured Repo Server
Installing Oracle Communications Session Monitor for the First Time using the Above Configured Repo Server
This section describes how to install Session Monitor for the first time.
- Login to the OCSM server as root or root privileged user.
- Rename all repose under
/etc/yum.repos.d
mv /etc/yum.repos.d/oracle-linux-ol8.repo /etc/yum.repos.d/oracle-linux-ol8.repo_bkp mv /etc/yum.repos.d/uek-ol8.repo /etc/yum.repos.d/uek-ol8.repo_bkp mv /etc/yum.repos.d/virt-ol8.repo /etc/yum.repos.d/virt-ol8.repo_bkp
- Create
/etc/yum.repos.d/ocsm.repo
with the following content:[OCSM] name=OCSM dependencies baseurl=ftp://<REPO_SERVER_IP>/pub/ocsm/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=0 enabled=1 proxy=_none_
- Clean up the repo
by running the following command:
yum clean all
- Verify the repolist
by running the following command:
# yum repolist repo id repo name OCSM OCSM dependencies
- Install the MySQL RPMs using the following command:
yum install mysql-commercial-*
- Copy the following RPMs from the repo Server to the OCSM Server in a temporary
directory, such as
/tmp/dependency/
and install the RPMs on OCSM Server in this order:1. rpm -ivh python39-setuptools-wheel-50.3.2-4.module+el8.5.0+20364+c7fe1181.noarch.rpm 2. rpm -ivh python39-pip-wheel-20.2.4-7.module+el8.6.0+20625+ee813db2.noarch.rpm 3. rpm -ivh python39-libs-3.9.13-2.module+el8.7.0+20879+a85b87b0.x86_64.rpm 4. rpm -ivh python39-3.9.13-2.module+el8.7.0+20879+a85b87b0.x86_64.rpm 5. rpm -ivh python39-pip-20.2.4-7.module+el8.6.0+20625+ee813db2.noarch.rpm 6. rpm -ivh python39-pyyaml-5.4.1-1.module+el8.5.0+20364+c7fe1181.x86_64.rpm
- Download the following protobuf package from https://pypi.org/project/protobuf/3.20.3/#files to a
temporary directory, such as /tmp/dependency/ directory of OCSM Server:
protobuf-3.20.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Download the following MySQL Connector package from MOS to same temporary
directory used in Step 8, such as
/tmp/dependency/
directory of the OCSM Server.MySQL Connector 8.0.32 Package: p34984522_800_Linux-x86-64.zip (Patch 34984522: MySQL Connector/Python 8.0.32 WHL for portable Linux x86 (64bit) Python 3.9)
Note:
The OCSM dependencies used here are based on MySQL Connector 8.0.32, as we are using MySQL 8.0.32 version. If there are any additional dependencies required, please take that as well. - Set python alternatives to python3.9 by running the following commands:
update-alternatives --config python3 update-alternatives --config python
Note:
When prompted, select the number corresponding to python3.9 option and press the Enter key.Note:
After the OCSM Installation, while installing any new packages using yum, some packages will install Python 3.6 as a dependency. As a result Python alternatives will get changed. This can cause unexpected problems in the OCSM functionality. So it is mandatory for you to verify that Python is pointing to python 39 after every package installation using yum by running the above two commands. - From the temporary directory, such as
/tmp/dependency/
, run the following commands to install MySQL Connector:cd /tmp/dependency/ yum install unzip unzip p34984522_800_Linux-x86-64.zip pip3 install mysql_connector_python-8.0.32-1commercial-cp39-cp39-manylinux1_x86_64.whl --no-index --find-links=/tmp/dependency/
- Install OCSM by
running the following command:
yum -y install ocsm
OCSM Installation is now complete.