TONGWEB在SERVER1 
ORACLE在SERVER2 
SERVER2是双网卡 
JSP连接很不稳定 
请问连接字穿该怎么写啊?出错信息:
java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: XXX.XXX.XXX.XXX:1521:SID 

解决方案 »

  1.   

    问题找到了
    问题是有时候
    network adapter could not estaption .....
    有时又正常的
      

  2.   

    javax.servlet.ServletException: Io 异常: The Network Adapter could not establish the connection
      

  3.   

    没有找到
    还是要报javax.servlet.ServletException: Io 异常: The Network Adapter could not establish the connection
      

  4.   

    我用的
    jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.xxx)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.xxx)(PORT=1521))(LOAD_BALANCE=yes))(CONNECT_DATA=(SERVICE_NAME=xxx)))不会出现java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: XXX.XXX.XXX.XXX:1521:SID 了但是有时会出现javax.servlet.ServletException: Io 异常: The Network Adapter could not establish the connection连接时,问题出现的情况几乎是1/2
      

  5.   

    呵呵 
    我搞错了 
    双机SID和单机的SID不一样 
    现在可以了 
    谢谢大家