Académique Documents
Professionnel Documents
Culture Documents
Desarrollo:
Primero descargamos mySQL
Host: 127.0.0.1
User: root
Password: secret
Puerto: 3306
Usamos el comando docker images para ver las imágenes que tenemos, vemos que
la imágen ocupa 2.23 GB en disco, que no es poco.
# docker images
REPOSITORY TAG IMAGE ID
CREATED SIZE
wnameless/oracle-xe-11g latest f794779ccdb9 7
weeks ago 2.23GB
Arrancaremos un contenedor con varias opciones activadas, acceso por SSH (22),
acceso al motor desde fuera (1521), permitiremos que se conecten al servidor desde
otros equipos de la red, solicitará clave para gestionarlo, desactivamos el I/O
Asincrónico de disco y activamos el usuario XDB.
# nmap 172.17.0.2
Ahora nos conectamos mediante SSh y verificamos que estamos usando un Ubuntu
Linux. (la clave de root es admin)
# ssh 172.17.0.2
The authenticity of host '172.17.0.2 (172.17.0.2)' can't be established.
root@172.17.0.2's password:
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
# passwd
# ps -A | grep oracle
152 ? 00:00:00 oracle
154 ? 00:00:00 oracle
156 ? 00:00:00 oracle
160 ? 00:00:00 oracle
162 ? 00:00:00 oracle
164 ? 00:00:00 oracle
166 ? 00:00:00 oracle
168 ? 00:00:00 oracle
170 ? 00:00:00 oracle
172 ? 00:00:00 oracle
174 ? 00:00:00 oracle
176 ? 00:00:00 oracle
178 ? 00:00:00 oracle
180 ? 00:00:00 oracle
182 ? 00:00:00 oracle
184 ? 00:00:00 oracle
186 ? 00:00:00 oracle
188 ? 00:00:00 oracle
190 ? 00:00:00 oracle
192 ? 00:00:00 oracle
200 ? 00:00:01 oracle
202 ? 00:00:00 oracle
218 ? 00:00:00 oracle
228 ? 00:00:00 oracle
230 ? 00:00:00 oracle
736 ? 00:00:00 oracle
740 ? 00:00:00 oracle
http://172.17.0.2:8080/
# ssh 172.17.0.2
root@172.17.0.2's password:
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.9.65-1-MANJARO x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Last login: Tue Nov 28 08:11:21 2017 from 172.17.0.1
root@46a4d1de6867:~# sqlplus
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 28 08:25:08 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter user-name: system
Enter password:
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production