Oracle Database 19c : Oracle Net リスナーの追加2021/06/01 |
|
クライアントとインスタンスがやりとりするためのネットワークサービスである Oracle Net リスナーを追加します。
|
|
| [1] | Oracle ユーザーでログインし [netca] コマンドでリスナーを追加します。 |
[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] | 設定完了後は以下のように 設定したポート (当例では [1521]) で [tnslsnr] がリスン状態になります。また [tnsping] コマンドで応答が返ってくるようになります。 |
|
[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] | Firewalld を有効にしている場合は、設定したポートの許可が必要です。 |
|
[root@dlp ~]# firewall-cmd --add-port=1521/tcp --permanent success [root@dlp ~]# firewall-cmd --reload success |
| Sponsored Link |
|
|