Skip to content

Commit f7253b9

Browse files
authored
V24.2.14 (#36)
## 24.2.14 * [GAT-438] - github #19 Expose Severity attribute to main report * [GAT-439] - Check App ID availability in sert.properties before starting #11 * [GAT-448] - Exclude File Browse item from Encrypted Items check #27 * [GAT-449] - Run authz on public pages should be ignored if authz scheme = must not be public user #28 * [GAT-457] - Doc: ora-22905 in exceptions API when referencing a table sql_macro #34 * [GAT-458] - Expose Severity attribute to main report #19 ## 24.2.13 * [GAT-456] - error in eval_pkg causes pending exceptions to be marked stale
1 parent d5aa132 commit f7253b9

35 files changed

+1112
-950
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.log
2+
.DS_Store
3+
.vscode/settings.json

doc/ACDC_README.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# ACDC-SETUP
2+
3+
Creates the ACDC user for instsalling APEX-SERT.
4+
Because APEX-SERT is installed via liquibase in SQLCL, you cannot use the
5+
SYS schema for installations.
6+
The ACDC schema provides all the privileges necessary to install APEX-SERT.
7+
You may name the schema as you wish, and we strongly recommend disabling teh account after installation.
8+
9+
[Script descriptions](#script-descriptions)
10+
11+
[Modifying ACDC roles and privileges](#modifying-acdc-roles-and-privileges)
12+
13+
[Too much info, just install the thing!](#installation)
14+
15+
## Script descriptions
16+
17+
The driver script for managing the ACDC schema is `create_acdc_schema.sql`. This script takes takes 3 arguments:
18+
19+
* Schema name
20+
* Schema password
21+
* Schema data tablespace name
22+
23+
Running the above script will automatically call the following children scipts (in this provided order):
24+
25+
* `schema_grants.sql`: Grants privileges to ACDC schema
26+
* `schema_revokes.sql`: Revokes privileges from ACDC schema. Follows the same collection convention as `schema_grants.sql` (see below).
27+
* `schema_additional_setup.sql`: Additional roles for ACDC; creation/management of revision history
28+
29+
## Modifying ACDC roles and privileges
30+
The `schema_grants.sql` script contains a list of the roles and privileges that are granted to ACDC. To add or modify the roles/privileges provided to ACDC, simply add them to the appropriate collection.
31+
32+
The `schema_revokes.sql` script is run after the `schema_grants.sql` script. To avoid confusion, if a role/privilege is to be removed from the from the ACDC user, it should be removed from `schema_grants.sql` script and added to `schema_revokes.sql`
33+
34+
Below is a list of the collections used to specify the roles and privileges and how to modify them.
35+
36+
***NOTE***: Each collection is ordered by the role/privilege name so that it is easy for developer to identify and find what is already being granted to ACDC. Please continue to enforce this.
37+
38+
### l_roles
39+
40+
This is a collection of the roles that will be provided to ACDC. The collection is made of objects with the following attributes:
41+
42+
* Role name
43+
* Can ACDC grant the role to other users
44+
45+
### l_tab_privs
46+
47+
This is a collection of the table privileges that will be provided to ACDC. The collection is made of objects with the following attributes:
48+
49+
* Object owner
50+
* Object name
51+
* Privilege type (read, select, insert, execute, etc.)
52+
* Can ACDC grant the table privilege to other users
53+
* Is the privilege for a directory object
54+
55+
### l_sys_privs
56+
57+
This is a collection of the system privileges that will be provided to ACDC. The collection is made of objects with the following attributes:
58+
59+
* System privilege name
60+
* Can ACDC grant the system privilege to other users
61+
62+
## Installation
63+
64+
1. Unpack it
65+
1. Connect to the target database as ADMIN (ADB) or SYS (PDB)
66+
1. Execute `@create_acdc_schema.sql acdc <acdc password> <acdc tablespace>`
67+
68+
Notes:
69+
70+
* The values of `<acdc password>` and `<acdc tablespace>` are only relevant for new installations, but the script expects them on every run. For systems where ACDC is already installed, you do not need to supply valid values for these parameters
71+
* On ADB, the value for `<acdc tablespace>` should always be DATA (or data, we're not _that_ picky)
72+
* Since you're using the packaged scripts, the value for ACDC_RELEASE will already be set, and the database will be updated accordingly.

doc/LICENSE.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

doc/install.sql

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/install_guide.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,28 @@ Installing APEX-SERT is a simple process that is done entirely via a SQL script.
2929

3030
#### 2.1.1. Software Versions
3131

32-
#### 2.1.1.1 APEX
32+
#### 2.1.1.1 Database
3333

34-
Minimum APEX version: 24.1
34+
**Version:** 19.6+
3535

36-
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.
36+
APEX-SERT makes use of SQL Macros for table expressions. This feature was backported to 19c in the 19.6 update.
37+
38+
SQL Macros for table expressions were made generally available in 21c
39+
40+
#### 2.1.1.2 APEX
41+
42+
Minimum APEX version: 24.2
43+
44+
APEX-SERT 24.2 is supported only on Oracle APEX 24.2 and higher. If you are using an APEX version prior to 24.2, you need to upgrade your instance to use APEX-SERT.
3745

3846
> [!NOTE]
39-
>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.
47+
>This version of APEX-SERT is a complete rewrite from the ground up. It can be installed independently of an existing APEX-SERT, but there is no migration of historical scans, nor of exceptions.
4048
41-
#### 2.1.1.2 Requirements for AOP
49+
#### 2.1.1.3 Requirements for AOP
4250

4351
to use the AOP report pages, you MUST have your own APEX Office Print Server. 
4452

45-
#### 2.1.1.2 Requirements for DocGen
53+
#### 2.1.1.4 Requirements for DocGen
4654

4755
APEX-SERT provides the capability to make use of DocGen, provided you have already setup and configured DocGen for your service.
4856

@@ -62,7 +70,7 @@ In order to install APEX-SERT, you will need access to the following system reso
6270

6371
* Oracle SYS or ADMIN database account.
6472
- SYS is used ONLY in non ADB installs, to create a privileged installer schema
65-
* For Autonomous installs, use ADMIN
73+
* For Autonomous installs, use ADMIN or create an [installer account](#221-acdc-installing-schema-creation-script)
6674
* Oracle APEX instance administration account
6775
* SQLCL  24.2 or higher
6876

@@ -80,7 +88,7 @@ For AUTONOMOUS, use DATA as your tablespace
8088

8189
#### 2.2.1 ACDC installing schema creation script
8290

83-
Access the "acdc" setup scripts from the sert_latest.zip file, located in product/sert/pre-install/.  refer to the [README.md](README.md) for details of installation
91+
Access the "acdc" setup scripts from the sert_latest.zip file, located in product/sert/pre-install/acdc.  refer to the [README.md](ACDC_README.md) for details of installation
8492

8593
As the `ADMIN` or `SYS` user, use the supplied script create_acdc_schema.sql using sqlcl.
8694

@@ -110,7 +118,7 @@ If you wish to pre-specify the Application ID for the SERT application, and it's
110118

111119
Define your desired AOP server:  You can simply define as localhost if you do not have or intend to use AOP.
112120

113-
```sh
121+
```bash
114122
########################################################################
115123
# SERT Properties File
116124
########################################################################
@@ -140,9 +148,9 @@ sert_temp_tablespace =
140148
The installation will create two schema in your database:
141149

142150
* **SERT_CORE**
143-
- Schema which holds all of the APEX-SERT database objects and metadata.
151+
* Schema which holds all of the APEX-SERT database objects and metadata.
144152
* **SERT_PUB**
145-
- Schema which will be used as the Parse As schema for the APEX-SERT APEX applications.
153+
* Schema which will be used as the Parse As schema for the APEX-SERT APEX applications.
146154

147155
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.
148156

@@ -157,10 +165,10 @@ It also creates an APEX workspace called SERT (or the name you supplied in the s
157165
1. Locate and change directories to the sert_latest directory that was created in the last section.
158166
1. Enter the following command and press enter:
159167

160-
`sql ACDC@<database>`
168+
`sql ACDC@[database]`
161169

162-
you will be prompted for your schema password, and <database> is your database TNSNames entry. For ADB, use the LOW connection to avoid parallelisation
163-
1. Depending on your environment, it may not be necessary to enter a value for `<database>`.
170+
you will be prompted for your schema password, and [database] is your database TNSNames entry. For ADB, use the LOW connection to avoid parallelisation
171+
1. Depending on your environment, it may not be necessary to enter a value for `[database]`.
164172
1. From the SQL Plus prompt, enter the following and press enter:
165173

166174
`@install.sql`
@@ -173,6 +181,9 @@ The design of the builder extension menu means that we *cannot* have the extensi
173181

174182
This should be run as the "acdc" or equivalent user.  (admin should work too in ADB)
175183

184+
> [!TIP]
185+
> this is a useful block of code for a periodic job to automate subscription for new workspaces created after installation
186+
176187
```sql
177188
BEGIN
178189
for rec in
@@ -217,4 +228,3 @@ to do this manually for a single workspace:
217228
<!-- ![GIF image clicking on extension builder menu > Sert > Evaluations ](./images/launch-sert.gif) -->
218229

219230
<img src="./images/launch-sert.gif" alt="GIF of user launching SERT" width=50% height=50%>
220-

doc/install_prod.sql

Lines changed: 0 additions & 38 deletions
This file was deleted.

doc/release_notes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Release Notes
22

3+
## 24.2.14
4+
5+
* [GAT-438] - github #19 Expose Severity attribute to main report
6+
* [GAT-439] - Check App ID availability in sert.properties before starting #11
7+
* [GAT-448] - Exclude File Browse item from Encrypted Items check #27
8+
* [GAT-449] - Run authz on public pages should be ignored if authz scheme = must not be public user #28
9+
* [GAT-457] - Doc: ora-22905 in exceptions API when referencing a table sql_macro #34
10+
* [GAT-458] - Expose Severity attribute to main report #19
11+
12+
## 24.2.13
13+
14+
* [GAT-456] - error in eval_pkg causes pending exceptions to be marked stale
15+
316
## 24.2.12
417

518
* [GAT-437] - Application "Scoreboard" not updating asynchronously #17

product/sert/apex/application/f2100/application/create_application.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- file_checksum: FF2993603860FF1AD5D9B595121D74D70D468E3830BCB120E130796DF35FBC4B
1+
-- file_checksum: B15530B0E3F0D26034A977B87B83AC8348F269B4E76B2BC4F17B8318CE5E3149
22
prompt --application/create_application
33
begin
44
-- Manifest
@@ -55,7 +55,7 @@ wwv_imp_workspace.create_flow(
5555
,p_substitution_value_01=>'APEX-SERT'
5656
,p_file_prefix => nvl(wwv_flow_application_install.get_static_app_file_prefix,'')
5757
,p_files_version=>204
58-
,p_version_scn=>44842092472343
58+
,p_version_scn=>44901328460216
5959
,p_print_server_type=>'INSTANCE'
6060
,p_file_storage=>'DB'
6161
,p_is_pwa=>'Y'

0 commit comments

Comments
 (0)