Advertisement
Guest User

Untitled

a guest
Apr 15th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import java.sql.*;
  2.  
  3.  
  4.  
  5. public class test1
  6.  
  7. {
  8.  
  9.  
  10.  
  11. public static void main(String[] args)
  12.  
  13. {
  14.  
  15. try
  16.  
  17. {
  18.  
  19. Connection conn = DriverManager.getConnection(
  20.  
  21. "jdbc:oracle:thin:@classdb.jccc.edu:1521:cisdb", "username", "password");
  22.  
  23.  
  24.  
  25. System.out.println("connected!");
  26.  
  27. }
  28.  
  29.  
  30.  
  31. catch(Exception e)
  32.  
  33. {
  34.  
  35. e.printStackTrace( );
  36.  
  37. }
  38.  
  39. }
  40.  
  41.  
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement