6.5 Configuring Oracle REST Data Services
Configuring Oracle REST Data Services requires that you copy the images directory, if you are using an older release validate the Oracle REST Data Services installation, configure static files support, and secure Oracle REST Data Services.
- Managing Static Resources (Images)
Manage images and static resources used by an Oracle APEX installation. - Validating the Oracle REST Data Services Installation
In a new installation or upgrade of Oracle APEX and if you are using Oracle REST Data Services 21.2.1 or older, you must validate the Oracle REST Data Services installation. - Configuring Static File Support
For configuring static files, you must runapex_rest_config.sql
after a new installation of Oracle APEX. - Securing Oracle REST Data Service
In a configuration for Oracle APEX, Oracle recommends setting the parametersecurity.requestValidationFunction
towwv_flow_epg_include_modules.authorize
.
6.5.1 Managing Static Resources (Images)
Manage images and static resources used by an Oracle APEX installation.
The images and static resources used by an Oracle APEX installation can either be stored on the local file system accessible by Oracle REST Data Services, or referenced to the Oracle APEX static resources Content Delivery Network (CDN).
- Copying the Images Directory
Store images and static resources used by an Oracle APEX installation on a local filesystem accessible by Oracle REST Data Services. - Using a Static Resources CDN
Reference images and static resources used by an Oracle APEX installation by referencing a static resources Content Delivery Network (CDN).
Parent topic: Configuring Oracle REST Data Services
6.5.1.1 Copying the Images Directory
Store images and static resources used by an Oracle APEX installation on a local filesystem accessible by Oracle REST Data Services.
Note:
Skip this step if you choose to use the Oracle APEX static resources CDN as described in Using a Static Resources CDN.Perform this task whether you are loading a new installation or upgrading
from a previous version. To host the images and static resources on a local file
system, you must copy the images directory from the top level of the
apex\images
directory, for example C:\TEMP
, to
the location used by your Oracle REST Data Services installation.
During an upgrade, you overwrite your existing images directory. Before you begin the upgrade, to ensure that you can revert to the previous version, Oracle recommends that you create a copy of your existing images directory for APEX, indicating the release number of the images (for example, images_22_2
).
Parent topic: Managing Static Resources (Images)
6.5.1.2 Using a Static Resources CDN
Reference images and static resources used by an Oracle APEX installation by referencing a static resources Content Delivery Network (CDN).
To use the Oracle APEX static resources CDN, connect as a privileged user to the database and run the following code block.
begin
apex_instance_admin.set_parameter(
p_parameter => 'IMAGE_PREFIX',
p_value => 'https://static.oracle.com/cdn/apex/23.1.0/' );
commit;
end;
Parent topic: Managing Static Resources (Images)
6.5.2 Validating the Oracle REST Data Services Installation
In a new installation or upgrade of Oracle APEX and if you are using Oracle REST Data Services 21.2.1 or older, you must validate the Oracle REST Data Services installation.
For validating the Oracle REST Data Services installation in a new installation or upgrade of Oracle APEX, run the following command:
java -jar ords.war
validate [--database <dbname>]
See Also:
Repairing the Oracle REST Data Services Installation in Oracle REST Data Services Installation and Configuration GuideParent topic: Configuring Oracle REST Data Services
6.5.3 Configuring Static File Support
For configuring static files, you must run
apex_rest_config.sql
after a new installation of Oracle APEX.
Oracle APEX enables application developers to include static files with
their applications. Static files can be associated with a
workspace, an application, a plug-in, or an application theme.
When using Oracle REST Data Services as your web server, static files are served using RESTful
service module built into Oracle APEX. Therefore, you must run
apex_rest_config.sql
after a new
installation of Oracle APEX.
Parent topic: Configuring Oracle REST Data Services
6.5.4 Securing Oracle REST Data Service
In a configuration for Oracle APEX, Oracle recommends setting the parameter
security.requestValidationFunction
to
wwv_flow_epg_include_modules.authorize
.
Set parameter security.requestValidationFunction
to
wwv_flow_epg_include_modules.authorize
activates the white list of
callable procedures which ships with Oracle APEX and prohibits calls to other procedures.
See Also:
About Configuring Oracle REST Data Services with Oracle APEX in Oracle APEX App Builder User’s GuideParent topic: Configuring Oracle REST Data Services