7.3 How to connect to the HADB server
You must first connect to the HADB server to access the HADB database. There are two ways to connect to the HADB server:
-
Use the getConnection method of the DriverManager class.
-
Use the getConnection method of the DataSource class.
Note that you must have the CONNECT privilege to execute the getConnection method.
The following subsections provide details about both methods.