I was able to accomplish this using JDBC as follows:
String dbServer="DBSERVER";
String port="1521";
String SID="DBNAME";
String url = "jdbc:oracle:thin:@"+dbServer+":"+port+":"+SID;
Driver driver = new oracle.jdbc.OracleDriver();
DriverManager.registerDriver(driver);
Properties props = new Properties();
Connection conn = DriverManager.getConnection(url, props);
you must use the jar ojdbc6.jar
at this link: http://docs.oracle.com/cd/E18283_01/java.112/e16548/clntsec.htm
I just need to provide os access for the current computer to this oracle database. A.
source
share