Oracle DR: Add TestMode parameter for dual behavior
rman_restore_from_zero.ps1: - Add -TestMode switch parameter - TestMode (weekly DR test): Skip service/listener config, only verify restore works - Standalone mode: Full config with SPFILE + Listener for production use weekly-dr-test-proxmox.sh: - Call restore script with -TestMode flag - Avoids service recreation and SSH disconnect during tests Benefits: - Weekly tests are faster and cleaner (no service restart) - Manual restore prepares system for production use - No more 'Broken pipe' errors during tests Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
@@ -362,7 +362,7 @@ run_dr_test() {
|
||||
log "STEP 4: Running database restore"
|
||||
|
||||
if ssh -p "$DR_VM_PORT" "$DR_VM_USER@$DR_VM_IP" \
|
||||
"powershell -ExecutionPolicy Bypass -File D:\\oracle\\scripts\\rman_restore_from_zero.ps1" 2>&1 | tee -a "$LOG_FILE"; then
|
||||
"powershell -ExecutionPolicy Bypass -File D:\\oracle\\scripts\\rman_restore_from_zero.ps1 -TestMode" 2>&1 | tee -a "$LOG_FILE"; then
|
||||
|
||||
local restore_end=$(date +%s)
|
||||
restore_duration=$(( (restore_end - restore_start) / 60 ))
|
||||
|
||||
Reference in New Issue
Block a user