Oracle® Database 2 Day DBA 11g Release 1 (11.1) Part Number B28301-03 |
|
|
View PDF |
The Oracle listener is set to start automatically whenever your server computer is restarted. However, when your system encounters unforeseen circumstances, or when you have manually stopped the listener, you can restart it with Database Control or at the command line.
To stop the listener with Database Control:
On the Database Home page, click the Listener link under General.
The Listener page appears.
Click Stop.
To start the listener with Database Control:
On the Database Home page, click the Listener link under General.
The Listener page appears.
Click Start.
Note:
If you have just stopped the listener and are still at the Database Control Listener page, then you will not see a Start button. You must go to the Database Home page, wait a minute or two, and then return to the Listener page.To stop the listener at the command line:
Open a command window.
(Linux and UNIX only systems) Set the required environment variables by running the script oraenv
(for the Bourne, Korn, or Bash shells) or coraenv
(for the C shell).
These scripts are typically located in the /usr/local/bin
directory. They may prompt you for the desired value of the ORACLE_SID
environment variable. If so, supply the system ID (SID) that you chose when you installed Oracle Database. The default SID that the installer typically suggests is orcl
.
(Linux and UNIX systems only) Either ensure that the Oracle_home
/bin
directory is in your PATH
environment variable, or change the directory to Oracle_home
/bin
.
Enter the following command:
lsnrctl stop
To start the listener at the command line:
Open a command window.
(Linux and UNIX only systems) Set the required environment variables by running the script oraenv
(for the Bourne, Korn, or Bash shells) or coraenv
(for the C shell).
These scripts are typically located in the /usr/local/bin
directory. They may prompt you for the desired value of the ORACLE_SID
environment variable. If so, supply the system ID (SID) that you chose when you installed Oracle Database. The default SID that the installer typically suggests is orcl
.
(Linux and UNIX systems only) Either ensure that the Oracle_home
/bin
directory is in your PATH
environment variable, or change the directory to Oracle_home
/bin
.
Enter the following command:
lsnrctl start