This repository contains the example used in the presentation PL/SQL vs. JavaScript in the Oracle Database 23c,.
The examples require an Oracle Database 23.3 Free or newer with an installed utPLSQL framework v3.1.13 or newer.
The available resources in a Oracle Database 23.3 are limited. On the database server I started sqlplus / as sysdba
and ran the following
-- 1536M this is the default (75% of 2G max.)
alter system set sga_target=1536M scope=spfile;
-- 512M is the default (25% of 2G max.)
alter system set pga_aggregate_target=512M scope=spfile;
-- SGA subarea settings
-- 0 is the default
alter system set java_pool_size=32M scope=spfile;
-- restart the database
shutdown immediate;
startup;
The installation uses the script
command and therefore requires a recent version of SQLcl or SQL Developer. It will not work with SQL*Plus or another client.
Connect as sys
and run @install.sql
.
Connect as sys
and run drop user demo1 cascade;
.
These experiments ran on a Synology DS923+ with 64 GB RAM and a AMD Ryzen R1600 dual-core CPU and a volume based on two WD Red SA 500 4TB SSDs.
The Oracle Database 23c Free ran in a Docker container based on the image container-registry.oracle.com/database/free:23.3.0.0
. A mem_limit of 4G was configured for this container.
These experiments ran on a Mac mini Server (Late 2012) with 16 GB RAM and a 2.3 GHz Quad-Core Intel Core i7 and a CRUCIAL BX100 SSD 1TB SSD.
The Oracle Database 23c Free ran in a Docker container based on the image container-registry.oracle.com/database/free:23.3.0.0
. There was no mem_limit defined for this container. However, the container was the only running container in a Docker Desktop environment with a total mem_limit of 7 GB.
Small node.js project to run the same or similar JS code from mocha tests, which are more "demos". This allows me to use the autocomplete features of the IDE and the debugger for a better understanding of the codebase.
Another node.js project for a MLE module written in TypeScript. The idea is to provide a public stored procedure in the database that creates and populates the well-known tables dept
and emp
in the current schema.
This CDN has the capability to provide an ESM for packages hosted on NPM. The goal is to simplify the inclution in HTML pages. The bundling process detects modules that are accessing the network or the filesystem. In such cases no ESM is produced. Instead a error message is returned. Here are some examples:
-
/** * Failed to bundle using Rollup v2.79.1: the file imports a not supported node.js built-in module "net". * If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr */ throw new Error('Failed to bundle using Rollup v2.79.1: the file imports a not supported node.js built-in module "net". If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr');
-
/** * Failed to bundle using Rollup v2.79.1: the file imports a not supported node.js built-in module "fs". * If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr */ throw new Error('Failed to bundle using Rollup v2.79.1: the file imports a not supported node.js built-in module "fs". If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr');
In this comment a possible solution was suggested by adding browser: { "fs/promises": false }
in the package.json
.
In any case the issue has to be solved in the source project.