1. 程式人生 > >Oracle The listener supports no services

Oracle The listener supports no services

今天碰到這個問題  問同事 被jj了  感覺自己技術太Low了  最後厚臉皮問了搞定了。

在檢視oracle監聽狀態的時候,會出現下面資訊

[[email protected] ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 04-DEC-2017 19:09:43

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle11g)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                04-DEC-2017 19:09:40
Uptime                    0 days 0 hr. 0 min. 3 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/oracle11g/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11g)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully

The listener supports no services

這個問題怎麼解決

首先關閉防火牆  因為防火牆可能關閉了1521埠

[[email protected] ~]# service iptables stop

[[email protected] ~]# chkconfig iptables off

之後去檢視listen.ora裡面有沒有資料庫資訊,因為監聽裡面就是要儲存資料庫資訊的。

[[email protected] ~]$ cd /u01/app/oracle/product/11.2.0/db_1/network/admin/
[[email protected]

admin]$ ls
listener1711296PM3821.bak  listener.ora  samples  shrept.lst
[[email protected] admin]$ vi listener.ora

# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

#LISTENER =
 # (DESCRIPTION_LIST =
  #  (DESCRIPTION =
   #   (ADDRESS = (PROTOCOL = TCP)(HOST = oracle11g)(PORT = 1521))
    #  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    #)
 # )

ordb =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.100)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ordb)
    )
  )


ADR_BASE_LISTENER = /u01/app/oracle

#註釋了通過netca建立資料庫預設寫進listen.ora裡面的內容,加上了

ordb =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.100)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ordb)
    )
  )

裡面描述了資料庫的詳細資訊,這樣通過客戶端通過監聽可以連線到資料庫例項,例項分配server process來服務客戶端。

修改配置檔案之後關閉重啟
[[email protected] admin]$ lsnrctl stop

[[email protected] admin]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 04-DEC-2017 19:15:02

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

TNS-01106: Listener using listener name LISTENER has already been started
[[email protected] admin]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 04-DEC-2017 19:15:10

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                04-DEC-2017 19:14:26
Uptime                    0 days 0 hr. 0 min. 44 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/oracle11g/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11g)(PORT=1521)))
Services Summary...
Service "oradb" has 1 instance(s).
  Instance "ordb", status READY, has 1 handler(s) for this service...
The command completed successfully
可以看到沒有了之前的The listener supports no services資訊了

因為資料庫將例項註冊到監聽是每分鐘註冊,即不會立刻註冊,要想馬上將例項註冊到監聽就要在資料庫啟動狀態下使用

SQL> alter system register;

這樣監將例項註冊到監聽了就可以遠端連線資料庫了,而不是在本地sqlplus通過sqlplus / as sysdba來連線了。



相關推薦

Oracle The listener supports no services

今天碰到這個問題  問同事 被jj了  感覺自己技術太Low了  最後厚臉皮問了搞定了。 在檢視oracle監聽狀態的時候,會出現下面資訊 [[email protected] ~]$ lsnrctl status LSNRCTL for Linux: Vers

Oracle啟動監聽提示:The listener supports no services 的處理方法

[[email protected] admin]$ lsnrctl status LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 19-APR-2016 10:51:08 Copyrig

ORACLE啟動監聽出現The listener supports no services

解決方案有以下幾種: 第一種. 通過重啟伺服器,來修復監聽器. 登陸資料庫, sqlplus / as sysdba; SQL>shudown SQL>startup #startup  啟動 #shutdown 關閉 #lsnrctl s

Oracle啟動監聽報錯:The listener supports no services解決

報錯提示: The listener supports no services The command completed successfully 如圖所示: 這樣啟動後遠端連線會報錯:oracle ORA-12514:TNS:listener does not

oracle 11g The listener supports no services 一例

測試環境,遇到錯誤如下: ORA-12505: TNS:listener does not currently know of SID given in connect 本機連線,SID確信是對的,於是檢視監聽: The listener supports no servi

The listener supports no services解決一例

今天做Advacned Replication實驗的時候碰到一個問題,啟動目標庫監聽時,出現The listener supports no services [[email protected] ~]$ lsnrctl start LSNRCTL for Li

The listener supports no services

$ lsnrctl start 報錯提示: The listener supports no services The command completed successfully 登入資料庫: $sqlplus / as sysdba 顯示服務名: SQ

The listener supports no services解決

今天 在PC上想測試 一下DG同步 ,所以配置了兩個監聽,但在啟動 過程中總是提示:The listener supports no services 開啟 listener.ora檢視發現 配置的監聽名字 叫 :LISTENER_PRIMARY 而SID_LIST_LIS

navicat premium 連線oracle 12g,出現no listener提示解決辦法

1.使用navicat自帶的oci.dll庫不行。oci.dll位置在C:\app\Administrator\product\11.2.0\dbhome_1\BIN。需要解除安裝oracle12的oci.dll庫。 2.在oracle官網下載instantclient-basic-wind

The listenersupports no services

、修改監聽檔案 LISTENER =   (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))     )   ) SID_LIS

plsql 連線Oracle資料庫時提示no listener

如果我們的oracle連線串寫的不是localhost,而是計算機本地的ip的話,那麼ip地址發生變化,就會發生plsql連線不上資料庫的情況。 這時候需要做的是: 1. 如下關閉oracle lis

xcode7在真機除錯的時候出現"The identity used to sign the executable is no longer valid"

出現這個錯誤的原因是描述檔案過期. 如圖(借的圖): 大家都知道,在Xcode7中真機除錯不在需要配置開發者證書和描述檔案. 那出現這個問題的原因是Xcode自己配置的描述檔案過期. 解決辦法: 1.Xcode --

oracle11g資料庫安裝採坑記錄 Oracle the network adapter could not establish the connection

第一處坑: 解決方案: 原文:https://blog.csdn.net/yhj198927/article/details/49178279  1.開啟oracle的“Net Manager”   2.開啟“監聽程式”   3.開啟“資料庫服務”  

The identity used to sign the executable is no longer valid

測試環境:Xcode 7.1 , OS X 10.11 有時候回家繼續做公司專案時,真機除錯經常會碰到如下圖所示的問題 解決方法: 1.開啟鑰匙串訪問,會發現證書已被撤銷的紅色警告,選中該證書,右鍵刪除 2.接著執行專案,出

linux安裝oracle資料庫時出現 No protocol specified

分享一下我老師大神的人工智慧教程吧。零基礎,通俗易懂!風趣幽默!http://www.captainbed.net/ 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

eclipse 重新載入專案遇到的問題----The entity has no primary key attribute defined

原文地址::https://blog.csdn.net/baidu_26550817/article/details/51752085 相關文章 1、JPA Error : The entity has no primary key attribute defined----https://

Selenium: either the element is no longer attached to the DOM, it is not in the curren

either the element is no longer attached to the DOM, it is not in the curren 元素不再附加到DOM 解決方法 每次都重新尋找xpath,並且加上延時 while n < 30 :

Ansible and the AWS CLI: No module, no problem

Ansible and the AWS CLI: No module, no problemTips on integrating the AWS CLI when Ansible modules are letting you downIf you have picked up Ansible as a t

The Rise of Custodial Services for Crypto Investments

Bringing New Investors to the Crypto MarketThe introduction of established crypto custody providers may be the entranceway for investors who have not yet e

Oracle Start listener and Start OEM

Encountered SQL developer- the network adapter could not establish the connection, it is quite simple, the Oracle listener was not start up. Res