Skip to content

Command Reference

Every feature of this project is available as a single command through the local-26ai.sh wrapper. This page lists all of them. Run local-26ai.sh --help to see the same overview in your terminal.

Terminal window
local-26ai.sh <command> [arguments]
CommandDescription
startStart the database and ORDS containers.
stopGracefully shut down the database, then stop the containers.

See Common Tasks → Managing Containers.

CommandDescription
create-user <name>Create a database schema and APEX workspace with all development grants. Use --skip-workspace for a schema only, --compress to store its data compressed.
clear-schema <name>Drop all objects in a schema, keeping the schema itself. Great for re-testing install scripts. -y skips the confirmation.
drop-user <name>Completely remove a schema including its tablespace and datafile. -y skips the confirmation.

See Creating Users.

CommandDescription
backup-allDataPump-export every schema including APEX workspaces, applications, and ORDS modules to ./backups/export.
backup-user <name>DataPump-export a single schema including its APEX workspace and applications.
import-backup <name>Restore a schema from a previous backup. Creates the user first if it doesn’t exist.
import-datapump <name> [-rs <target>]Import a DataPump dump for a schema. With -rs the dump is remapped into a different schema name.
import-allImport every export file found in ./backups/import — useful for bulk migration.
sync-backups-folderCopy ./backups/import into the container’s DataPump directory and pull new exports back out.
fix-ws-group-idsRemove problematic group IDs from APEX workspace export files in ./backups/import so they re-import cleanly.

See Backups and Common Tasks → Workspace Import/Export.

CommandDescription
test-app-install <file.sql>Install an APEX application export into the clean UC_TESTINSTALL_1 schema and report object counts, invalid objects, and dependency scan results. -y skips the confirmation.
test-script-install <file.sql>Run any SQL script in the clean UC_TESTINSTALL_1 schema and report object counts and invalid objects. -y skips the confirmation.

See Install Apps or Scripts.

CommandDescription
used-spaceShow database space usage against the 12GB Free-edition limit, per tablespace.
shrink-spaceShrink tablespaces and datafiles to reclaim unused space.
compress-space <name>Enable Advanced Compression on a schema’s tablespace, rebuild its objects compressed, and return the freed space to the OS. -y skips the confirmation.

See Common Tasks → Maintenance Tasks.

CommandDescription
after-first-db-startInstall APEX and apply dev-friendly defaults. Run automatically by install.sh — you only need it for manual setups.
upgrade-apexDownload the latest APEX version, run the installer, copy the images, and reapply workspace settings.
unexpire-accountsUnlock and unexpire APEX/ORDS accounts — the fix for “Account Is Locked” messages.
disable-password-expirationStop database account passwords from expiring in the future.
disable-archive-logsDisable archive logging to save disk space (recommended for dev).
create-self-signed-certificatesCreate self-signed SSL certificates so ORDS serves HTTPS on port 8443. Run with sudo.
install-dbms-cloudInstall the DBMS_CLOUD package into the database.

See Upgrade APEX and Common Tasks.