docker使用Oracle

    或者还原镜像:docker load < helowin_oracel11g.tar
2.查看镜像:docker images
REPOSITORY                                             TAG                 IMAGE ID            CREATED             SIZE
registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g   latest              3fa112fd3642        17 months ago       6.849 GB
 
3.运行:docker run -d -p 1521:1521 -p 8080:8080 --name 11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
4.进入bash:docker exec -it 11g bash
5.列出信息:ps ax
6.在shell中执行:
   export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
    export ORACLE_SID=helowin
    export PATH=$ORACLE_HOME/bin
    sqlplus / as sysdba
    alter user system identified by oracle;
    alter user sys identified by oracle;
    ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
7.至此,账号如下:
n sys/oralce
n system/oracle
n SID: helowin
Linux虚拟机中使用虚拟机的IP
 
原文地址:https://www.cnblogs.com/wanglao/p/11162810.html