奇怪!!
ORACLE难道和网卡有关系!!错误如下:
the network adapter could not establish the connection
JAVABEAN的代码如下:
package net.cnnic.midwest;
import java.io.*;
import java.sql.*;
import java.util.*;
public class ConnectionBean
{
private static Connection conn = null;
// The machine on which the database resides
public static String hostname="123.123.123.123";
// The TNS listener port
public static String port="1521";
// The database name (SID)
public static String dbSID="mian";
// The database User ID
public static String username="test";
// The database user password
public static String password="test";
public static Connection getConnection()
{
if (conn == null)
{
try
{
hostname=System.getProperty("s_hostName","123.123.123.123");
System.out.println("dbsid:"+hostname);
port=System.getProperty("s_tnsPort","1521");
dbSID=System.getProperty("s_databaseSID","main");
System.out.println("dbsid:"+dbSID);
username=System.getProperty("s_userName","test");
System.out.println("user:"+username);
password=System.getProperty("s_Password","test");
System.out.println("pass:"+password);
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection("jdbc:oracle:thin:@"+hostname+":"+port+":"+dbSID,username,password);
} catch(SQLException e)
{
e.printStackTrace();
return null;
}
}
return conn;
}
}
the network adapter could not establish the connection
JAVABEAN的代码如下:
package net.cnnic.midwest;
import java.io.*;
import java.sql.*;
import java.util.*;
public class ConnectionBean
{
private static Connection conn = null;
// The machine on which the database resides
public static String hostname="123.123.123.123";
// The TNS listener port
public static String port="1521";
// The database name (SID)
public static String dbSID="mian";
// The database User ID
public static String username="test";
// The database user password
public static String password="test";
public static Connection getConnection()
{
if (conn == null)
{
try
{
hostname=System.getProperty("s_hostName","123.123.123.123");
System.out.println("dbsid:"+hostname);
port=System.getProperty("s_tnsPort","1521");
dbSID=System.getProperty("s_databaseSID","main");
System.out.println("dbsid:"+dbSID);
username=System.getProperty("s_userName","test");
System.out.println("user:"+username);
password=System.getProperty("s_Password","test");
System.out.println("pass:"+password);
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection("jdbc:oracle:thin:@"+hostname+":"+port+":"+dbSID,username,password);
} catch(SQLException e)
{
e.printStackTrace();
return null;
}
}
return conn;
}
}
...全文
相关推荐
three-paint:使用THREE.js渲染到Houdini Paint Worklet中的演示
在Houdini Paint中使用THREE.js 这很奇怪又可怕。 我们在油漆工作区中使用THREE.js画布渲染器!! 工作代码位于 使用npm run start来构建它。 像这样在HTML中使用它: < style > . some-el { --rotate-x : 0 ; --rotate-y : 0 ; --rotate-z : 0 ; background-color : lavenderblush; background-image : paint (three); } </ style > < script > CSS.paintWorklet.addModule('./dist/bundle.js'); [removed]
c++奇怪的魔塔
c++期末大作业,包含所学的各种知识点,代码易懂不超纲
奇怪的小球
原创作品,创新的一款游戏,同时也是一个关于线程的作品,具有开发价值。
什么是奇怪的数列以及学习了解奇怪的数列的意义是什么
奇怪的数列
奇怪的大冒险
奇怪的大冒险,手绘类游戏源码,下载编译即可运行!代码注释详细,适合初学者


Web 开发
