Database-----Common Database connection method

Source: Internet
Author: User

Oracle

Driver Oracle.jdbc.driver.OracleDriver

URL Jdbc:oracle:thin: @loaclhost: 1521:ORCL//ORCL for the database SID


Mysql

Driver Com.mysql.jdbc.Driver

URL jdbc:mysql://localhost:3306/db_name//Db_name for the database name    


Microsoft SQL Server 2.0 Drive ( The one of the 3 jars ); You can also use Jtds to connect to the SQL Server database

Driver Com.microsoft.jdbc.sqlserver.SQLServerDriver

URL jdbc:microsoft:sqlserver://localhost:1433;databasename=db_name//db_name For the database name


Microsoft SQL Server 3.0 Drive ( The one of the 1 jars )

Driver Com.microsoft.sqlserver.jdbc.SQLServerDriver ";

URL jdbc:microsoft:sqlserver://localhost:1433;databasename=db_name//db_name For the database name


Sysbase

Driver Com.sybase.jdbc.SybDriver

URL jdbc:sysbase://localhost:5007/db_name//Db_name for data can be named


PostgreSQL

Driver Org.postgresql.Driver ";

URL jdbc:postgresql://localhost/db_name//Db_name for data can be named


DB2

Driver com.ibm.db2.jdbc.app.DB2.Driver// Connection has DB2 Client-side Provider Example

//driver com.ibm.db2.jdbc.net.DB2.Driver// connection does not have DB2 Client-side Provider Example

URL jdbc:db2://localhost:5000/db_name//Db_name for the database name


Informix

Driver Com.informix.jdbc.IfxDriver

URL jdbc:informix-sqli://localhost:1533/db_name:informixser=myserver//db_name For data can be named


Jdbc-odbc

Driver Sun.jdbc.odbc.JdbcOdbcDriver






Database-----Common Database connection method

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.