Skip to Main Content
  • Questions
  • plsql gateway procedure on Oracle Autonomous Database

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, John.

Asked: June 05, 2025 - 12:58 am UTC

Last updated: June 09, 2025 - 11:42 am UTC

Version: 3+, most recently 19

Viewed 1000+ times

You Asked

Ask Tom:

I would like to migrate a PL/SQL Web Toolkit application from an on-prem database instance to the Oracle Autonomous Database. I see references to the PL/SQL Gateway via ORDS (I think) in documentation and administration screens but I'm struggling to connect the dots. Most documentation and articles I find focus on the ORDS APIs but not a simple HTTP to PL/SQL connection.

I have created a User, CAAT_CODE, and can create a procedure through the web-based SQL Developer. I want to execute a procedure something like

create or replace procedure gateway_test
as

begin
  htp.print( '<html><body>Hello, World.</body></html>' );
end;
/


with a URL that looks like
https://g3958a9838612f9-caat.adb.us-chicago-1.oraclecloudapps.com/ords/caat_code/gateway_test

So far, all I get is the HTTP 404, not found error.

Please suggest documentation or a set of steps to configure the gateway in the Oracle Autonomous Database environment or let me know that what I'm trying to do is not supported.

Thanks for many years of Ask Tom. I have found it to be valuable in many Oracle development cases.

John Jeunnette
johnjeunnette@prairiesystemsgroup.com


and Connor said...

You don't get access to the standard ORDS command line configuration facilities with the ORDS that comes pre-supplied with Autonomous (for security reasons).

Thus you would need to create a standalone VM in your cloud compartment and run ORDS from that, which then gives you full control over the installation.

Tim Hall has a nice post on setting up the plsql gateway under this scenario

https://oracle-base.com/articles/misc/oracle-rest-data-services-ords-presenting-plsql-web-toolkit-applications

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library