Playbook: Set up APEX with OCI Generative AI
Steps to connect an Oracle APEX app to OCI Generative AI for chat, summarisation or RAG.
- Provision Autonomous Database (or APEX service) and create the APEX workspace.
- In OCI, enable Generative AI in a supported region and create an IAM policy for the database or user.
- Create an API key or resource principal and store it as APEX Web Credentials.
- In APEX Workspace Utilities, configure a Generative AI service pointing to OCI Generative AI.
- Add AI features: AI Assistant region, or call the model with APEX_AI / APEX_WEB_SERVICE from PL/SQL.
- For RAG, store embeddings in a VECTOR column and retrieve with VECTOR_DISTANCE before calling the model.
- Log prompts and responses for audit; add rate limits.
Reference: APEX documentation, OCI Generative AI documentation, AI Vector Search.
Read more
Article
Oracle APEX Development Company: Buyer's Guide
How to choose an Oracle APEX development company: skills to check, engagement models, delivery method, security, a scorecard, questions and red flags.
ArticleOracle APEX and OCI Generative AI: Step-by-Step Setup
Connect Oracle APEX to OCI Generative AI: IAM policies, web credentials, the Generative AI service, APEX_AI calls, RAG with vector search and audit logs.



