gridSetup.sh -switchGridhome

The gridSetup.sh -switchGridHome command changes the active Oracle Grid Infrastructure home from the configured home to the current home from which you are running this command.

Syntax

gridSetup.sh -switchGridHome [-zeroDowntimeGIPatching [-skipDriverUpdate]] 
[-rollback -oldHome old_GI_Home [-clusterNodes list_of_nodes]] 
[-executePrereqs] [-drainTimeoutInSeconds number_of_seconds] [-resume]

Parameters

Table A-5 gridSetup.sh -switchGridHome Command Parameters

Parameter Mandatory? Description
-zeroDowntimeGIPatching No

Switch the active Oracle Grid Infrastructure home to the current home without stopping the databases and services.

-skipDriverUpdate No

Specify this option to skip updating the operating system drivers, such as Oracle ACFS and Oracle ASMFD.

Note: If the patch that you are installing contains operating system driver updates, then you must use -skipDriverUpdate to avoid restarting your server.

-rollback {-oldHome old_GI_Home | -clusterNodes list_of_nodes} No

Switch back to the previous Oracle Grid Infrastructure home when the patching operation fails. When you use this option, specify the old Grid Infrastructure home and the list of cluster nodes on which you want to perform the rollback operation.

-executePrereqs No

Run prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.

-drainTimeoutInSeconds number_of_seconds No

Drain the database services before stopping the database instances on the current node. Specify the drain timeout value in seconds.

-resume No

Resume operation to run pending and failed jobs.

-help No

Displays the gridSetup.sh -switchGridhome command help.

Usage Notes

You cannot use the -zeroDowntimeGIPatching and -rollback options together.

Example

The following example shows how to switch from the current Grid home to the patched Grid home.
gridSetup.sh -switchGridHome -zeroDowntimeGIPatching -skipDriverUpdate -drainTimeoutInSeconds 60