Skip to content

Commit

Permalink
Merge pull request #4948 from mpmadhavig/oracle-db-user-priviledges
Browse files Browse the repository at this point in the history
Document oracle db user priviledges required
  • Loading branch information
mpmadhavig authored Jan 15, 2025
2 parents e531769 + a1af910 commit 78414c6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,24 @@ When the database owner is not the user used to connect to the database, specify
parentSchema = "<parent_schema_name>"
```

!!! note "Database user priviledges"

When a custom database user is created, please note that the following privildges should be granted according to the purpose of the user.

- Execute the below permissions on the database to perform DDL operations.
- CREATE SESSION, ALTER SESSION, UNLIMITED TABLESPACE, CREATE VIEW, CREATE SEQUENCE, CREATE TABLE, CREATE PROCEDURE, CREATE TRIGGER, CREATE PUBLIC SYNONYM
- ex: `GRANT CREATE SESSION TO <db-user>;`

- Execute the below permissions on the database to perform DML operations.
- CREATE SESSION, ALTER SESSION, UNLIMITED TABLESPACE
- ex: `GRANT CREATE SESSION TO <db-user>;`

- When a user accessing the tables is not the owner of the tables, the following permissions should be granted on the table.
- SELECT, INSERT, DELETE, UPDATE
- ex: `GRANT SELECT, INSERT, DELETE, <db-user>.<table-name>;`

Please refer the offcial [oracle documentation](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/GRANT.html#GUID-20B4E2C0-A7F8-4BC8-A5E8-BE61BDC41AC3) for further details.

---
## Configure the connection pool behavior on return

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,24 @@ When the database owner is not the user used to connect to the database, specify
parentSchema = "<parent_schema_name>"
```

!!! note "Database user priviledges"

When a custom database user is created, please note that the following privildges should be granted according to the purpose of the user.

- Execute the below permissions on the database to perform DDL operations.
- CREATE SESSION, ALTER SESSION, UNLIMITED TABLESPACE, CREATE VIEW, CREATE SEQUENCE, CREATE TABLE, CREATE PROCEDURE, CREATE TRIGGER, CREATE PUBLIC SYNONYM
- ex: `GRANT CREATE SESSION TO <db-user>;`

- Execute the below permissions on the database to perform DML operations.
- CREATE SESSION, ALTER SESSION, UNLIMITED TABLESPACE
- ex: `GRANT CREATE SESSION TO <db-user>;`

- When a user accessing the tables is not the owner of the tables, the following permissions should be granted on the table.
- SELECT, INSERT, DELETE, UPDATE
- ex: `GRANT SELECT, INSERT, DELETE, <db-user>.<table-name>;`

Please refer the offcial [oracle documentation](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/GRANT.html#GUID-20B4E2C0-A7F8-4BC8-A5E8-BE61BDC41AC3) for further details.

---

## Configure the connection pool behavior on return
Expand Down

0 comments on commit 78414c6

Please sign in to comment.