Skip to content

Oracle Oracle Permissions

Permissions in your Oracle

The permissions on this page are granted in your own Oracle, to the account Qualytics connects with, by whoever administers Oracle at your company. They let Qualytics connect the datastore and read your data. They are not Qualytics roles or team permissions. To know which Qualytics user role (Admin, Manager, or Member) and team permission you need to connect the datastore in Qualytics, see Source Datastore Permissions.

Qualytics connects to Oracle through the Oracle JDBC Thin driver. It uses JDBC metadata APIs to discover schemas, tables, columns, and primary keys. Qualytics automatically filters out Oracle system schemas (SYS, SYSTEM, DBSNMP, OUTLN, APPQOSSYS, CTXSYS, MDSYS, OLAPSYS, ORDDATA, ORDSYS, WMSYS, XDB, LBACSYS, DVSYS, AUDSYS, and others) during schema discovery.

Minimum Oracle Permissions (Source Datastore)

Permission Purpose
CREATE SESSION Allow the user to connect to the database instance
SELECT ON <schema>.<table> Read data from tables for profiling and scanning
SELECT_CATALOG_ROLE (optional) Read data dictionary views for comprehensive metadata discovery

Permissions for Lineage Collection (Optional)

Only needed when you run a Sync with Collect lineage turned on. See Lineage Sources.

Permission Purpose
SELECT on V_$SQL, GV_$SQL, and V_$SQLCOMMAND, or SELECT_CATALOG_ROLE Read the write statements the database holds from recent runs
SELECT_CATALOG_ROLE Read all the procedures, functions, packages, and triggers stored in the database. Without it, only the code the user can execute is read
Visibility of the tables, views, and synonyms in the scanned schemas Read view definitions, dependency records, and synonyms, which the connection sees for any object it has access to

Example: Source Datastore User (Read-Only): Schema-Level Access

Replace <schema_name> and <password> with your actual values.

-- Create a dedicated read-only user
CREATE USER qualytics_read IDENTIFIED BY "<password>"
  DEFAULT TABLESPACE users
  TEMPORARY TABLESPACE temp;

-- Grant connection privileges
GRANT CREATE SESSION TO qualytics_read;

-- Option A: Grant read access to ALL tables (broad access)
GRANT SELECT ANY TABLE TO qualytics_read;

-- Option B: Grant read access to a specific schema (restrictive access)
-- Run this for each table you want Qualytics to access:
-- GRANT SELECT ON <schema_name>.<table_name> TO qualytics_read;

Example: Source Datastore User (Read-Only): Using a Role

For organizations that prefer role-based access control:

-- Create a custom read-only role
CREATE ROLE qualytics_read_role;

-- Grant SELECT on all tables in the target schema
BEGIN
  FOR t IN (SELECT table_name FROM all_tables WHERE owner = UPPER('<schema_name>'))
  LOOP
    EXECUTE IMMEDIATE 'GRANT SELECT ON <schema_name>.' || t.table_name || ' TO qualytics_read_role';
  END LOOP;
END;
/

-- Assign the role to the Qualytics user
GRANT qualytics_read_role TO qualytics_read;