日期:2014-05-17  浏览次数:20672 次

invalid OCI operation
用java连接oracle时 报 invalid OCI operation 获取不到conn


下面是java、代码,那里出错了



public static Connection getConnection1() {
Connection conn = null;
try {
try {
url = "jdbc:oracle:thin:@132.159.34.1:1521:ora73";
new oracle.jdbc.driver.OracleDriver();
conn = DriverManager.getConnection(url, "ibpto97","ibpto97");
System.out.println("conn"+conn);
} catch (Exception e) {
System.out.println(e.getMessage());
}

} catch (Exception e) {

System.out.println(e.getMessage());
}
return conn;
}


------解决方案--------------------
基本和你代码没关系,而和你连的服务器状态配置有关