Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.sql.Connection;
- import java.sql.DriverManager;
- import java.sql.SQLException;
- public class OracleConnectionTest {
- public static void main(String[] args) throws ClassNotFoundException, SQLException {
- Class.forName("oracle.jdbc.OracleDriver");
- Connection con =
- DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl", "scott", "1111");
- if(con != null){
- System.out.println("연결 성공");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement