Stopping Existing Oracle Processes
Note:
If you are installing additional Oracle Database 12c products in an existing Oracle home, then stop all processes, including the listener and database, running in the Oracle home. You must complete this task to enable Oracle Universal Installer to relink certain executables and libraries.
Consider the following before you install Oracle Grid Infrastructure for a standalone server, or Oracle Database:
- If you plan to use Oracle Restart, then you must install Oracle Grid Infrastructure for a standalone server before you install and create the database. When you perform a database installation, the database must use the same listener created during the Oracle Grid Infrastructure for a standalone server installation, thereafter you do not have to perform the steps listed in this section.The default listener and any additional listeners must run from the Oracle Grid Infrastructure home. See "Configuring Oracle Software Owner Environment" to continue.
- If you have an existing Oracle Database 12c running on Oracle ASM, then stop any existing Oracle ASM instances. After you finish installing Oracle Grid Infrastructure for a standalone server, start the Oracle ASM instance again.
If you create a database during the software installation, then most installation types configure and start a default Oracle Net listener using TCP/IP port
1521
and the IPC key value EXTPROC
. If an existing Oracle Net listener process is using the same port or key value, Oracle Universal Installer looks for the next available port (for example, 1522
) and configures and starts the new listener on this available port.- Switch user to
oracle
:# su - oracle
- Enter the following command to determine if a listener process is running and to identify its name and the Oracle home directory in which it is installed:
$ ps -ef | grep tnslsnr
This command displays information about the Oracle Net listeners running on the system:... oracle_home1/bin/tnslsnr LISTENER -inherit
In this example,oracle_home1
is the Oracle home directory where the listener is installed andLISTENER
is the listener name.Note:If no Oracle Net listeners are running, then see "Configuring Oracle Software Owner Environment" to continue. - Set the
ORACLE_HOME
environment variable to specify the appropriate Oracle home directory for the listener:- Bourne, Bash, or Korn shell:
$ ORACLE_HOME=oracle_home1 $ export ORACLE_HOME
- C or tcsh shell:
% setenv ORACLE_HOME oracle_home1
- Enter the following command to identify the TCP/IP port number and IPC key value that the listener is using:
$ $ORACLE_HOME/bin/lsnrctl status listenername
Note:If the listener uses the default nameLISTENER
, then you do not have to specify the listener name in this command. -
$ $ORACLE_HOME/bin/lsnrctl stop listenername
- Repeat this procedure to stop all listeners running on this system.