OCI Autonomous Database Support
**Is your feature request related to a problem? No problem, now a days only the oracle db is available, Oracle Autonomous uses MTLs to connect and we cannot set the configuration on the Web GUI solely
Describe the solution you'd like Improve Oracle connector in order to support autonomous database connections
Additional context We were able to set the configuration, but adding the wallet manually to the Airflow OS and setting up the TNS_ADMIN variable on OS, but it would be handy to have the setup in a Web GUI
Hi @ulixius9 @caiogusto2 , I would love to work on this. Could you plz assign this to me?
Hey @PubChimps and @caiogusto2 mai i please work on this issue could you assign me this?
Hey @caiogusto2 and @PubChimps may I please work on this issue?
Hey @caiogusto2 @PubChimps I would like to work on this issue.
Proposed plan:
1.Add Oracle Autonomous wallet configuration in the connector schema and expose the same options in the UI form. 2.Implement wallet materialization and TNS_ADMIN wiring in ingestion runtime so setup is fully driven from configuration. 3.Preserve backward compatibility for existing Oracle connection modes, and add unit tests plus documentation updates.
This approach is optimized because it solves the root usability gap (no manual host setup), keeps current users safe (no breaking behavior), and adds test coverage to prevent regressions. Please assign this issue to me.
@ulixius9 @harshach @caiogusto2 I would love to work on this issue: Here is my approach after making a thorugh search about it:
- Add a new connection type in the oracleConnectionType union. This sits with DatabaseSchema, ServiceName, and TNSConnection
- Fields: walletLocation, string, path to wallet directory walletContent, password string, base64 encoded wallet zip for inline use tnsName, string, alias from tnsnames.ora
- Update oracleConnection.json in openmetadata-spec. Add a new oneOf entry. Run make generate to update Pydantic models and frontend schema
- Update connection.py. Detect OracleWallet. Set TNS_ADMIN to the wallet directory. Pass thick_mode with lib_dir set to instant client path in cx_Oracle.init_oracle_client()
- If walletContent exists, decode and write to a temp directory before use. Follow the same pattern used for BigQuery service account JSON
- No frontend changes required. The schema update shows the new option in the UI through the existing oneOf logic
This change stays within the Oracle connector and follows current patterns in the codebase
Hi @ulixius9 @harshach @caiogusto2 @PubChimps , I'd love to work on this! After looking at the codebase and the python-oracledb docs, here's my approach:
Schema (oracleConnection.json)
Add a new OracleAutonomousConnection variant to the oracleConnectionType oneOf with:
walletLocation(string) – path to the extracted wallet directory on the ingestion hostwalletPassword(password/secret) – the wallet zip password (encryptsewallet.pem; stored via the existing Secrets Manager, not the DB password)tnsAlias(string) – the service alias fromtnsnames.ora(e.g.myatp_high)
Run make generate to sync Pydantic models and the frontend TypeScript types automatically.
Connection logic (connection.py)
For the new type, use Thin mode (no Instant Client needed) with oracledb.connect() passing config_dir, wallet_location, and wallet_password directly — no oracledb.init_oracle_client() call required. This avoids the Instant Client dependency and is the recommended approach for ADB. Also make hostPort optional for this connection type since ADB endpoints come from tnsnames.ora.
Why Thin over Thick?
Thick mode requires cwallet.sso and TNS_ADMIN set at OS level (exactly the pain point @caiogusto2 hit). Thin mode works entirely with parameters passed at runtime, which is far better for a GUI-driven setup.
Backward compatibility – existing DatabaseSchema, ServiceName, and TNSConnection modes remain completely untouched.
Tests & docs – unit tests for the new connection path, and updated connector docs.
Could you please assign this to me? Happy to share a draft PR outline first if helpful.
Hi @caiogusto2 @PubChimps , I'd love to work on this issue, can you please assign this to me?
Hi @ulixius9 @caiogusto2 , I'm participating in the the Metadata hackathon and would like to work on this Problem. Could you please assign this issue to me?
To support Oracle Autonomous Database (ADB) connections, we need to update our connection schemas and ensure the new parameters propagate through our Python and Java layers, the UI, and our test suite.
Steps to Implement:
Update Schema: Add OracleADBConnection to oracleConnection.json. This will include new fields for the wallet location, wallet password, and ADB service name, and will be appended to the oracleConnectionType array.
Regenerate Models: Run mvn clean install -pl openmetadata-spec to generate the new Java POJOs, and run make generate to update the Python Pydantic models.
Update Python Connector: Modify connection.py to handle the new connection logic. This requires setting the TNS_ADMIN environment variable to the wallet path and constructing the SQLAlchemy URL using the provided ADB service name.
Sync Frontend UI: Run yarn parse-schema so the web GUI auto-generates the new form fields. This will automatically add the new ADB choice to the Oracle connection dropdown.
Write Unit Tests: Add tests to test_source_connection.py to validate the new ADB SQLAlchemy URL construction and wallet path logic, following our existing Oracle testing patterns.
Hi @caiogusto2 @ulixius9 @harshach @PubChimps, I’d like to work on this issue and take ownership end-to-end.
Problem Summary
Oracle Autonomous Database requires wallet-based mTLS + TNS alias resolution.
Today, OpenMetadata Oracle setup works only when wallet files and TNS_ADMIN are pre-configured on the ingestion host, which prevents a true GUI-only setup.
Proposed Solution
Add a dedicated OracleAutonomousConnection option under oracleConnectionType to support Autonomous DB directly from UI.
Planned fields:
tnsAlias(required): service alias fromtnsnames.ora(e.g.myadb_high)walletPath(optional): wallet directory on ingestion hostwalletContent(optional secret): base64 zip of wallet for GUI-driven setupwalletPassword(optional secret): wallet password if required
Implementation Plan
- Update schema
oracleConnection.jsonwith newOracleAutonomousConnectiononeOfvariant. - Run model generation (
make generate) so Python + UI types are in sync. - Update Oracle connection logic to add an Autonomous branch:
- Avoid mandatory OS-level
TNS_ADMINsetup - Use runtime connection args for wallet/TNS resolution
- Skip forced thick-client init for this mode to keep setup portable
- If
walletContentis provided, decode/unzip to a secure temp dir during runtime and clean it up after execution. - Keep existing
OracleDatabaseSchema,OracleServiceName, andOracleTNSConnectionbehavior unchanged. - Add unit tests for:
- new autonomous config parsing
- connection argument construction
- wallet temp extraction + cleanup
- backward compatibility of existing modes
- Update Oracle connector docs with Autonomous examples (path-based and inline-wallet setup).
Acceptance Criteria
- Users can configure Oracle Autonomous DB entirely from OpenMetadata UI.
- No manual host-level
TNS_ADMINexport is required for the new mode. - Existing Oracle connector modes remain backward compatible.
- Test Connection works for both wallet path and inline wallet content flows.
If this approach looks good, please assign this issue to me.
I can open a draft PR quickly and share progress checkpoints in this thread.
Hello, I can solve this Oracle Autonomous Database OCI ingestion issue. The problem stems from the hardcoded TNS_ADMIN environmental dependency on the host os. I will construct a schema variation for OracleAutonomousConnection that parses the wallet zip and injects the connection arguments organically at runtime rather than requiring manual Airflow/OS configuration. I will ensure all CI/CD passes without regression. Please assign for the WeMakeDevs Hackathon!
On it @PubChimps, opening a PR shortly.