I have never done anything with JDBC or a lot with Oracle, but I connected to my jdbc as follows:
String driverName = "oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);
// Create a connection to the database
String serverName = "xxx.xx.xx;
String portNumber = "1521";
String sid = "mysid";
String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber
+ ":" + sid;
String username = "PGSWLOG";
String password = "PGDEV";
connection = DriverManager.getConnection(url, username, password);
Now, what classes do I need to use to insert tables into the database? Any help would be appreciated. TIA
source
share