Java JDBC Oracle Connection getConnection()

Here you can find the source of getConnection()

Description

get Connection

License

LGPL

Declaration

public static Connection getConnection() throws SQLException 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.sql.Connection;
import java.sql.DriverManager;

import java.sql.SQLException;

public class Main {
    public static Connection getConnection() throws SQLException {
        return DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:xe", "scott", "tiger");
    }/*w  w  w.  j  ava  2s .  c o m*/
}

Related

  1. CreateTableScript(String dbSourceName, String db2SchemaName, String schemaList, String server, int port, String dbName, String userid, String pwd)
  2. getConnection()
  3. getConnection()
  4. getConnection()
  5. getConnection()
  6. getConnection()
  7. getConnection()
  8. getConnection(String connectString)
  9. getConnection(String dbType, String dbIp, String dbPort, String dbName, String userName, String password)