wget -qO- get.docker.com | bash
systemctl start docker
docker pull registry.cn-hangzhou.aliyuncs.com/lhrbest/oracle_11g_ee_lhr_11.2.0.4:2.0
docker run -itd --restart=always --name lhrora11204 -h lhrora11204 --shm-size=1G -p 1521:1521 --privileged=true lhrbest/oracle_11g_ee_lhr_11.2.0.4:2.0 init
docker exec -it lhrora11204 bash
su - oracle
lsnrctl start
sqlplus / as sysdba
startup
exit
lsnrctl status
echo $ORACLE_HOME
vi /etc/oratab
vi $ORACLE_HOME/bin/dbstart
vi /etc/rc.d/rc.local
su - oracle -c "/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/lsnrctl start"
su - oracle -c "/u01/app/oracle/product/11.2.0.4/dbhome_1/bin/dbstart"
chmod 755 /etc/rc.d/rc.local
$ sqlplus /nolog
SQL> connect / as sysdba
SQL> startup mount
SQL> alter system set db_recovery_file_dest_size = 75G scope=both
docker pull loliconneko/oracle-ee-11g
docker run -d -p 8080:8080 -p 1521:1521 --restart=always --name oracle11 loliconneko/oracle-ee-11g
docker run -d -p 8080:8080 -p 1521:1521 --restart=always --name oracle11 --shm-size=1G -v /package/oracle:/u01/app/oracle loliconneko/oracle-ee-11g
docker logs -f oracle11
docker run -d --shm-size 2GB -p 1524:1521 --restart=always --name oracle12 fluigfws/oracle12c
select * from global_name; -- 查看服务名(service name)
https://www.netnr.com/gist/code/4871611063472502154
https://hub.docker.com/r/loliconneko/oracle-ee-11g
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo "Asia/Shanghai" > /etc/timezone
docker exec -it oracle11 /bin/bash
docker exec -it oracle11 /bin/bash -c "sqlplus sys/oracle as sysdba"
sqlplus sys/oracle as sysdba;
shutdown immediate;
startup mount;
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
ALTER SYSTEM SET AQ_TM_PROCESSES=0;
alter database open;
ALTER DATABASE CHARACTER SET ZHS16GBK;
ALTER DATABASE character set INTERNAL_USE ZHS16GBK;
SELECT VALUE FROM Nls_Database_Parameters WHERE PARAMETER = 'NLS_CHARACTERSET';
select userenv('language') from dual;
select value from v$parameter where name = 'processes';
select value from v$parameter where name = 'sessions';
show parameter processes;
show parameter sessions
alter system set processes = 1000 scope = spfile;
alter system set sessions=1105 scope=spfile;
shutdown immediate;
startup;
create spfile from pfile;
startup
exit
sqlplus/as sysdba
startup
select status from v$instance;
shutdown immediate;
startup mount;
alter database noarchivelog;
alter system set log_archive_start=true scope=spfile;
alter database archivelog;
archive log list;
alter database open;
rman target /
delete archivelog all;
show parameter recover;
https://www.linuxidc.com/linux/2013-01/78286.htm
https://blog.csdn.net/ilifei/article/details/94129307
https://mp.weixin.qq.com/s/xet_HIUXSja5egI4OAPb-w