oracle伺服器無法連線,報錯TNS:tns:lost contact
監聽器 The listener supports no services 問題解決方法
ORACLE版本:11gR2
開啟監聽器,遠端連線報錯:
ORA-12514: TNS:linstener does not currently know of service requested in connect descriptor
解決問題思路:
檢視監聽器狀態,關閉後重新啟動監聽器
[[email protected] admin]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 14-AUG-2012 19:20:55
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/rhel5/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.11.210)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.11.210)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 14-AUG-2012 19:20:55
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/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/rhel5/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.11.210)(PORT=1521)))
The listener supports no services
The command completed successfully
結果發現錯誤資訊:The listener supports no services
檢視資料庫service_name
[email protected]> show parameter service
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
service_names string orcl
手工註冊有時能夠解決問題:
[email protected]> alter system register;
System altered.
檢視監聽器狀態:
[[email protected] admin]$ lsnrctl start
註冊成功:
[[email protected] admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 14-AUG-2012 20:23:26
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rhel5.oraclelinux.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 14-AUG-2012 20:22:49
Uptime 0 days 0 hr. 0 min. 36 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/rhel5/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rhel5.oraclelinux.com)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
註冊依然失敗:
[[email protected] admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 14-AUG-2012 20:18:02
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rhel5.oraclelinux.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 14-AUG-2012 20:17:45
Uptime 0 days 0 hr. 0 min. 17 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/rhel5/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rhel5.oraclelinux.com)(PORT=1521)))
The listener supports no services
The command completed successfully
依然有錯誤資訊:The listener supports no services
重建監聽器:
問題依舊
檢視LISTENER內容:
[[email protected] admin]$ cat listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rhel5.oraclelinux.com)(PORT = 1521))
)
)
ADR_BASE_LISTENER = /u01/app/oracle
在LISTENER裡新增內容:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
#BEQUEATH CONFIG
(GLOBAL_DBNAME=orcl)
(SID_NAME=orcl)
(ORACLE_HOME=/u01/app/oracle/product/11.2)
#PRESPAWN CONFIG
(PRESPAWN_MAX=20)
(PRESPAWN_LIST=
(PRESPAWN_DESC=(PROTOCOL=tcp)(POOL_SIZE=2)(TIMEOUT=1))
)
)
)
重啟監聽器,問題解決。
相關推薦
oracle伺服器無法連線,報錯TNS:tns:lost contact
監聽器 The listener supports no services 問題解決方法 ORACLE版本:11gR2 開啟監聽器,遠端連線報錯: ORA-12514: TNS:linstener does not currently know of service
maven專案新增Gson的依賴後無法啟動,報錯BeanCreationException:Error creating bean with name 'gsonBuilder'
具體錯誤如下: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gsonBuilder' defined in class path
oracle連線DBLINK報錯:ORA-12154: TNS:could not resolve service name的解決辦法
配置DBLINK細節很重要,請重點關注下面幾點 1.確定被連線資料庫可以連通,監聽是好的 2.使用者角色與許可權 配置下面4項(很重要): dba,conn,create database link,create public database link 3.客戶機上的us
dede在使用session共享會話後,dede後臺無法訪問,報錯500
dede sessiondede在使用session共享會話後,dede後臺無法訪問,報錯500:解決方法:修改文件一:vim /application/nginx/html/www/include/common.inc.php137 //$sessSavePath = DEDEDATA."/ses
VCSA 6.5無法訪問,報錯“503 Service Unavailable”的解決方法
vsphere-client在訪問VCSA間突然卡死,無法刷新,但是能ping通VCSA,過了好會兒,刷新瀏覽器,顯示如下錯誤:503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http20NamedPipeServiceS
Qt Creator無法debug,報錯:The selected debugger may be inappropriate for the inferior. Examining symbols and setting breakpoints by file name and line numb
看到這個報錯我是絕望的 解決:下載windows sdk win10 sdk 只安裝Debugging Tools for Windows 開啟 工具-選項-Kits 安裝sdk成功後我們可以看到 已經檢測到了我們安裝的cdb 開啟
更換記憶體條導致windows啟動失敗,報錯資訊:windows無法驗證此檔案的數字簽名,2018.11;
》 問題描述: 給筆記本更換記憶體條,導致windows7 64開機失敗,並提示windows無法驗證此檔案的數字簽名; 搜了搜度娘,度娘說重灌系統吧;我去,電腦中一堆資料軟體,怎麼可能; 》 解決辦法: 1、會有提示說 F8 進入安全模式
Spring Security 無法登陸,報錯:There is no PasswordEncoder mapped for the id “null”
編寫好繼承了WebSecurityConfigurerAdapter類的WebSecurityConfig類後,我們需要在configure(AuthenticationManagerBuilder auth) 方法中定義認證用於資訊獲取來源以及密碼校驗規則等。(config
解決CENTOS7 通過虛擬機器複製後網路無法開啟,報錯:RTNETLINK answers: File exists或no suitable device found for this connect
最近需要用到CENTOS7來部署hadoop 與spark 叢集,製作了模板的centos後,複製到新的機器 上網路無法啟動。 報錯:RTNETLINK answers: File exists或no suitable device found for this conne
QT下編譯生成的exe無法執行,報錯缺少msvcr120d.dll,msvcr120p.dll,或者報錯0xc000007b問題
最近在除錯QT的程式時,生成的exe檔案總是報錯說報錯缺少msvcr120d.dll,msvcr120p.dll,無法執行 (圖片來源於網路) 在網上亂七八糟搜了一大堆,嘗試下載了對應的msvc*120d.dll,放入C:\Windows\System32,再
cm叢集增加新datanode 無法通訊,報錯:Datanode denied communication with namenode because the host is not in the
問題描述:在CM上新增一臺Dataode主機後,啟動datanode時,一直報下面的錯誤: “ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for Block pool BP-125100
IDE安裝完成無法開啟,報錯Fail load JVM DLL 問題與解決方案
安裝完成pycharm 在開啟pycharm的時候出現報錯 Fail load JVM DLL xxxx xxx。 解決方案 安裝Microsoft Visual C++ 2010 Redistributable Package 然後再執行即可 其他編譯器出現這個問題也可以用這個方案解決比如 Androi
關於maven依賴已下載到本地倉庫但在pom檔案中就是無法引用,報錯的問題
在網上找了各種方法試了以後,發現都不行,本人從網上找的試了但是不行的方法方法一:maven載入依賴後jar missing專案右鍵maven->update project。如果還有 missing 的jar,再專案右鍵maven->update project,
Git無法提交,報錯
hooks 項目文件 led pac sign 報錯 文件清空 convert like Failed at the [email protected] lint-staged script. npm ERR! This is probably not a pr
整合第三方框架,報錯NoSuchFieldError:logger
logger專案中使用springboot的版本是2.0.1.RELEASE,該版本依賴的spring版本為5.0.5.RELEASE(logger在spring版本5.0.7.RELEASE中),在專案中新增對應的spring-beans版本,問題解決了。 <dep
前端報錯排查小結,報錯資訊:uncaught TypeError: Cannot read property '設計師序號' of undefined
前端報錯排查小結 時間:2018-9-5 專案:財務計算工具 實現功能:前端顯示一個訂單表,要有合計和具體清單資料,用兩個
VS2015執行C++程式碼報錯,報錯程式碼:MSB6006 “CL.exe”已退出,程式碼為 -1073741515。
莫名其妙出現的bug,導致寫的全部C++不能用,網上看了很多連結,改環境變數、軟體重灌什麼的,都不能解決問題,一整天,快要絕望了,解決問題。---解決步驟如下:1、用DirectX Repair V3.7 (Enhanced Edition)修復,修復失敗,下載連結https
LR11負載正確的指令碼,報錯Error:-27778解決方案
1、報錯資訊:Action.c(269): Error -27778: SSL protocol error when attempting to connect with host "https://www.yilonghc.cn"2、解決方案:在virtual user
python中用open開啟檔案,報錯 IOError:[Error 22] invalid mode ('rb') or filename
原始檔案路徑為: E:\postgraduate\DeepLearning-master\cs231n\HomeWorks\assignment1\cs231n\datasets\cifar-10-
PLSQL連結oracle報錯--ORA-12154: TNS: 無法解析指定的連線識別符號
D:\oracle\product\10.2.0\client_1\ 今天重新安裝了oracle 11g客戶端,plsql遠端連線oracle時發生報錯:ORA-12154: TNS: 無法解析指定的連線識別符號。在網上粗略查了一下,錯誤比較常見,主要是是連線配置發生了問題。我執行SQLPLUS能正常連線,