Manage Oracle APEX in Autonomous AI Database
Learn about functionality only available in Oracle APEX in Autonomous AI Database.
Note:
To learn more about Autonomous AI Database instance lifecycle operations, see Lifecycle Operations in Using Oracle Autonomous AI Database Serverless.- About Document Generator
Learn about privileges required to configure Document Generator and how to configure Document Generator for an APEX instance.
Parent topic: Manage Oracle APEX
About Document Generator
Learn about privileges required to configure Document Generator and how to configure Document Generator for an APEX instance.
The Document Generator pre-built function enables you to generate documents based on Office templates and JSON data. You can configure the Document Generator for APEX from the OCI Console.
For more information, see Document Generator Function in Oracle Cloud Infrastructure Documentation.
- IAM Policies and Oracle Database Privileges
Learn more about OCI permissions the OCI user requires in order to configure Document Generator. - About Creating a Connection for Document Generator
Learn about creating a Database Connection for Document Generator. - Configure Document Generator
Learn how to configure Document Generator.
Parent topic: Manage Oracle APEX in Autonomous AI Database
IAM Policies and Oracle Database Privileges
Learn more about OCI permissions the OCI user requires in order to configure Document Generator.
Required IAM Policies
| Policy Statement | Justification |
|---|---|
| allow group '<identity_domain_name>'/'<group_name>' to read autonomous-database-family in compartment <compartment> | Required to navigate to the APEX Instance Details page |
| allow group '<identity_domain_name>'/'<group_name>' to manage virtual-network-family in compartment <compartment> | Required to create a Database Tools Private Endpoint |
| allow group '<identity_domain_name>'/'<group_name>' to manage vaults in compartment <compartment> | Required to create a Vault |
| allow group '<identity_domain_name>'/'<group_name>' to manage keys in compartment <compartment> | Required to create a Key |
| allow group '<identity_domain_name>'/'<group_name>' to manage secret-family in compartment <compartment> | Required to create Vault Secrets |
| allow group '<identity_domain_name>'/'<group_name>' to manage database-tools-family in compartment <compartment> | Required to create Database Tools connection and Private Endpoint and make use of them |
| allow group '<identity_domain_name>'/'<group_name>' to read function-family in compartment <compartment> | Required to select Application, Function, and PbfListing |
| allow group '<identity_domain_name>'/'<group_name>' to read object-family in compartment <compartment> | Required to get the Object Storage namespace |
| allow group '<identity_domain_name>'/'<group_name>' to manage policies in compartment <compartment> | Required to manage Policies |
Oracle AI Database Privileges
Note:
TheADMIN user of an APEX Instance (Autonomous AI Database Serverless) already has these grants.
| Grant Statement | Justification |
|---|---|
| GRANT CREATE SESSION TO <user> | Required to create a session (log in to the database) |
|
GRANT EXECUTE ON DBMS_CLOUD_ADMIN TO <user> EXEC DBMS_CLOUD_ADMIN.ENABLE_RESOURCE_PRINCIPAL(username => '<user>', grant_option => TRUE) |
Required to enable/disable the ADB-S resource principal |
| GRANT APEX_ADMINISTRATOR_ROLE TO <user> | Required to execute APEX_INSTANCE_ADMIN.{GET,SET}_PARAMETER |
|
GRANT SELECT ON SYS.DBA_CREDENTIALS TO <user> GRANT SELECT ON SYS.DBA_TAB_PRIVS TO <user> |
Required to obtain the enabled status of the ADB-S resource principal |
Parent topic: About Document Generator
About Creating a Connection for Document Generator
Learn about creating a Database Connection for Document Generator.
Before you can configure Document Generator for an APEX instance, you must create a Database Tools connection.
When you create a Database Tools connection, you select a Runtime identity, which determines how the Database Tools connection retrieves secrets required to establish a connection (for example, database password, wallet) and how the APEX instance will interact with Document Generator. Expand Advanced options to configure Runtime identity. Options include:
- Authenticated principal - With Authenticated principal, the user who is currently logged in to OCI retrieves secrets. With this option, the APEX instance will use Autonomous AI Database resource principal to invoke Document Generator and to interact with Object Storage.
- Resource principal - With Resource principal, Database Tools service uses resource principal to retrieve secrets. With this option, the APEX instance will use Database Tools identity to invoke Document Generator and to interact with Object Storage.
To learn more, see fhe following topics:
- Creating a Database Tools connection - See Using the Oracle Cloud Infrastructure Console in Oracle Cloud Infrastructure Documentation.
- Database Tools identities - See Using Identities with Database Tools in Oracle Cloud Infrastructure Documentation.
- Required database privileges - See IAM Policies and Oracle Database Privileges.
Sharing Identity Credentials
If you created Database Tools connection using Resource principal as Runtime identity, you must create an identity and share it with APEX before you can configure Document Generator in the APEX instance. If the Database Tools connection is using Authenticated principal as Runtime identity, the Autonomous AI Database resource principal is automatically shared with APEX.
Tip:
To learn more about creating an identity, see Creating an Identity in Oracle Cloud Infrastructure Documentation.
Once you create an identity, Database Tools creates a new credential in the target database associated with the connection. The final step is to share it with APEX.
- On the Connection details page, select the Credentials tab.
- Locate the credential to be shared.
- From the Actions menu, click Share credential.
- On Share credential:
- Click Create public synonym, enter a synonym, and click Create.
- Click Grant privilege, enter the APEX schema name (for example,
APEX_240200), and click Grant.
Tip:
You can find the APEX schema on the About Oracle APEX page. Sign in to any APEX workspace, click the Help menu, and select About. On the About Oracle APEX page, find Application Owner. See Viewing the About Oracle APEX Page in Oracle APEX Administration Guide.
Parent topic: About Document Generator
Configure Document Generator
Learn how to configure Document Generator.
Note:
Oracle Document Generator is only supported for the following workload types: Lakehouse; Transaction Processing; or JSON Database. The Document Generator integration is not supported for the APEX workload type.To configure Document Generator:
Parent topic: About Document Generator