Getting Started
Get your Oracle 23ai database with APEX and ORDS running locally in just a few minutes. This guide will walk you through the complete setup process.
Prerequisites
Section titled “Prerequisites”Before you begin, make sure you have the following installed:
Required Software
Section titled “Required Software”- Docker or Podman (or any docker-compatible container runtime)
- docker-compose / podman-compose
- SQLcl with “sql” command in PATH
- Bash-compatible shell
Platform-Specific Notes
Section titled “Platform-Specific Notes”macOS Users
Section titled “macOS Users”If you’re using macOS, read the Podman setup guide for additional configuration steps.
Windows Users
Section titled “Windows Users”We recommend using WSL2 (Windows Subsystem for Linux) for the best experience.
Quick Setup
Section titled “Quick Setup”1. Clone the Repository
Section titled “1. Clone the Repository”git clone https://github.com/United-Codes/uc-local-apex-dev.gitcd uc-local-apex-dev
2. Make Scripts Executable
Section titled “2. Make Scripts Executable”chmod +x ./local-23ai.sh ./setup.sh ./scripts/*.sh
3. Run Setup
Section titled “3. Run Setup”# Setup the environment./setup.sh
# Start the containers (use podman-compose if using Podman)docker-compose up -d
4. Wait for APEX Installation
Section titled “4. Wait for APEX Installation”Monitor the ORDS container logs to see the installation progress:
docker logs --follow local-ords
Wait for these key messages:
INFO : Database connection established.
INFO : Installing APEX on your DB please be patient.
INFO : APEX has been installed.
INFO : APEX ADMIN password has configured as 'Welcome_1'.
5. Configure Database
Section titled “5. Configure Database”After APEX installation completes, run the post-installation script:
./scripts/after-first-db-start.sh
Optionally set up local SSL/HTTPS for ORDS.
6. PATH Configuration
Section titled “6. PATH Configuration”For easier script access, add the repository to your PATH:
# Add to ~/.zshrc or ~/.bashrcexport PATH="/Users/username/path/to/uc-local-apex-dev:$PATH"
Then use scripts from anywhere:
local-23ai.sh create-user newprojectlocal-23ai.sh backup-alllocal-23ai.sh stop
Next Steps
Section titled “Next Steps”Now that your environment is running:
- Create your first workspace:
local-23ai.sh create-user myproject
- Explore the available scripts:
local-23ai.sh --help
- Start developing your APEX applications
Troubleshooting
Section titled “Troubleshooting”ORDS Config Folder Not Writable
Section titled “ORDS Config Folder Not Writable”If you see APEX as unavailable and the ORDS logs show that the config folder is not writable:
chmod -R 777 ./ords-configdocker-compose restart ords
Access Your Environment
Section titled “Access Your Environment”Once setup is complete, you can access:
- APEX: http://localhost:8181/ords/apex
- ORDS Landing: http://localhost:8181/ords/\_/landing
- Database: ai:1521 (Service: FREEPDB1)
Default APEX Credentials
Section titled “Default APEX Credentials”- Username: admin or ADMIN
- Password: Welcome_1