The network Adapter could not establish the connection the networking adapter cannot create a connection
As a beginner, this problem let me find several times, each time you turn on the computer can be normal access to connect, after a while, I do not know what will be error, the use of PL/SQL will also be logged in users half a day landing.
650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1017611/201612/ 1017611-20161230111023461-661823926.png "style=" border:0px; "/>650" this.width=650; "src=" http:/ Images2015.cnblogs.com/blog/1017611/201612/1017611-20161230113219414-1951255934.png "style=" border:0px; "/>
650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1017611/201612/ 1017611-20161230111409804-763208597.png "width=" 590 "height=" 294 "style=" border:0px; "/>
The configuration file is as follows:
650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1017611/201612/ 1017611-20161230111705164-178534302.png "style=" border:0px; "/>
The statement that gets the connection is as follows
public static Connection getconnection () {
String className = Smbmsproperties.getinstance (). GetValue ("Jdbc.class");
String user = Smbmsproperties.getinstance (). GetValue ("Jdbc.user");
String password= smbmsproperties.getinstance (). GetValue ("Jdbc.password");
String URL = smbmsproperties.getinstance (). GetValue ("Jdbc.url");
Connection Connection=null;
try {
Class.forName (className);//Load Driver
Connection=drivermanager.getconnection (URL, user, password);//Get Database connection
} catch (Exception e) {
E.printstacktrace ();
}
return connection;
}
I came up with this problem because I started sharing wifi on my computer, which caused my own error.
It should be a network conflict, do not turn on sharing wifi after reboot OK
Using JDBC to get the Oracle Connection times error