Installing Oracle Grid Infrastructure for a Standalone Server for an Existing Database
Follow the high-level instructions in this section to install Oracle Grid Infrastructure for a standalone server and configure it for an existing Oracle Database.
-
Log in as the Oracle Database software owner user.
-
Set the ORACLE_HOME and ORACLE_SID environment variables.
Bourne, Bash or Korn shell:
$ ORACLE_SID=orcl $ export ORACLE_SID $ ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1 $ export ORACLE_HOME
C shell:
% setenv ORACLE_SID orcl % setenv ORACLE_HOME /u01/app/oracle/product/19.0.0/dbhome_1
-
Go to the Oracle home and stop any existing database listeners.
$ $ORACLE_HOME/lsnrctl stop listener_name
Note:
If this command throws an error, reload the listener usinglsnrctl reload LISTENER
-
On the same host computer as the database, install Oracle Grid Infrastructure for a standalone server, and select Configure Oracle Grid Infrastructure for a Standalone Server (Oracle Restart) as the installation option. See, “Installing Oracle Grid Infrastructure for a Standalone Server with a New Database Installation” in Oracle Database Installation Guide.
The Oracle Grid Infrastructure for a standalone server components are installed in an Oracle Grid Infrastructure Oracle home (Grid home), which is in a different location from existing Oracle Database homes.
-
If you have an existing Oracle Database, then register it for High Availability with Oracle Restart using the
srvctl
command:$ cd $ORACLE_HOME/bin $ srvctl add database -db dbname -o oracle_home_path