客戶端連線資料時會報“ORA-12537:TNS連線已關閉”

roszhaodan481發表於2014-05-22

安裝完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 /d01/oracle/visdb/9.2.0/network/admin/VIS_ebs11vis/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


本文來自CSDN部落格,轉載請標明出處:http://blog.csdn.net/tiankong1437/archive/2010/03/19/5395592.aspx

具體:http://www.verydemo.com/demo_c158_i8831.html

相關文章