Skip to content

Commit

Permalink
Do not bounce Snapshot Standby Database (#309)
Browse files Browse the repository at this point in the history
* Do not bounce Snapshot Standby Database

* Commit changes made by code formatters

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
bill-buchan and github-actions[bot] authored May 29, 2024
1 parent 6e6975a commit 41a16e2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
. ~/.bash_profile
srvctl modify database -d ${ORACLE_SID} -startoption "read only"
# Do not bounce an open database -- it will be in use as a Snapshot Standby
- name: Bounce Standby Database Following Config Change
when: adg_config.stdout_lines[-1] != 'read only'
when:
- adg_config.stdout_lines[-1] != 'mount'
- adg_config.stdout_lines[-1] != 'open'
block:
- name: Shutdown Database
include_tasks: shutdown_database.yml
Expand Down

0 comments on commit 41a16e2

Please sign in to comment.