Connect your app to Oracle Autonomous AI Database
Connect your Lovable app to an Oracle Autonomous Database via its web endpoint to run database queries and build dashboards. Your app securely talks to the database through Lovable's gateway using a dedicated database user.
Anyone who needs to display or analyze company data stored in an Oracle Autonomous Database or Oracle Fusion.
Do this, in order
- 1
Log in to your Oracle Cloud console, go to Database actions, and run the SQL commands to create a dedicated read-only user, grant SELECT on needed tables, and REST-enable the schema.
This creates safe credentials limited strictly to reading specific data without requiring complex client drivers.
- 2
Copy your Web Access (ORDS) public URL from Tool configuration in the Oracle console and append your schema name to the end (e.g., /ords/reporting_ro).
Lovable requires this exact web address to reach your database over HTTPS.
- 3
In Lovable, navigate to Connectors, select Oracle Autonomous AI Database, and click Connect.
This opens the configuration screen to enter your database credentials.
- 4
Fill in a connection name, your REST-Enabled SQL URL, the read-only username, and the password.
Lovable needs these details to authenticate and proxy queries through its secure gateway.
- 5
Adjust the Sharing settings if other team members need access, then click Connect to validate and save.
Lovable tests the connection with Oracle before saving it to make sure credentials work.
- 6
Open your project chat and prompt Lovable to link to Oracle Autonomous AI Database and build your interface.
Linking allows the AI to run queries and build reports directly on top of your Oracle data.
Paste this into your project
Use Oracle Autonomous AI Database and build a dashboard that shows revenue by product category with a date filter.
Words decoded
- ORDS (Oracle REST Data Services)
- A built-in Oracle service that lets applications run database queries through standard web URLs rather than specialized database software.
- REST-Enabled SQL
- A web address that accepts standard database query commands sent over normal internet traffic (HTTPS).
- Schema
- A collection of database tables and objects belonging to a specific database user.
- Data dictionary
- A built-in set of reference tables in Oracle that describes the structure, names, and types of your tables and columns.
Where people get stuck
- Your Oracle instance must be reachable over the public internet; private-endpoint-only instances will not connect unless Lovable IP ranges are allowlisted on an access control list.
- The connector itself does not prevent writes or deletes; you must restrict the database user in Oracle to read-only access (SELECT grants) to prevent accidental data changes.
- If you click 'Always allow' when Lovable asks to run a query in chat, it will run all future queries on that connection without confirmation, including modifications.
- You cannot edit the REST-Enabled SQL URL after saving; if it changes, you must create a new connection.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.