Downgrading Oracle Restart
Use this procedure to deconfigure and downgrade Oracle Restart, or to troubleshoot Oracle Restart installation errors.
Running roothas.sh with the command flags -deconfig -force enables you to deconfigure Oracle Restart without removing the installed binaries. This feature is useful if you encounter an error during an Oracle Grid Infrastructure for a standalone server installation. For example, when you run the root.sh command, and find a missing operating system package. By running roothas.sh -deconfig -force, you can deconfigure Oracle Restart, correct the cause of the error, and then run root.sh again.
As the
oracleuser, create a backup of the SPFILE to a PFILE.CREATE PFILE='/u01/app/oracle/product/19.0.0/dbhome_1/dbs/test_init.ora' FROM SPFILE='/u01/oracle/dbs/test_spfile.ora';List all the Oracle Databases on the server with their version, unique name of the database, and Oracle home information.
$ srvctl config database -homeDowngrade Oracle Database. Refer to Oracle Database Upgrade Guide for more information about required pre-downgrade tasks, downgrade tasks, post-downgrade tasks, and compatibility information.
Note:
Downgrade Oracle Database only if the Oracle Database version is higher than the Oracle Restart version to which you are downgrading Oracle Restart.
As the
oracleuser, downgrade the Oracle Restart resources corresponding to the Oracle Database, only if you have downgraded your Oracle Database.$ srvctl downgrade database -d db_unique_name -oraclehome $ORACLE_HOME -t to_version- Inspect the Oracle Restart configuration of each database, service, and listener.
$ srvctl config database -db db_unique_name $ srvctl config service -db db_unique_name $ srvctl config listener -listener listener_nameMake a note of the configuration information and use this information when adding the components back to Oracle Restart.
Stop all databases and listeners that are running before you deconfigure or downgrade Oracle Restart.
$ srvctl stop database -db db_unique_name $ srvctl stop listener [-listener listener_name]As the
rootuser, runroothas.shwith the-deconfig -forceflags to deconfigure Oracle Restart.# /u01/app/oracle/product/19.0.0/grid/crs/install/roothas.sh -deconfig -forceAs the
griduser, update the Oracle central inventory (oraInventory).$ /u01/app/oracle/product/19.0.0/grid/oui/bin/runInstaller -updateNodeList -silent ORACLE_HOME=upgraded_Grid_home -local CRS=falseAs the
rootuser, runroothas.shwith the-unlockflag to unlock the previous release Oracle Restart home.# /u01/app/oracle/product/18.0.0/grid/crs/install/roothas.sh -unlock -dstcrshome previous_release_Grid_homeAs the
griduser, reconfigure the previous release Oracle Restart home using thegridSetup.shcommand.$ /u01/app/oracle/product/18.0.0/grid/gridSetup.shAs the
oracleuser, add the components back to Oracle Restart with the same attributes that you noted down before deconfiguring Oracle Restart.Add Oracle Database to the Oracle Restart configuration.
$ srvctl add database -db db_unique_name -oraclehome Oracle_home- Add the listener to the Oracle Restart configuration.
$ srvctl add listener -listener listener_name -oraclehome Oracle_homeFor the
-oraclehomeparameter, provide the Oracle home path from which the listener was running before the downgrade. Add each service to the database, using the
srvctl add servicecommand.$ srvctl add service -db db_unique_name -service service_name_list
Related Topics