Skip to content

Commit 2dd4ce8

Browse files
Dba 783 (#438)
* Add password file when adding database to crs * Use bash shell
1 parent ac2a837 commit 2dd4ce8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/oracle-db-build-ha.yml

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111

112112
- name: Check Standbydb's Configured In Ansible Inventory
113113
id: standbydbsconfigured
114+
shell: bash
114115
working-directory: ${{ env.inventory }}
115116
run: |
116117
database_environment="environment_name_$(echo ${{ github.event.inputs.TargetEnvironment }} | sed 's/dev/development_dev/;s/test/test_test/;s/training/test_training/;s/stage/preproduction_stage/;s/pre-prod/preproduction_pre_prod/;s/-prod/_production_prod/;s/-/_/g')"
@@ -154,6 +155,7 @@ jobs:
154155

155156
- name: Check Fast Start Fail Over Ansible Variable
156157
id: getfsfomode
158+
shell: bash
157159
working-directory: ${{ env.inventory }}
158160
run: |
159161
fsfo_mode=$(yq '.fsfo_mode' group_vars/${{ steps.prepareinventorynames.outputs.primaryHost }}.yml)

playbooks/oracle_ha/build-ha/files/rman_duplicate_to_standby.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ EOF
315315
srvctl status database -d ${STANDBYDB} > /dev/null
316316
if [ $? -ne 0 ]
317317
then
318-
srvctl add database -d ${STANDBYDB} -o ${ORACLE_HOME} -p +DATA/${STANDBYDB}/spfile${STANDBYDB}.ora -r PHYSICAL_STANDBY -s MOUNT -t IMMEDIATE -i ${STANDBYDB} -n ${PRIMARYDB} -y AUTOMATIC -a "DATA,FLASH"
318+
srvctl add database -d ${STANDBYDB} -o ${ORACLE_HOME} -spfile +DATA/${STANDBYDB}/spfile${STANDBYDB}.ora -pwfile ${ORACLE_HOME}/dbs/orapw${STANDBYDB} -r PHYSICAL_STANDBY -s MOUNT -t IMMEDIATE -i ${STANDBYDB} -n ${PRIMARYDB} -y AUTOMATIC -a "DATA,FLASH"
319319
[ $? -ne 0 ] && error "Adding ${STANDBYDB} to CRS" || info "Added ${STANDBYDB} to CRS"
320320
fi
321321
srvctl start database -d ${STANDBYDB} -o MOUNT

0 commit comments

Comments
 (0)