Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Oracle RDBMS connector

This page describes how to enable provisioning to manage Oracle database user accounts

The Oracle connector provides the ability to get user data and user permissions from an Oracle RDBMS system and provision data to Oracle RDBMS.

Operation
Supported

Create user

✅

Modify user (incl. profiles, privileges, roles, tablespaces)

✅

Enable / disable user

✅

End-date user

✅

Search / synchronize users (with privileges and roles)

✅

Test connection

✅

Which Oracle connector do I need? This page covers Oracle RDBMS (database user accounts). For Oracle E-Business Suite application users, see the Oracle EBS connector; for Oracle Identity Cloud Service, see the Oracle IDCS connector.

Use cases

  • Managing Oracle database accounts — creation, status, profiles, privileges, roles, and tablespaces — from OpenIAM.

  • Importing database users (optionally with their privileges and roles) into OpenIAM for visibility and access review.

  • For rows in an application's own tables (rather than DB accounts), use the JDBC connector instead.

Versions and compatibility

The end application is an Oracle database, reached over JDBC. The connector manages database accounts and the roles granted to them, so it has no API version of its own — what it supports is what the server and the JDBC driver support.

Property
Value

Platform

Oracle Database

Interface

JDBC

Managed objects

Database accounts, and the roles granted to them

Connection

Connection string and driver, set on the managed system

Which Oracle connector do I need? This page covers Oracle database accounts. For Oracle E-Business Suite application users and responsibilities, see the Oracle EBS connector; for Oracle Identity Cloud Service, see the Oracle IDCS connector.

Prerequisites

A service account in Oracle for the connector. Create it with the following script:

The service account must have permission to run the SQL listed under Behind the scenes.

Installing the connector

In an RPM installation, use the general startup script to start the connector. See Connectors via RPM for deploying on a separate host.

Starting, stopping, and restarting

Deployment
Commands

RPM (systemd)

systemctl start|stop|restart openiam-connector@oracle-connector-rabbitmq

Kubernetes

kubectl rollout restart the connector deployment.

Command-line parameters and properties

The connector is a Spring Boot application. Its defaults ship inside the jar, and you override them in either of two places:

  • An external property file, read at ${confpath}/conf/properties/oracle-connector-rabbitmq.properties. The file is optional, and confpath is itself a system property, set with -Dconfpath=/data/openiam/.

  • Directly on the command line, as -D arguments, which win over the file.

Property
Default
Purpose

org.openiam.connector.queue

Oracle_Connector_1_Request

Mixed-case default — the connector record in OpenIAM must match it exactly, including case.

oracle.property.date.format

MM/dd/yyyy

Date format used with Oracle date fields.

Property
Default
Purpose

org.openiam.health.check.sweeptime

30000

How often, in milliseconds, the connector reports its health

management.health.elasticsearch.enabled

false

Left disabled — the connector has no Elasticsearch dependency

management.health.redis.enabled

false

Left disabled — the connector has no Redis dependency

oracle.property.date.format

MM/dd/yyyy

Date format used when reading and writing Oracle date columns

The connection details themselves are not set here — they are managed system parameters, covered under Configuring the managed system.

Verifying the connector is running

1

In the Webconsole, open the managed system — the Running connector status indicator must be green.

2

Click Test Connection — it must return success.

3

In the RabbitMQ management console, confirm the Oracle_Connector_1_Request queue exists and has a consumer.

Troubleshooting

Connector troubleshooting can be done by raising the logging level to DEBUG mode (-Dlogging.level.org.openiam=DEBUG).

Symptom
Likely cause
Resolution

Connector never receives messages

Queue-name mismatch — including case

The connector record's queue must equal Oracle_Connector_1_Request exactly (capital O).

Test connection fails

Wrong connection string or credentials

Verify the jdbc:oracle:thin:@host:port/sid format and the service account.

Grants/roles not applied

Service account lacks rights

Re-check the grants in Prerequisites and the SQL under Behind the scenes.

Sync misses privileges/roles

Not enabled in the attributes script

Add "privileges"/"roles" in /sync/user/oracle/UserSyncAttributes.groovy.

Registering the connector in OpenIAM

Configure the connector's optional fields under Left menu → Connector Configuration:

The screen groups the available fields, and shows how many of the 25 you have configured. The Connection group is the one that matters for a JDBC connector:

Field
Purpose

Connection String

The JDBC connection string for the database, for example jdbc:oracle:thin:@dbhost.example.com:1521:orcl

JDBC Driver URL

The JDBC driver the connector loads

Is Primary Repository

Whether this managed system is the primary one. All managed systems are primary by default; clearing it marks the system as a reserve, used when provisioning to the primary has failed

Secondary Repository

Enables use of a secondary repository

Always Update Secondary

When set, the secondary repository is always updated

The remaining groups — Operation Handlers, Directory & Search, User Objects and Group Objects — are shared with every other connector type.

The Directory & Search and Group Objects groups hold settings such as Base DN for Group and Search Base DN for User, whose own descriptions say they are for LDAP and Active Directory connectors. They have no meaning for a JDBC connection — leave them unselected here.

Configuring the managed system

Field
Value

Login Id

OracleConnectorUser

Password

<password>

JDBC driver

oracle.jdbc.driver.OracleDriver

Connection String

jdbc:oracle:thin:@oracle_host:port/sid

Search filter for User

USERNAME=?

Search filter for Group

Role=?

Search filters must contain the char ?, which is replaced by the principal name to find the object. The filter is used in reconciliations as well.

Attribute mapping and policy map

Map OpenIAM user attributes (username, password, account status, default/temporary tablespace, profile, roles, privileges) in the managed system's policy map — see the SQL the connector generates under Behind the scenes.

Oracle scripts behind the scenes

Oracle SQL used by the connector:

Create new user:

Modify user:

Search / lookups:

Reconciliation and synchronization

OpenIAM provides out-of-the-box sync configurations and Groovy scripts. Example queries:

  • * — select all records.

  • USERNAME=Jons% — select by user name (uses where USERNAME like ('Jons%') — "starts with").

  • Concatenate filters with ; (= AND): USERNAME=Jons%;ACCOUNT_STATUS=OPEN.

Fields available for filtering: USERNAME, ACCOUNT.

To include privileges from Oracle, add "privileges" in /sync/user/oracle/UserSyncAttributes.groovy; the following SQL will run:

To include roles, add "roles" in the same script:

Make sure the service account has permission to perform the SQL above.

Last updated

Was this helpful?