Created
June 5, 2017 13:09
-
-
Save halfninja/3d6135fcb05a8291a2ccfc14a996244b to your computer and use it in GitHub Desktop.
Local Oracle XE instance for development
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 volume container - doesn't run, just holds the data. | |
docker create \ | |
-v /u01/app/oracle/fast_recovery_area \ | |
-v /u01/app/oracle/oradata \ | |
--name oracle_data \ | |
wnameless/oracle-xe-11g | |
# run Oracle using the above shared container - you can destroy and recreate this and they | |
# will share the above data area. | |
docker run -d \ | |
-p 49160:22 \ | |
-p 49161:1521 \ | |
--name oracle \ | |
--volumes-from oracle_data \ | |
wnameless/oracle-xe-11g | |
# Connect to localhost:49161 (SID=xe) as system:oracle | |
# Create additional users as desired | |
# (see wnameless/oracle-xe-11g docs for more info and how to set up some init SQL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment