Skip to content

Instantly share code, notes, and snippets.

@ochinchina
Last active June 3, 2020 06:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save ochinchina/d00f0953eece192c8f98 to your computer and use it in GitHub Desktop.
Save ochinchina/d00f0953eece192c8f98 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