Skip to content

Instantly share code, notes, and snippets.

@laymonage
Created July 4, 2020 09:25
Show Gist options
  • Save laymonage/b40c032770adbae53b1b6029655f792f to your computer and use it in GitHub Desktop.
Save laymonage/b40c032770adbae53b1b6029655f792f to your computer and use it in GitHub Desktop.
Oracle Database Docker image Django test setup
CREATE USER django IDENTIFIED BY django;
GRANT DBA TO django;
QUIT
until
echo "SELECT username FROM DBA_USERS WHERE username = 'DJANGO';" \
| sqlplus -S sys/oracle@//localhost:1521/xe as sysdba \
| grep DJANGO
do
echo "Waiting for Oracle Database..."
sleep 5
done
echo "Oracle Database is ready."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment