Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ setup_rac_container() {
podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}

RAC_LOG="/tmp/orod/oracle_rac_setup.log"
RAC_LOG="/tmp/orod/oracle_db_setup.log"
success_message_line="ORACLE RAC DATABASE IS READY TO USE"
last_lines=""
start_time=$(date +%s)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ SCAN VIP is enabled.
```

## Debugging Oracle RAC Containers
If the install fails for any reason, log in to container using the above command and check `/tmp/orod/oracle_rac_setup.log`. You can also review the Grid Infrastructure logs located at `$GRID_BASE/diag/crs` and check for failure logs. If the failure occurred during the database creation then check the database logs.
If the install fails for any reason, log in to container using the above command and check `/tmp/orod/oracle_db_setup.log`. You can also review the Grid Infrastructure logs located at `$GRID_BASE/diag/crs` and check for failure logs. If the failure occurred during the database creation then check the database logs.


## Client Connection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ podman start ${GPCNODE}
It can take approximately 20 minutes or longer to create and start the Oracle Restart setup . To check the logs, use the following command from another terminal session:

```bash
podman exec ${GPCNODE} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${GPCNODE} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

When the database configuration is complete, you should see a message similar to the following:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ podman start racnodep2
It can take approximately 20 minutes or longer to create and set up a two-node Oracle RAC Database on Containers. To check the logs, use the following command from another terminal session:

```bash
podman exec racnodep1 /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec racnodep1 /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

When the database configuration is complete, you should see a message, similar to the following, on the installing node i.e. `racnodep1` in this case:
Expand Down Expand Up @@ -659,7 +659,7 @@ podman start racnodep3

Monitor the new container logs using below command:
```bash
podman exec racnodep3 /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec racnodep3 /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```
When the Oracle RAC container has completed being set up, you should see a message similar to the following:
```bash
Expand Down Expand Up @@ -731,7 +731,7 @@ podman start racnodep3
```
Monitor the new container logs using below command:
```bash
podman exec racnodep3 /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec racnodep3 /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

When the Oracle RAC container has completed being set up, you should see a message similar to the following:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ services:
- rac_priv1_nw
- rac_priv2_nw
healthcheck:
test: ["CMD-SHELL", "if [ `cat /tmp/orod/oracle_rac_setup.log | grep -c 'ORACLE RAC DATABASE IS READY TO USE'` -ge 1 ]; then exit 0; else exit 1; fi"]
test: ["CMD-SHELL", "if [ `cat /tmp/orod/oracle_db_setup.log | grep -c 'ORACLE RAC DATABASE IS READY TO USE'` -ge 1 ]; then exit 0; else exit 1; fi"]
interval: ${HEALTHCHECK_INTERVAL}
timeout: ${HEALTHCHECK_TIMEOUT}
retries: ${HEALTHCHECK_RETRIES}
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ services:
- rac_priv1_nw
- rac_priv2_nw
healthcheck:
test: ["CMD-SHELL", "if [ `cat /tmp/orod/oracle_rac_setup.log | grep -c 'ORACLE RAC DATABASE IS READY TO USE'` -ge 1 ]; then exit 0; else exit 1; fi"]
test: ["CMD-SHELL", "if [ `cat /tmp/orod/oracle_db_setup.log | grep -c 'ORACLE RAC DATABASE IS READY TO USE'` -ge 1 ]; then exit 0; else exit 1; fi"]
interval: ${HEALTHCHECK_INTERVAL}
timeout: ${HEALTHCHECK_TIMEOUT}
retries: ${HEALTHCHECK_RETRIES}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ podman start racnodep2
It can take at least 20 minutes or longer to create and setup 2 node RAC primary and standby setup. To check the logs, use the following command from another terminal session:

```bash
podman exec racnodep1 /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec racnodep1 /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

You should see the database creation success message at the end:
Expand Down Expand Up @@ -613,7 +613,7 @@ Below is the example of adding 1 more node to the existing Oracle RAC 2 node clu
podman network connect rac_priv1_nw --ip 192.168.17.172 racnodep3
podman network connect rac_priv2_nw --ip 192.168.18.172 racnodep3
podman start racnodep3
podman exec racnodep3 /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec racnodep3 /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```
Successful message for addition of nodes-
```bash
Expand Down Expand Up @@ -673,7 +673,7 @@ Below is an example of adding one more node to the existing Oracle RAC 2 node cl
podman network connect rac_priv1_nw --ip 192.168.17.172 racnodep3
podman network connect rac_priv2_nw --ip 192.168.18.172 racnodep3
podman start racnodep3
podman exec racnodep3 /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec racnodep3 /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"

========================================================
Oracle Database ORCLCDB3 is up and running on racnodep3.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ services:
- rac_priv1_nw
- rac_priv2_nw
healthcheck:
test: ["CMD-SHELL", "if [ `cat /tmp/orod/oracle_rac_setup.log | grep -c 'ORACLE RAC DATABASE IS READY TO USE'` -ge 1 ]; then exit 0; else exit 1; fi"]
test: ["CMD-SHELL", "if [ `cat /tmp/orod/oracle_db_setup.log | grep -c 'ORACLE RAC DATABASE IS READY TO USE'` -ge 1 ]; then exit 0; else exit 1; fi"]
interval: ${HEALTHCHECK_INTERVAL}
timeout: ${HEALTHCHECK_TIMEOUT}
retries: ${HEALTHCHECK_RETRIES}
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE2_CRS_PRIVATE_IP2}

podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -278,7 +278,7 @@ podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE2_CRS_PRIVATE_IP2}

podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -431,7 +431,7 @@ podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE2_CRS_PRIVATE_IP2}

podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -600,7 +600,7 @@ podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE2_CRS_PRIVATE_IP2}

podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -676,7 +676,7 @@ podman network connect ${PRIVATE1_NETWORK_NAME} --ip ${RACNODE3_CRS_PRIVATE_IP1}
podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE3_CRS_PRIVATE_IP2} ${RACNODE3_CONTAINER_NAME}

podman-compose start ${RACNODE3_CONTAINER_NAME}
podman exec ${RACNODE3_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE3_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -742,7 +742,7 @@ podman network connect ${PRIVATE1_NETWORK_NAME} --ip ${RACNODE3_CRS_PRIVATE_IP1}
podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE3_CRS_PRIVATE_IP2} ${RACNODE3_CONTAINER_NAME}

podman-compose start ${RACNODE3_CONTAINER_NAME}
podman exec ${RACNODE3_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE3_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE2_CRS_PRIVATE_IP2}

podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -311,7 +311,7 @@ podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE2_CRS_PRIVATE_IP2}

podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -462,7 +462,7 @@ podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE2_CRS_PRIVATE_IP2}

podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -629,7 +629,7 @@ podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE2_CRS_PRIVATE_IP2}

podman-compose start ${RACNODE1_CONTAINER_NAME}
podman-compose start ${RACNODE2_CONTAINER_NAME}
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE1_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -713,7 +713,7 @@ podman network connect ${PRIVATE1_NETWORK_NAME} --ip ${RACNODE3_CRS_PRIVATE_IP1}
podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE3_CRS_PRIVATE_IP2} ${RACNODE3_CONTAINER_NAME}

podman-compose start ${RACNODE3_CONTAINER_NAME}
podman exec ${RACNODE3_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE3_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down Expand Up @@ -782,7 +782,7 @@ podman network connect ${PRIVATE1_NETWORK_NAME} --ip ${RACNODE3_CRS_PRIVATE_IP1}
podman network connect ${PRIVATE2_NETWORK_NAME} --ip ${RACNODE3_CRS_PRIVATE_IP2} ${RACNODE3_CONTAINER_NAME}

podman-compose start ${RACNODE3_CONTAINER_NAME}
podman exec ${RACNODE3_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_rac_setup.log"
podman exec ${RACNODE3_CONTAINER_NAME} /bin/bash -c "tail -f /tmp/orod/oracle_db_setup.log"
```

Successful Message when RAC container is setup properly-
Expand Down