First, open the server security group port

  1. To the oracle database mirroring docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g

  2. –restart=always docker run -p 1521:1521 –name ORACLE_11g -d –restart=always registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g

  3. Docker start ORACLE_11g

  4. Docker exec it orACLE_11g bash Docker exec it orACLE_11g bash

  5. Switch to the root user mode: su root Enter the password helowin

  6. Edit profile file configuration ORACLE environment variables export ORACLE_HOME = / home/ORACLE/app/ORACLE/product / 11.2.0 / dbhome_2 export ORACLE_SID = helowin export PATH= ORACLEHOME/bin:ORACLE_HOME/bin:ORACLEHOME/bin:PATH

  7. Restart the profile service source /etc/profile

  8. Set up the SQLPLUS soft connection ln -S $ORACLE_HOME/bin/sqlplus /usr/bin

  9. Switch to the Oracle user and change the oracle account password

    su oracle

    Log in to sqlPlus and change the passwords of the sys and system users

    sqlplus /nolog
    conn /as sysdba
    alter user system identified by oracle;
    alter user sys identified by oracle;
    ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
    Copy the code

Reprinted from blog.csdn.net/qq101086288…