Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to connect Jdeveloper with database as access ?

User_S5UQNJul 9 2022

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;
}

Comments

Post Details

Added on Jul 9 2022
4 comments
75 views