SHARE
TWEET

Untitled

a guest Dec 13th, 2016 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package aufgabe3;
  2.  
  3. import java.sql.Connection;
  4. import java.sql.DriverManager;
  5. import java.sql.SQLException;
  6.  
  7. public class DBconnect {
  8.    public static void main(String[] args){
  9.       final String DBNAME = "test";
  10.       final String URL = "jdbc:oracle:thin:@localhost:1521:oracle";
  11.       final String USER = "KUBE";
  12.       final String PASSWORD = "chris1711";
  13.       final String DRIVER = "com.oracle.jdbc.Driver";
  14.       try{
  15.       Connection con = DriverManager.getConnection( URL, USER, PASSWORD );
  16.       }catch(SQLException err){
  17.          System.out.println(err.getMessage());
  18.       }
  19.      
  20.    }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top