BASTIONOSDocs
bastion-os.com
EN

Connect

Oracle Database

Oracle clients connect to the bastion over TCPS, to a service name the bastion gives you. Thin clients only.

Enterprise Basic and above. Compare editions

Get a token and a service name#

  1. Open Databases and click Get a token on the Oracle account.
  2. Give the service name of the database on the server, for example FREEPDB1.
  3. The console answers with a service name of its own, bastion_…, the EZConnect address, the JDBC URL and the token, shown once.

Connect over TCPS to that service name, with the token as the password. The user name does not matter: the token carries who you are and which account you open.

Clients#

Client Connection
SQL Developer, DBeaver (JDBC thin) jdbc:oracle:thin:@tcps://bastion.example.com:12484/bastion_…
python-oracledb (thin mode) oracledb.connect(user="x", password=token, dsn="tcps://bastion.example.com:12484/bastion_…")
go-ora the same host, port and service name, with TCPS turned on and the token as the password
node-oracledb (thin mode) connectString: "tcps://bastion.example.com:12484/bastion_…"

SQL*Plus and other OCI (thick) clients are refused. If the bastion's certificate is not trusted by your client, add it to the client's wallet or trust store.

In the SQL workbench#

SQL workbench on the account's row opens Oracle in the browser. Give the service name (for example FREEPDB1) when the workbench asks for it. A script is cut as SQL*Plus cuts it: SQL statements at ;, PL/SQL blocks at a line holding only /.

What is checked and recorded#

Each statement goes through the command policies and is recorded before the server receives it, as for the other databases. Results are never recorded. Masking policies apply in the workbench.

© 2026 BastionOS · Source-available, self-hosted privileged access Contact