OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Support for getting Oracle view definitions filtered by schema

Open kwgdaig opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. We are triyng to ingest metadata for Oracle's DWH product, Oracle Autonomous Database (https://www.oracle.com/autonomous-database/autonomous-data-warehouse/). We have been able to ingest most of the metadata using the existing Oracle Connector. However, we were unable to ingest the view definitions due to an error in the DBMS_METADATA.GET_DDL of this executed this query that gets the view definitions. (query: https://github.com/open-metadata/OpenMetadata/blob/5965d4c63b2bf78566be806fed9c15b405778ecc/ingestion/src/metadata/ingestion/source/database/oracle/queries.py#L25-L39 ) This is due to the fact that the Autonomous Database is running on a PDB with a multi-tenant architecture, so it is not possible to get the DDL for some Views. The same error is described in this document (https://support.oracle.com/knowledge/Oracle%20Database%20Products/2479803_1.html).

  • PDB: https://docs.oracle.com/cd/F32587_01/cncpt/CDBs-and-PDBs.html#GUID-5C339A60-2163-4ECE-B7A9-4D67D3D894FB

Describe the solution you'd like To avoid errors in extracting view definitions, if Metadata Ingestion setting has a SchemaFilterPattern, I would like to run the view definition query only for that Schemas. I would need to add a where clause for the target schema to the above query. I think this will enable View definition extraction even for DBs running on PDB, such as Autonomous Database.

Describe alternatives you've considered

Additional context

kwgdaig avatar Dec 05 '23 01:12 kwgdaig

fixed here: https://github.com/open-metadata/OpenMetadata/pull/21177

keshavmohta09 avatar Jan 14 '26 18:01 keshavmohta09