CentOS Stream 8
Sponsored Link

Oracle Database 21c : Add Oracle Net Listener2022/02/16

 
Add Oracle Net Listener that is the network service on Oracle.
[1] Login as user [oracle] and input a command [netca] like follows.
[2] Check a box [Listener Configuration] and go next.
[3] Go to next.
[4] Set Listner's name. Set any name you like.
[5] This example goes next with keeping default [TCP].
[6] Set a port. This example goes next with keeping default.
[7] If you'd like to create more Listeners, Answer [Yes]. This example selects [No].
[8] Configuration completed.
[9] 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=11694,fd=9))
TIME-WAIT  0      0      [::ffff:10.0.0.30]:1521  [::ffff:10.0.0.30]:60734

[oracle@dlp ~]$
tnsping localhost


TNS Ping Utility for Linux: Version 21.0.0.0.0 - Production on 15-FEB-2022 21:21:02

Copyright (c) 1997, 2021, Oracle.  All rights reserved.

Used parameter files:

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
OK (10 msec)
[10] If Firewalld is running, allow listener port.
[root@dlp ~]#
firewall-cmd --add-port=1521/tcp

success
[root@dlp ~]#
firewall-cmd --runtime-to-permanent

success
Matched Content