In this guide ⌄
Two paths, two goals
The SQL exercise needs a database, a client to run queries and the UNINA schema. Oracle APEX adds a web environment for building applications; setting it up is an additional path.
The course SQL lab
For the course workflow use Oracle Database XE 21c and SQL Developer. In a default local lab the connection uses host
localhost
, port
1521
and service name
XEPDB1
. Check these values against your installation and select Service name rather than SID.
Create a dedicated user
Using a database administrator connected to XEPDB1, create UNINA if it does not already exist. Replace the password placeholder first. If UNINA already contains objects, inspect them rather than deleting or reinitialising it.
Scroll horizontally to read the complete lines. ↔
CREATE USER unina
IDENTIFIED BY "INSERISCI_UNA_PASSWORD_PERSONALE"
QUOTA 100M ON USERS;
GRANT CREATE SESSION, CREATE TABLE,
CREATE VIEW, CREATE SEQUENCE TO unina;
Load the original setup script
Create a connection for UNINA, open
unina_spotify_setup_oracle.sql
and run the script with F5. Work in an empty lab schema: the script creates tables and data and does not reset an existing exercise. Run individual SELECT statements with Ctrl+Enter.
Check the data
Scroll code ↔
SELECT 'ARTISTI' AS tabella, COUNT(*) AS righe FROM ARTISTI
UNION ALL SELECT 'STUDENTI', COUNT(*) FROM STUDENTI
UNION ALL SELECT 'BRANI', COUNT(*) FROM BRANI
UNION ALL SELECT 'ASCOLTI', COUNT(*) FROM ASCOLTI;
Expected counts: ARTISTI 6, STUDENTI 11, BRANI 18, ASCOLTI 72. APEX, ORDS and Tomcat belong to the separate web application setup. Open the SQL exercise .
The web path: APEX, ORDS and Tomcat
The provided document covers Oracle XE 21c, SQL Developer and, for the Windows web setup, APEX 22.2, ORDS 22.4.4, JDK 17 and Tomcat 9.0.73. The PDF describes installation, workspaces and connecting the UNINA schema.
Those versions define that lab. For a new installation check the requirements of your chosen release rather than mixing instructions from different versions. Passwords in the document are examples; choose your own credentials.
Documents and official requirements
- Document received with course materials (PDF, Italian)
- Oracle XE 21c — Windows
- Oracle APEX 22.2 — requirements
- Oracle APEX 26.1 — requirements
The official APEX 26.1 page requires ORDS 26.1.1 or later and recommends installing ORDS before APEX for new installations: instructions change between releases. This editorial update does not include a new installation or a full validation of the APEX stack.