Configuring the JDBC Driver

SQL Explorer relies on the Oracle JDBC driver for its database operations. Studio does not ship with all the normal drivers you would find with a normal third-party installation of the SQL Explorer plug-in, since we only support Oracle. As such, you need to set the preferences to point to the Oracle JDBC drivers. We'll use the thin driver here, but you can use the OCI driver if you prefer.

Procedure 3.11. To set the JDBC preferences for SQL Explorer:

  1. Select Window | Preferences. Locate and open the SQL Explorer entry, then select the JDBC Drivers entry.

    Figure 3.14. Adding the Oracle Driver to SQL Explorer's Class Pathimages/download/attachments/144835018/studio_36a-version-1-modificationdate-1645038707000-api-v2.png

  2. Note all the red X's. We need to locate the Oracle drivers. Select the Oracle Thin Client entry and click Edit.

    Figure 3.15. Locate the Oracle driver in the list.
    images/download/attachments/144835018/studio_36b-version-1-modificationdate-1645038713000-api-v2.png

  3. Select the Extra Class Path tab. Click the Add button.

    Figure 3.16. Add the JDBC driver as shown. These are different as per corresponding Oracle versions.
    images/download/attachments/144835018/studio_35-version-1-modificationdate-1645038722000-api-v2.png

  4. Navigate to your Oracle installation and locate the JDBC folder. For example, for Oracle 10 installed under c:\oracle, the drivers can be found via the path C:\oracle\product\10.2.0\db_1\jdbc\lib.

  5. If you're using Oracle 10 or Oracle XE, select classes12.jar. If you're using Oracle 11, select ojdbc6.jar. If you're using Oracle 18c XE, select ojdbc8.jar. Close the dialog box. The red X should disappear next to the Oracle Thin Driver entry. Close out the remaining dialogs.

    Figure 3.17. Successfully configured drivers appear with a checkmark.
    images/download/attachments/144835018/studio_36c-version-1-modificationdate-1645038730000-api-v2.png