リスナー動的登録の問題:LOCAL_LISTENER設定に変更する
(Doc ID 2497607.1)
Last updated on DECEMBER 12, 2019
適用範囲:
Oracle Net Services - バージョン 10.1.0.2 から 12.2.0.1 [リリース 10.1 から 12.2]この文書の内容はすべてのプラットフォームに適用されます。
本文書利用上のご注意
本文書は英語の文書 <Document 2315830.1> (最終メジャー更新日: 2018年10月18日) の日本語翻訳版です。
英語の文書の最終メジャー更新日が新しい場合は本文書に適宜反映いたします。
本文書は英語の文書 <Document 2315830.1> (最終メジャー更新日: 2018年10月18日) の日本語翻訳版です。
英語の文書の最終メジャー更新日が新しい場合は本文書に適宜反映いたします。
現象
- 初期化パラメータ LOCAL_LISTENER は tnsnames.ora ファイルのエントリに指します。
この例では、TNSアリアスは LSNR_TNS になります。
Show parameter LOCAL_LISTENER では、設定が LISTENER と表示されます。
ローカルの tnsnames.ora ファイルには、以下のエントリが含まれています。
LSNR_TNS =
(ADDRESS = (PROTOCOL = TCP)(HOST = <old IP_address>)(PORT = 1522))
(ADDRESS = (PROTOCOL = TCP)(HOST = <old IP_address>)(PORT = 1522))
- サーバーのIPアドレスが新しいIPに変更されました。 ローカルリスナーが新しいIPで再起動されました。
したがって、HOSTフィールドに変更が反映されるために、LISTENERに対応するtnsnamesエントリも変更する必要があります。
LSNR_TNS=
(ADDRESS = (PROTOCOL = TCP)(HOST = <new IP_address>)(PORT = 1522))
(ADDRESS = (PROTOCOL = TCP)(HOST = <new IP_address>)(PORT = 1522))
- lsnrctl status では、サービス名 「ora12」がリスナーに登録されない事を示します。
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<new IP_address>)(PORT=1522)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 12.1.0.2.0 - Production
Start Date 10-OCT-2017 11:50:34
Uptime 0 days 1 hr. 6 min. 35 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File <ORACLE_HOME>\network\admin\listener.ora
Listener Log File <ORACLE_BASE>\diag\tnslsnr\ICFANG-LAP\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<new IP_address>)(PORT=1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<new IP_address>)(PORT=1522)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 12.1.0.2.0 - Production
Start Date 10-OCT-2017 11:50:34
Uptime 0 days 1 hr. 6 min. 35 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File <ORACLE_HOME>\network\admin\listener.ora
Listener Log File <ORACLE_BASE>\diag\tnslsnr\ICFANG-LAP\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<new IP_address>)(PORT=1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
変更点
サーバーのIPアドレスが変更されました。 新しいIPアドレスで動作するようにリスナーは再起動されました。
原因
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
本書の内容
現象 |
変更点 |
原因 |
解決策 |
参照情報 |