| Server IP : 103.175.220.74 / Your IP : 216.73.216.151 Web Server : nginx/1.18.0 System : Linux p-floo-wj1-db 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : deploy ( 1003) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/floo.root/docker-images/OracleDatabase/OracleConnectionManager/ |
Upload File : |
# Oracle Connection Manager Container Image Sample container build files to facilitate installation, configuration, and environment setup for DevOps users. For more information about Oracle Database please see the [Oracle Connection Manager online Documentation](http://docs.oracle.com/en/database/). ## How to build and run This project offers sample container images for: * Oracle Database 23ai Client (23.5) for Linux x86-64 * Oracle Database 21c Client (21.3) for Linux x86-64 * Oracle Database 19c Client (19.3) for Linux x86-64 * Oracle Database 18c Client (18.3) for Linux x86-64 * Oracle Database 12c Release 2 Client (12.2.0.1.0) for Linux x86-64 To assist in building the container images, you can use the [buildContainerImage.sh](containerfiles/buildContainerImage.sh) script. See section **Create Oracle Connection Manager Image** for instructions and usage. **IMPORTANT:** Oracle Connection Manager binds to a single port on your host and proxies incoming connections to multiple running containers. It can also proxy connections for users to Oracle RAC Databases running on internal container networks. If you are on Podman Host, please ensure that you have the `podman-docker` package installed on your OL8 Podman host to run the command using the docker utility. ```bash dnf install podman-docker -y ``` For complete Oracle Connection Manager setup, please go though following steps and execute them as per your enviornment: ### Create Oracle Connection Manager Image **IMPORTANT:** You will have to provide the installation binaries of Oracle ADMIN Client Oracle Database 23ai Client (23.5) for Linux x86-64 and put them into the `containerfiles/<version>` folder. You only need to provide the binaries for the edition you are going to install. The binaries can be downloaded from the [Oracle Technology Network](http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html). You also have to make sure to have internet connectivity for yum. Note that you must not uncompress the binaries. The `buildContainerImage.sh` script is just a utility shell script that performs MD5 checks and is an easy way for beginners to get started. Expert users are welcome to directly call `docker build` with their prefered set of parameters. Before you build the image make sure that you have provided the installation binaries and put them into the right folder. #### Create Oracle Connection Manager Image in Podman Hosts Go into the **containerfiles** folder and run the **buildContainerImage.sh** script as root or with sudo privileges: ```bash cd <git-cloned-path>/docker-images/OracleDatabase/RAC/OracleConnectionManager/containerfiles ./buildContainerImage.sh -v (Software Version) ./buildContainerImage.sh -v 23.5.0 ``` For detailed usage of command, please execute following command: ```bash cd <git-cloned-path>/docker-images/OracleDatabase/RAC/OracleConnectionManager/containerfiles ./buildContainerImage.sh -h ``` #### Create Oracle Connection Manager Image in Docker Hosts Go into the **dockerfiles** folder and run the **buildContainerImage.sh** script as root or with sudo privileges: ```bash cd <git-cloned-path>/docker-images/OracleDatabase/RAC/OracleConnectionManager/dockerfiles ./buildContainerImage.sh -v (Software Version) ./buildContainerImage.sh -v 21.3.0 ``` For detailed usage of command, please execute following command: ```bash cd <git-cloned-path>/docker-images/OracleDatabase/RAC/OracleConnectionManager/dockerfiles ./buildContainerImage.sh -h ``` ### Create Network Bridge Before creating container, create the bridge. If you are using same bridge with same network then you can use same IPs mentioned in **Create Containers** section. ```bash docker network create --driver=bridge --subnet=172.16.1.0/24 rac_pub1_nw ``` **Note:** You can change subnet according to your environment. ### Create Containers Execute following command as root user to create connection manager container on `Docker Host`- ```bash docker run -d --hostname racnodedc1-cman --dns-search=example.com \ --network=rac_pub1_nw --ip=172.16.1.164 \ -e DOMAIN=example.com -e PUBLIC_IP=172.16.1.164 \ -e PUBLIC_HOSTNAME=racnodedc1-cman -e SCAN_NAME=racnodedc1-scan \ -e SCAN_IP=172.16.1.230 --privileged=false \ -p 1521:1521 --name racnodedc1-cman oracle/client-cman:21.3.0 ``` Execute following command as root user to create connection manager container on `Podman Host`- ```bash podman run -d \ --hostname racnodepc1-cman \ --dns-search=example.com \ --dns 172.16.1.25 \ --network=rac_pub1_nw \ --ip=172.16.1.164 \ --cap-add=AUDIT_WRITE \ --cap-add=NET_RAW \ -e DOMAIN=example.com \ -e PUBLIC_IP=172.16.1.164 \ -e DNS_SERVER=172.16.1.25 \ -e PUBLIC_HOSTNAME=racnodepc1-cman \ -e DB_HOSTDETAILS="HOST=racnodepc1-scan:RULE_ACT=accept,HOST=racnodep1:IP=172.16.1.170" \ --privileged=false \ -p 1521:1521 \ --name racnodepc1-cman \ oracle/client-cman:23.5.0 ``` In the above container, you can see that we are passing env variables using "-e". You need to change `PUBLIC_IP`, `PUBLIC_HOSTNAME`, `SCAN_NAME`, `SCAN_IP`, `DB_HOSTDETAILS` according to your environment. Also, container will be binding to port 1521 on your docker host. **Note:** SCAN_NAME and SCAN_IP will be your Oracle RAC SCAN details. These will be registered in connection manager but will be accessible when you create Oracle RAC container. To check the Cman container/services creation logs , please tail docker logs. It will take 2 minutes to create the Cman container service. Check logs in `Docker Host` - ```bash docker logs racnodedc1-cman ``` Check logs in `Podman Host` - ```bash podman logs racnodepc1-cman ``` You should see following when cman container setup is done: ```bash ################################### CONNECTION MANAGER IS READY TO USE! ################################### ```