美文网首页
docker:在docker上安装oracle11g

docker:在docker上安装oracle11g

作者: 淼哥1986 | 来源:发表于2020-04-06 19:44 被阅读0次

    时间略长

    • 拉镜像
    docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
    
    • 运行
    docker run -p 1521:1521 --name oracle_11g -d --restart=always registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
    
    • 进入容器
    docker exec -it 容器id /bin/bash
    
    • 切换root用户,密码:helowin
    vi /etc/profile
    export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
    export ORACLE_SID=helowin
    export PATH=$ORACLE_HOME/bin:$PATH
    
    • 刷新配置文件
    source /home/oracle/.bash_profile
    
    • 修改账户
    alter user system identified by oracle;
    alter user sys identified by oracle;
    

    相关文章

      网友评论

          本文标题:docker:在docker上安装oracle11g

          本文链接:https://www.haomeiwen.com/subject/kqciphtx.html