oracle| Data | database * TODO to change the template for this generated file, go to the
* Windows-Preferences-Java-code styles-code templates
*/
Package person.fane.test;
Import java.sql.*;
/**
* A JDBC test application for Oracle
* @author Fane
* @version 1.0.0
* @since JDK1.4
*/
public class Oracletest {
Private final String oracledrivername = "Oracle.jdbc.driver.OracleDriver";
The following test is used for the table space in Oracle
Private final String Oracleurltoconnect = "Jdbc:oracle:thin:@192.168.0.36:1521:test";
Private Connection myconnection = null;
/**
* To load the JDBC driver
*
*/
Public Oracletest ()
{
Try
{
Class.forName (Oracledrivername);
}catch (ClassNotFoundException ex)
{
System.out.println (ex, "The Driver loaded error,please contacts to your Software designer!"). ToString ());
}
}
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.