How do you configure the listener program for Oracle 11g?
To configure the Oracle 11g listener, follow these steps:
- Open the command prompt or terminal window and log into the operating system with administrator privileges.
- listener configuration.
- – ADMINISTRATOR/NETWORK ADMINISTRATOR
- The directory path for the listener.ora file is C:\app\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora.
- listener configuration file.
- audience
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <主机名>)(PORT = <端口号>))
)
)
Please replace
4. Save and close the listener.ora file.
5. In the command prompt or terminal window, enter the following command to start the listener program:
lsnrctl start
- Wait for a moment, the monitoring program will start and begin listening on the specified port. You can view the corresponding startup log information in the command prompt or terminal window.
- To stop the monitoring program, enter the following command in the command prompt or terminal window:
lsnrctl stop
This completes the configuration of the Oracle 11g listener. You can now use the Oracle client on other computers in the same network to connect to this listener.