Run the following script as SYS or another user with DBA privileges.
declare
l_principal varchar2(20) := 'APEX_230100'; -- Replace with current APEX user
l_hosts apex_t_varchar2 := apex_t_varchar2(
'*.push.apple.com',
'*.notify.windows.com',
'updates.push.services.mozilla.com',
'android.googleapis.com',
'fcm.googleapis.com' );
begin
for j in ( select column_value as hostname from table(l_hosts) ) loop
dbms_network_acl_admin.append_host_ace (
host => j.hostname,
lower_port => 443,
upper_port => 443,
ace => xs$ace_type(
privilege_list => xs$name_list('connect'),
principal_name => l_principal,
principal_type => xs_acl.ptype_db) );
dbms_network_acl_admin.append_host_ace (
host => j.hostname,
ace => xs$ace_type(
privilege_list => xs$name_list('resolve'),
principal_name => l_principal,
principal_type => xs_acl.ptype_db) );
dbms_network_acl_admin.append_host_ace (
host => j.hostname,
lower_port => 443,
upper_port => 443,
ace => xs$ace_type(
privilege_list => xs$name_list('http'),
principal_name => l_principal,
principal_type => xs_acl.ptype_db) );
end loop;
end;
For more information, read this documentation chapter.