1

    APEX_UTIL.SET_SECURITY_GROUP_ID( APEX_UTIL.FIND_SECURITY_GROUP_ID( p_workspace => 'teacher' ));

   apex_util.create_user(
   p_user_name => 'teacher',
   p_web_password => 'ChangeMe@1234',
   p_developer_privs => 'ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL',
   p_email_address => 'test1@example.com',
   p_default_schema => 'teacher',
   p_change_password_on_first_use => 'N' );

   end;

Error report -
ORA-20001: Package variable g_security_group_id must be set.
ORA-06512: at "APEX_210100.WWV_FLOW_API", line 485
ORA-06512: at "APEX_210100.WWV_FLOW_API", line 520
ORA-06512: at "APEX_210100.WWV_FLOW_FND_USER_INT", line 1731
ORA-06512: at "APEX_210100.HTMLDB_UTIL", line enter code here  1245
ORA-06512: at line 5

Oracle自治数据库是否允许开发人员通过编程方法创建顶点工作区?有可用的 API 吗?OCI for Java SDK 是否支持创建 APEX?

4

1 回答 1

4

要将工作区添加到您的 APEX 实例,请使用ADD_WORKSPACE过程。

例子:

BEGIN
    APEX_INSTANCE_ADMIN.ADD_WORKSPACE (
        p_workspace_id       => 8675309,
        p_workspace          => 'MY_WORKSPACE',
        p_primary_schema     => 'SCOTT',
        p_additional_schemas => 'HR:OE' );
END;

要在自治数据库上创建APEX 用户,请注意:

自治数据库上的 Application Express 管理服务和 Oracle Application Express 开发环境使用数据库帐户身份验证。这种身份验证方法使用数据库帐户用户名和密码来对用户进行身份验证。

于 2021-12-09T22:14:17.800 回答