Migrate to 25.3
Make sure you are on 25.2 before you start. Do the previous migrations if not.
Changes
Section titled “Changes”- DB 23.7 -> 23.8 (DB files are compatible)
- ORDS 25.1
- Includes migration from
ords-developer
to theords
image because of deprecation.
- Includes migration from
- New scripts
test-script-install
to test SQL scripts in a clean environmentused-space
to check the used space of the databaseshrink-space
to reclaim space from tablespaces
Migration
Section titled “Migration”Make sure your database is running:
docker ps
Otherwise start the database:
docker-compose up -d
Backup the database
Section titled “Backup the database”This will backup all schemas and APEX workspaces that where created with the local-23ai.sh create-user
script. If you have additional schemas or workspaces you need to backup them manually.
local-23ai.sh backup-all
Now check the backups/export
directory if the backup was created successfully.
Optional: backup the oradata volume
Section titled “Optional: backup the oradata volume”Optionally also back up the oradata files. This can take a moment, mine is about 10GB big. Make sure that ./backups/oradata
does not exist.
source ./scripts/util/load_env.sh
docker exec $CONTAINER_NAME bash -c "echo 'shutdown immediate;exit' | sqlplus / as sysdba && exit"
docker cp $CONTAINER_NAME:/opt/oracle/oradata ./backups/oradata
Copy APEX images
Section titled “Copy APEX images”docker cp local-ords:/opt/oracle/apex/24.1.0/images .mv images apex-imagesrm .env.ordsrm -r ords-secretsecho "DBSERVICENAME=\"FREEPDB1\"" >>.envecho "DBHOST=\"23ai\"" >>.envecho "DBPORT=\"1521\"" >>.envecho "FORCE_SECURE=\"false\"" >>.envecho "DEBUG=\"true\"" >>.env
Stop the containers
Section titled “Stop the containers”local-23ai.sh stop
Switch branch
Section titled “Switch branch”git fetchgit checkout 25-3
Give permission to all new scripts
Section titled “Give permission to all new scripts”chmod +x ./local-23ai.sh ./setup.sh ./scripts/*.sh
Start the containers
Section titled “Start the containers”docker-compose up -d
Optional: delete old images
Section titled “Optional: delete old images”docker image lsdocker image rm {image_name}