Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Conexión {
- public Connection oracle(){
- try{
- String url = "jdbc:oracle:thin:@localhost:1521:XE";
- String usuario = "system";
- String password = "holajolarola6";
- Class.forName("oracle.jdbc.driver.OracleDriver");
- return DriverManager.getConnection(url, usuario, password);
- }
- catch(Exception e){
- //return null;
- }
- }
- }
Add Comment
Please, Sign In to add comment