Connecting using the DriverManager
- Last Updated: October 30, 2018
- 1 minute read
- DataDirect Connectors
- JDBC
- Oracle Database 6.0
- Documentation
One way to connect to the Oracle database is through the JDBC DriverManager using the DriverManager.getConnection() method. As the following example shows, this method
specifies a string containing a connection URL.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:oracle://server3:1521;SID=ORCL;User=test;Password=secret");