Forum Stats

  • 3,838,561 Users
  • 2,262,383 Discussions
  • 7,900,687 Comments

Discussions

How to connect Jdeveloper with database as access ?

User_S5UQN
User_S5UQN Member Posts: 2 Green Ribbon

How to connect Jdeveloper with database as access ?

Can I use this function below to connect with Access, Mysql,Oracle?

public static Connection getConnection() throws SQLException

{

String username = "scott";

String password = "tiger";

String thinConn = "jdbc:oracle:thin:@localhost:1521:ORCL";

DriverManager.registerDriver(new OracleDriver());

Connection conn = DriverManager.getConnection(thinConn,username,password);

conn.setAutoCommit(false);

return conn;

}

Answers