91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

lisenter更改主機名之后監聽不到服務

發布時間:2020-05-27 19:21:36 來源:網絡 閱讀:457 作者:湛康穎 欄目:關系型數據庫

lisenter更改主機名之后監聽不到服務


環境描述,linux redhat5.4 + oracle 11.2.0.1

主機名:zky.zhan

主機ip:192.168.214.10

實例SID:zky
                

問題展現

            如果將listenter.ora中監聽地址(HOST = zky.zhan參數更改為監聽主機網絡地址(HOST = 192.168.214.10)后。發現服務監聽不到服務器,一直顯示no server ,通過網絡服務也不能登錄到數據庫。


查看tnsname.ora參數

[oracle@zky /]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

ZKY =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.214.10)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = zky)
    )
  )


查看listener.ora參數

我們將默認的zky.zhan修改為ip地址

[oracle@zky /]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora
# Generated by Oracle configuration tools.

ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER1 = ON

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
#    (ADDRESS = (PROTOCOL = TCP)(HOST = zky.zhan)(PORT = 1521))

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.214.10)(PORT = 1521))

    )
  )

ADR_BASE_LISTENER = /u01/app/oracle


啟動監聽

發現The listener supports no services,一直監聽不到服務

[oracle@zky /]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-APR-2016 05:34:11

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/11.2.0/grid/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/zky/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.214.10)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.214.10)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                24-APR-2016 05:34:11
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/zky/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.214.10)(PORT=1521)))
The listener supports no services
The command completed successfully


數據庫登錄也顯示無監聽

[oracle@zky /]$ sqlplus system/oracle_4U@zky

SQL*Plus: Release 11.2.0.1.0 Production on Sun Apr 24 05:37:17 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor



解決方法
        在糾結多日之后發現當使用ping主機名zky.zhan時發現默認解析為127.0.0.1。于是在試探的狀態下將本地解析127.0.0.1修改為192.168.214.10后發現可以正常使用。


更改host

[root@zky /]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1              zky.zhan zky localhost.localdomain localhost
#::1            localhost6.localdomain6 localhost6

192.168.214.10 zky.zhan zky localhost.localdomain localhost


重啟監聽后服務自己監聽到了

[oracle@zky /]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-APR-2016 05:43:40

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.214.10)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                24-APR-2016 05:34:11
Uptime                    0 days 0 hr. 9 min. 29 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/zky/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.214.10)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "zky" has 1 instance(s).
  Instance "zky", status READY, has 1 handler(s) for this service...
Service "zkyXDB" has 1 instance(s).
  Instance "zky", status READY, has 1 handler(s) for this service...
The command completed successfully


登錄數據庫成功

[oracle@zky /]$ sqlplus system/oracle_4U@zky

SQL*Plus: Release 11.2.0.1.0 Production on Sun Apr 24 05:44:59 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options

SQL> show parameter name

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert                 string
db_name                              string      zky
db_unique_name                       string      zky
global_names                         boolean     FALSE
instance_name                        string      zky
lock_name_space                      string
log_file_name_convert                string
service_names                        string      zky




向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

丹巴县| 屏东市| 菏泽市| 塔河县| 潞西市| 乐山市| 叙永县| 新余市| 扎兰屯市| 盱眙县| 榆中县| 庆安县| 民勤县| 大理市| 淄博市| 泸水县| 浦县| 吉林市| 玉田县| 临清市| 盐山县| 丹江口市| 岳阳县| 纳雍县| 永宁县| 临清市| 湖南省| 锡林郭勒盟| 固原市| 定边县| 武功县| 合山市| 丹棱县| 文登市| 潮州市| 新泰市| 犍为县| 太和县| 密云县| 丁青县| 海兴县|