TNS-03505: 無法決定名稱

來源:互聯網
上載者:User

Tnsping伺服器異常
例: tnsping intel
C:\>tnsping intel
TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 08-16月-2
012 15:37:27
Copyright (c) 1997 Oracle Corporation.  All rights reserved.
已使用的參數檔案:
d:\oracle\ora92\network\admin\sqlnet.ora
TNS-03505: 無法決定名稱
A)先檢查tnsnames.ora(%ORACLE_HOME%\oracle\network\admin\tnsnames.ora)配置是否正確,INTEL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST =10.161.8.100)(PORT = 1526))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = intel)
    )
  )
B)若正確,再ping  10.161.8.100(本地區域網路)確認網路沒問題
C)若網路通暢,則登入伺服器(telnet 10.161.8.100)檢查監聽器是否開啟
intel</data >$lsnrctl status
LSNRCTL for Linux: Version 8.1.6.0.0 - Production on 08-DEC-2004 15:43:47
(d) Copyright 1998, 1999, Oracle Corporation.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-01103: Protocol specific component of the address is incorrectly specified
 TNS-12541: TNS:no listener
  TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
    Linux Error: 111: Connection refused
顯然,此監聽已被關閉.
顯示監聽狀態:intel</data >$lsnrctl status
開啟監聽命令:intel</data >$lsnrctl start
關閉監聽命令:intel</data >$lsnrctl stop

(e) 開啟監聽命令:intel</data >$lsnrctl start 監聽後發現還是不行。

系統參數檔案為D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
寫入D:\oracle\product\10.2.0\db_1\network\log\listener.log的日誌資訊
寫入D:\oracle\product\10.2.0\db_1\network\trace\listener.trc的跟蹤資訊

發現也沒多大問題。

(f)最後發現卻是因為sqlplus 版本的問題,我的本地DB伺服器是9i,用的卻是8i的sqlplus。

建議:安裝ORACLE的時候,會有內建的sqlplus工具,就用那個內建的,這樣就不會像我一樣走那麼多彎路了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.