The APEX SERT Installation Guide is provided as a reference to install APEX-SERT. It is intended for system administrators and/or DBAs. You will require access to the SYS database account and APEX Internal workspace credentials in order to install APEX-SERT.
The following typeset conventions are used throughout this document:
Plain Text Plain text is nothing more than standard, narrative text. No special actions are required.
Fixed Width
Fixed width
is used to denote input required from the user. When something is in the fixed width font, that text should be entered into the corresponding field or region.
Bold is used to indicate that you should perform an action, such as clicking a link or pressing a button, which corresponds to the value of the Bold text.
Bold Underline is used to refer to a label or section of a page. Bold Underline labels will typically denote where an action should occur, not the action itself.
Installing APEX-SERT is a simple process that is done entirely via a SQL script. The script will not only install the required database objects, but also create the APEX-SERT workspace and install the APEX-SERT applications. There is only a single manual step that is required to complete the installation.
Minimum APEX version: 24.1
APEX-SERT 24.1 is supported only on Oracle APEX 24.1 and higher. If you are using an APEX version prior to 24.1, you need to upgrade your instance to use SERT.
Note
This version of APEX-SERT is a complete rewrite from the ground up. It can be installed independently of an existing SERT, but there is no migration of historical scans, nor of exceptions.
to use the AOP report pages, you MUST have your own APEX Office Print Server.
links: Einstein Get started using APEX Office Print today!
APEX-SERT provides the capability to make use of DocGen, provided you have already setup and configured DocGen for your service.
APEX-SERT does not install or configure DocGen. you must seperately configure your instance use DocGen.
some links:
Oracle internal only:
once you have a working DocGen service, you can set preferences in the APEX-SERT administration application by navigating to Setup → Preferences and providing the required data values.
In order to install APEX-SERT, you will need access to the following system resources:
- Oracle SYS or ADMIN database account.
- SYS is used ONLY in non ADB installs, to create a privileged installer schema
- For Autonomous installs, use ADMIN
- Oracle APEX instance administration account
- SQLCL 24.2 or higher
If you do not have access to all of the above, then it is not possible to install APEX-SERT. Please consult with your local system administrators and/or DBAs for assistance.
While not necessary, many DBAs prefer to put vendor products in their own tablespace. If you decide to do this, you must create the new tablespace before installing APEX-SERT.
APEX-SERT requires at least 50MB of tablespace, and could require more, depending on how many attribute and attribute sets you create.
For AUTONOMOUS, use DATA as your tablespace
Recent versions can be found here: https://artifacthub-iad.oci.oraclecorp.com/artifactory/xgbu-ace-dev/sert/
for APEX 24.1, download the latest sert_24.1.N.zip file.
for APEX 24.2 download the latest sert_24.2.N.zip file.
once expanded/unzipped, the directory shall contain the following files and directories:
$ ls -l
total 40
-rw-r--r-- 1 mipotter staff 1131 27 Sep 11:33 LICENSE.md
-rw-r--r-- 1 mipotter staff 36 27 Sep 11:33 README.md
-rw-r--r-- 1 mipotter staff 893 3 Oct 20:04 controller.xml
-rw-r--r-- 1 mipotter staff 1656 17 Sep 15:42 install.sql
drwxr-xr-x@ 4 mipotter staff 128 13 Sep 12:30 product
-rw-r--r--@ 1 mipotter staff 819 3 Oct 21:13 sert.properties
Access the "acdc" setup scripts from the sert_latest.zip file, located in product/sert/pre-install/. refer to the README.md for details of installation
As the ADMIN
or SYS
user, use the supplied script create_acdc_schema.sql using sqlcl.
you MUST use this schema (or some adequately privileged schema you already have) in non autonomous environments, liquibase will not run as SYS. Currently we observe that ADMIN can be used successfully in ADB.
for AUTONOMOUS databases, user the LOW service. use of other services like HIGH, will use parallelisation, which causes liquibase to fail with an ora-12838 error.
-- from product/sert/pre-install
-- directory
-- you can specify any name for your installing schema, we use 'ACDC'.
SQL> @create_acdc_schema.sql ACDC <password> <tablespace-name>
-- for ADB
SQL> @create_acdc_schema.sql ACDC <password> DATA
Now, you have a validly configured account that can install APEX-SERT
APEX-SERT installs via a single installation script. This script must be run as the installing schema ( we will reference ACDC), and only takes a few minutes to complete if you are executing the installation locally to the database.
Prior to installation, EDIT the sert.properties file to define your configuration.
If you wish to pre-specify the Application ID for the SERT application, and it's companion Administration application, then put a valid, available application ID against sert_app_id and sert_admin_id
Define your desired AOP server: You can simply define as localhost if you do not have or intend to use AOP.
########################################################################
# SERT Properties File
########################################################################
# using SERT is strongly recommended as a workspace name
sert_apex_workspace = sert
sert_admin_user = sert_admin
# leave the next two ID's blank to automatically allocate an application ID
sert_app_id = 2000
sert_admin_id = 2001
# define YOUR AOP hostname
# uncomment if you are using AOP, and provide the URL to AOP printserver
sert_aop_url = https://localhost:8010
# set an administrator email
sert_admin_email_address = you@me.com
sert_email_from = noreply@oracle.com
# don't change sert_mode unless you know what it will do to you
sert_mode = standalone
##############################################
# if you leave the tablespace properties BLANK, installer will attempt to identify default tablespaces
# this is fine for ADB and some PDBs that are well configured, but for deployment one should
# explicitly define the tablespaces you install into. This only have effect on first install
sert_data_tablespace =
sert_temp_tablespace =
The installation will create two schema in your database:
- SERT_CORE
- Schema which holds all of the APEX-SERT database objects and metadata.
- SERT_PUB
- Schema which will be used as the Parse As schema for the APEX-SERT APEX applications.
It also creates an APEX workspace called SERT (or the name you supplied in the sert.properties). This is where the APEX-SERT APEX applications will be installed. The SERT workspace will not contain any developer users or workspace administrators, as it is not necessary nor required that any APEX developer access this workspace.
[!IMPORTANT] for AUTONOMOUS databases, user the LOW service. use of other services like HIGH, will use parallelisation, which causes liquibase to fail with ora-12838 error.
you MUST use SQLCL, as we rely on liquibase and liquibase must be used via the built-in commands in SQLCL 24.2 and higher
The APEX-SERT scripts must be installed from sql at the command line, as they use very specific commands only available via sqlcl. These scripts will not run correctly via sqlplus, SQL Developer or any other GUI environment.
-
Locate and change directories to the sert_latest directory that was created in the last section.
-
Enter the following command and press enter:
sql ACDC@<database>
you will be prompted for your schema password, and is your database TNSNames entry. For ADB, use the LOW connection to avoid parallelisation
-
Depending on your environment, it may not be necessary to enter a value for
<database>
. -
From the SQL Plus prompt, enter the following and press enter:
@install.sql
The design of the builder extension menu means that we cannot have the extension automatically available to all workspaces. Each workspace must subscribe to the SERT extension link. Luckily, we have code that will find and enable all workspaces that do not have the link.
This should be run as the "acdc" or equivalent user. (admin should work too in ADB)
BEGIN
for rec in
(select workspace from apex_workspaces aw
where aw.workspace <> 'SERT'
and not exists ( select workspace_name from apex_workspace_schemas ws
where ws.workspace_name = aw.workspace and schema = apex_application.g_flow_schema_owner)
minus
select grantor_workspace workspace
from apex_workspace_extension_grant
where grantee_workspace = 'SERT' )
loop
apex_instance_admin.grant_extension_workspace(
p_from_workspace => rec.workspace,
p_to_workspace => 'SERT',
p_read_access => true
);
end loop;
end;
/
to do this manually for a single workspace:
- Click the Administration Icon
- select Manage service , then Manage Extension links
- Click on the Subscriptions tab link
- Click on the Add Subscription button
- set Extension Workspace to SERT
- turn on the "Has Read Access" Toggle
- Click Subscribe
-
Click the "Extensions" icon to the left of the Administration icon
-
select SERT then Evaluations