Oracle Database 19c : Add Oracle Net Listener2021/06/01 |
Add Oracle Net Listener that is the network service on Oracle.
|
|
[1] | Login with Oracle user and add Net Listener with [netca] command. |
# create a response file # all parameters below are default values, change them for your needs [oracle@dlp ~]$ vi netca.rsp [GENERAL] RESPONSEFILE_VERSION="19.0" CREATE_TYPE="CUSTOM" [oracle.net.ca] INSTALLED_COMPONENTS={"server","net8","javavm"} INSTALL_TYPE=""typical"" LISTENER_NUMBER=1 LISTENER_NAMES={"LISTENER"} LISTENER_PROTOCOLS={"TCP;1521"} LISTENER_START=""LISTENER"" NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"} NSN_NUMBER=1 NSN_NAMES={"EXTPROC_CONNECTION_DATA"} NSN_SERVICE={"PLSExtProc"} NSN_PROTOCOLS={"TCP;HOSTNAME;1521"} netca -silent -responsefile $(pwd)/netca.rsp Parsing command line arguments: Parameter "silent" = true Parameter "responsefile" = /usr/oracle/netca.rsp Done parsing command line arguments. Oracle Net Services Configuration: Profile configuration complete. Oracle Net Listener Startup: Running Listener Control: /usr/oracle/database/bin/lsnrctl start LISTENER Listener Control complete. Listener started successfully. Listener configuration complete. Oracle Net Services configuration successful. The exit code is 0 |
[2] | After creating Listener, [tnslsnr] listens on the port you configured like follows. |
[oracle@dlp ~]$ ss -napt | grep 1521 LISTEN 0 128 *:1521 *:* users:(("tnslsnr",pid=8450,fd=8))[oracle@dlp ~]$ tnsping localhost TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 01-JUN-2021 01:47:41 Copyright (c) 1997, 2019, Oracle. All rights reserved. Used parameter files: /usr/oracle/database/network/admin/sqlnet.ora Used EZCONNECT adapter to resolve the alias Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521))) OK (0 msec) |
[3] | If Firewalld is running, allow listener port. |
[root@dlp ~]# firewall-cmd --add-port=1521/tcp --permanent success [root@dlp ~]# firewall-cmd --reload success |
Sponsored Link |