Showing posts with label Database Upgrade. Show all posts
Showing posts with label Database Upgrade. Show all posts

Saturday, 20 June 2020

Rolling Upgrade Error in Script

Few months back we were upgrading our AIX based database from 11gR2 [11.2.0.4] to 12c [12.2.0.1] by rolling upgrade. When we run physru_v3.sh script it is giving error:


WARN: The last execution of this script either exited in error or at the
-e user's request. At this point, there are three available options:

-e 1) resume the rolling upgrade where the last execution left off
-e 2) restart the script from scratch
-e 3) exit the script
-e
Option (2) assumes the user has restored the primary and physical
-e standby back to the original configuration as required by this script.

-e Enter your selection (1/2/3):
-e Sep 24 11:17:59 2019 [0-1] not a valid option - ''

-e Enter your selection (1/2/3):
-e Sep 24 11:17:59 2019 [0-1] not a valid option - ''

-e Enter your selection (1/2/3):
-e Sep 24 11:17:59 2019 [0-1] not a valid option - ''


Solution:

The issue is caused by the following setup:
in physru_v3.sh script change first line from below and then rerun the script

#!/bin/sh

to

#!/bin/bash  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<