Created
July 4, 2020 09:25
-
-
Save laymonage/b40c032770adbae53b1b6029655f792f to your computer and use it in GitHub Desktop.
Oracle Database Docker image Django test setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER django IDENTIFIED BY django; | |
GRANT DBA TO django; | |
QUIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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