ORA-12537:TNS連接已關閉


 

安裝完11i的VIS版本后,客戶端連接數據時會報“ORA-12537:TNS連接已關閉”,在網上找到以下解決辦法:

 
 
今天在遠程客戶端配置EBS數據庫連接的時候發生“ORA-12537:TNS連接已關閉”的錯誤。進入服務器運行如下命令:$tnsping VIS
$ tnsping VIS
TNS Ping Utility for IBM/AIX RISC System/6000: Version 9.2.0.6.0 - Production on 14-SEP-2007 04:41:47
Copyright (c) 1997 Oracle Corporation.  All rights reserved.
Used parameter files:
/u01/oravis/visdb/9.2.0/network/admin/VIS_erptest/sqlnet_ifile.ora

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=ERPTEST.domain)(PORT=1522)) (CONNECT_DATA= (SID=VIS)))
OK (0 msec)
 
//網絡服務名能正常解析。
 
$ sqlplus /nolog
SQL*Plus: Release 9.2.0.6.0 - Production on Fri Sep 14 04:44:44 2007
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> conn scott/tiger@VIS
Connected.
 
//也沒問題,說明監聽器是正常的。在EBS中監聽最好用腳本起,如果用lsnrctl start啟,監聽端口為1521,這樣EBS APPS TIER的內部並發管理器會連接不上數據庫。
 
服務器上都是正常的,為什么客戶端不行呢?難道做了什么限制?繼續往下。
查看sqlnet.ora文件:
$ cat sqlnet.ora
###############################################################
#
# This file is automatically generated by AutoConfig.  It will be read and
# overwritten.  If you were instructed to edit this file, or if you are not
# able to use the settings created by AutoConfig, refer to Metalink document
# 165195.1 for assistance.
#
#$Header: NetServiceHandler.java 115.41 2005/05/23 06:43:44 psaddi ship $
#
###############################################################
NAMES.DIRECTORY_PATH=(TNSNAMES, ONAMES, HOSTNAME)
SQLNET.EXPIRE_TIME= 10
tcp.validnode_checking = yes
tcp.invited_nodes=(ERPTEST.domain)
 
到這問題差不多看出來了。注釋掉最后兩行。重新啟動監聽器,OK!問題解決。
重啟監聽:$ORACLE_HOME/bin/lsnrctl stop
               $ORACLE_HOME/bin/lsnrctl start


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM