docker run -d --name oracle_11g -p 1521:1521 --privileged=true --restart=always -e TZ=Asia/Shanghai -v /opt/oracle/ggs:/opt/oracle/ggs -v /opt/oracle/oradata:/home/oracle/app/oracle/oradata -v /opt/oracle/flash_recovery_area/helowin:/home/oracle/app/oracle/flash_recovery_area/helowin akaiot/oracle_11g:latest
oracle镜像来自registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g 账户:root/helowin
docker exec -it oracle_11g /bin/bash source /home/oracle/.bash_profile
su root #password: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 /etc/profile
#切换回去 su oracle
sqlplus / as sysdba
alter user sys account unlock;
grant sysdba to sys;
create user Robert identified by Fyy19940722;
password Robert
grant resource to Robert;
grant create session to Robert;
grant CONNECT to Robert;
grant sysdba to Robert;