Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.sql.*;
- public class test1
- {
- public static void main(String[] args)
- {
- try
- {
- Connection conn = DriverManager.getConnection(
- "jdbc:oracle:thin:@classdb.jccc.edu:1521:cisdb", "username", "password");
- System.out.println("connected!");
- }
- catch(Exception e)
- {
- e.printStackTrace( );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement