I need to automate the installation of APEX 5.1 using only the runtime environment to configure the application.
I made some scripts that install and configure the application using the ADMIN user as the INTERNAL administrator, but when I create my Workspace, this is created without a user manager and I can not log in. How can I create the work area with an administrator or create a user and convert it into Administrator from my WS?
This is my code.. It is the same code that indicates the official documentation
ALTER SESSION SET CURRENT_SCHEMA = APEX_050100;
BEGIN
APEX_INSTANCE_ADMIN.ADD_WORKSPACE (
p_workspace_id => 100000,
p_workspace => 'MY_WKS',
p_primary_schema => 'WS',
p_additional_schemas => 'HF' );
END;
/