Skip to Main Content
  • Questions
  • Installing Translated Versions of APEX on RDS for Oracle

Breadcrumb

We're taking a break this week as Connor and Chris will both be at CloudWorld, the premier Oracle conference of 2024. If you're in Vegas, please come say Hi or pop into our sessions

Question and Answer

Connor McDonald

Thanks for the question.

Asked: July 05, 2024 - 4:54 pm UTC

Last updated: August 07, 2024 - 5:43 am UTC

Version: 23.2

Viewed 1000+ times

You Asked

On AWS RDS for Oracle, while using SQL*Plus (or SQLcl) connected as ADMIN, the installation of translated version doesn't work getting ORA-20001: Package variable g_security_group_id must be set errors. But we found out that if you use Oracle SQL Developer connected as ADMIN and that you File>Open>load_xx.sql and execute the script with the Run Script (F5) option, the installation is completing successfully without error.

Why is SQL Developer able to execute the installation script of a translated version of Apex successfully while SQL*Plus or SQLcl are getting ORA-20001: Package variable g_security_group_id must be set. errors on AWS RDS for Oracle ?

From -> https://repost.aws/questions/QURvmr-gACSxGA0PtHK_CfFg#ANz_huWBqGRQazqsRkY2gzQw

and Connor said...

SQL Dev and SQLcl do not do anything magical with APEX scripts (they don't know its an APEX script).

If they are working, then most likely they are doing so because you are connecting as a schema that the workspace is bound to.

For example, if I want to import an APEX app into my WS_ASKTOM workspace, then I must as user ASKTOM.

I can't speak for how RDS manages this - that would need to be a question for the RDS folks at AWS.

If you want to set the security ID before import, the following shoudl work

exec apex_24xxxxx.wwv_flow_api.set_security_group_id(apex_util.find_security_group_id('MY_WORKSPACE_NAME'));

Rating

  (1 rating)

We're not taking comments currently, so please try again later if you want to add a comment.

Comments

Solution

A reader, August 12, 2024 - 1:18 pm UTC

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