This document will guide you through a step-by-step process on how to use the DBeaver manager in a Database Proxy session on Windows.
It’s extremely important to correctly follow the steps for configuring the Oracle database so that it functions correctly as a Database Proxy. Access documents from Database Proxy for Oracle - Setup guide to carry out the necessary steps.
Requirements
- Download the latest version of Instant Client - Instant Client
- Download the latest version of DBeaver - Dbeaver
Star session at the DBeaver app
- Open the DBeaver app.
- On the main screen, in the left top corner, click on the icon represented by the plug and the plus sign.
- On the pop-up window that opens, Connect to a database, select Oracle.
- Click Next.
- Click Driver Settings.
- At Libraries tab.
- replace the default library for the ones acquired at Instant Client.
- Click OK.
- At DBeaver folder, create a file named start-dbeaver.bat to declare the variables and open the DBeaver.
- On the created file, type:
@echo off
chcp 65001
:: Add the Oracle Instant Client to the PATH (while keeping the existing PATH)
set PATH=C:\Users\user1\Documents\instantclient_21_10;%PATH%
:: Point TNS_ADMIN to the folder containing tnsnames.ora and sqlnet.ora
set TNS_ADMIN=C:\Users\user1\Documents\dbproxy\ora-files
:: Launch DBeaver
start dbeaver
-
Save this file as start-dbeaver.bat
-
With this file, execute a custom connection at the DBeaver app.
-
On Connection settings > Principal > Custom, fill in the information on the fields:
- JDBC URL Template:
jdbc:oracle:oci:@<ORACLEDB_HOSTNAME>
- Authentication: choose the desired option.Attention
If the Oracle Database Native option is selected, the username and password fields must remain empty. Filling in these fields will cause a connection error.
- JDBC URL Template:
-
Click Ok.
Once this is done, the user can connect to the Oracle database through the Segura® Database Proxy.