With the Oracle Database 23ai comes a new deployment option, the free Autonomous Database Free Container Image. It gives developers the option to develop with an Autonomous Database even when not connected to the internet, eg. when travelling. This post shows how to set it up on Oracle Linux 9.4, in my case it is running in a VirtualBox VM on my Windows desktop PC. For details, see the official documentation, this is only meant as a quick runthrough.
Following the documentation, start with
podman machine init
podman machine set --cpus 4 --memory 8192
podman machine start
Maybe it is just my system, but when running podman machine init I get the error qemu-system-x86_64: executable file not found in $PATH. A post on forums.oracle.com described the following solution, which worked on my system:
sudo ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64
The podman command should run now, so follow the steps from the documentation.
podman pull container-registry.oracle.com/database/adb-free:latest-23ai podman images container-registry.oracle.com/database/adb-free:latest-23ai
podman logs adb-free
.podman run -d \ -p 1521:1522 \ -p 1522:1522 \ -p 8443:8443 \ -p 27017:27017 \ -e WORKLOAD_TYPE='ATP' \ -e WALLET_PASSWORD=*** \ -e ADMIN_PASSWORD=*** \ --cap-add SYS_ADMIN \ --device /dev/fuse \ --name adb-free \ container-registry.oracle.com/database/adb-free:latest-23ai
podman cp adb-free:/u01/app/oracle/wallets/tls_wallet ~/tls_wallet zip adb-free-wallet.zip tls_wallet/*