Skip to content

Migrate to 25.3

Make sure you are on 25.2 before you start. Do the previous migrations if not.

  • DB 23.7 -> 23.8 (DB files are compatible)
  • ORDS 25.1
    • Includes migration from ords-developer to the ords image because of deprecation.
  • New scripts
    • test-script-install to test SQL scripts in a clean environment
    • used-space to check the used space of the database
    • shrink-space to reclaim space from tablespaces

Make sure your database is running:

Terminal window
docker ps

Otherwise start the database:

Terminal window
docker-compose up -d

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.

Terminal window
local-23ai.sh backup-all

Now check the backups/export directory if the backup was created successfully.

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.

Terminal window
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
Terminal window
docker cp local-ords:/opt/oracle/apex/24.1.0/images .
mv images apex-images
rm .env.ords
rm -r ords-secrets
echo "DBSERVICENAME=\"FREEPDB1\"" >>.env
echo "DBHOST=\"23ai\"" >>.env
echo "DBPORT=\"1521\"" >>.env
echo "FORCE_SECURE=\"false\"" >>.env
echo "DEBUG=\"true\"" >>.env
Terminal window
local-23ai.sh stop
Terminal window
git fetch
git checkout 25-3
Terminal window
chmod +x ./local-23ai.sh ./setup.sh ./scripts/*.sh
Terminal window
docker-compose up -d
Terminal window
docker image ls
docker image rm {image_name}