Using JDBC to get the Oracle Connection times error

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.