Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nethoncho/24a5126c440506e1edf590810867c585 to your computer and use it in GitHub Desktop.
Save nethoncho/24a5126c440506e1edf590810867c585 to your computer and use it in GitHub Desktop.
how to use wnameless/oracle-xe-11g docker image

##pull wnameless/oracle-xe-11g

$ sudo docker pull wnameless/oracle-xe-11g

##start the wnameless/oracle-xe-11g

$ sudo docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g

##ssh to the container and use sqlplus

$ ssh root@localhost -p 49160
root@localhost's password: admin

if fail to ssh to the oracle XE container, execute following commands to enter the container:

$ docker exec -it container_id /bin/bash

after login, you can run the sqlplus

$ su - oracle
$ sqlplus
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jun 22 02:59:36 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Enter user-name:system
Enter password:oracle
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment