This repository contains the FLIGHTS-BOOKINGS model used as a base for examples for SQL Optimization in Oracle.
- Goal: reproducibility (same results as the book/classes).
- Status: the canonical artifact (e.g.
expdp/impdp) will be added when published as a Data Pump export.
- Goal: realistic variability. The load allows silent rejects by design to keep an unpredictable scenario.
- Usage: ideal for experimenting and finding (or not) emerging patterns, like in real environments.
- Create user (example):
create user flights identified by flights default tablespace users quota unlimited on users;
grant connect, resource to flights;- Run the installer (SQL*Plus / SQLcl):
@sql/install.sqlThe script executes:
- Object creation (
02_create_objects.sql) - Random load (
03_load_random.sql) - Minimal validation (
04_validate.sql)
The validator produces OK / WARN / FAIL.
- FAIL: redo load.
- WARN: dataset usable, but may limit some examples (volume/distribution).
Agreed threshold: FLIGHTS >= 30,000.