Cause: More than one long buffer in the bind list. 
Action: Change the buffer size to be less than 4000 for the bind variable bound 
to a normal column.

解决方案 »

  1.   

    Re: Java.SQL.Exception The Network Adapter could not establish the connection 
    Author: [email protected] 
    In Reply To: Java.SQL.Exception The Network Adapter could not establish the connection  Jul 11, 2003 7:24 AM   Reply 8 of 8   
     
     
    Hi Guys,I have seen this problem in almost all the forums.Now a solution is achieved.Try this.This problem is mainly due to the connection URL specified for the Oracle thin driver.
    Few steps to debug this scenario...1) Check for the class path frst.
    2) Check whether the listner is running.
    Linux or Solaris check --> ORA_HOME/bin/lsnrctrl.sh
    Windows -->ORA_HOME/bin/lsnrctrl.exe
    3) If these are Okay, the problem is with your Connection URL. Check the following.In case of Linux or Solaris Use the below code:DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Host_name)(PORT=1521)))(CONNECT_DATA=(SID=service_name)(SERVER=DEDICATED)))", "usernam", "password"); In the above URL SERVER = DEDICATED is mandatory for Linux or Solaris.In case of WINDOWS Use the below code:DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=host_name)(PORT=1521)))(CONNECT_DATA=(SID=service_name)(SERVER=DEDICATED)))", "username", "password"); In the above URL (SERVER = DEDICATED) is optional for Windows.If you still dont get a solution please let me know.