docker orac
Download MirrorDefault Amsterdam Ashburn Chuncheon Frankfurt Hyderabad Jeddah London Melbourne Montreal Mumbai Osaka Phoenix Sao Paulo Seoul Sydney Tokyo Toronto Zurich
Tag | OS/Architecture | Size | Pull Command | Last Updated | Image ID |
---|---|---|---|---|---|
19.3.0.0 | linux/amd64 | 3.38 GB | docker pull container-registry.oracle.com/database/enterprise:19.3.0.0 | 9 months ago | 291fd8c7958b |
latest | linux/amd64 | 3.48 GB | docker pull container-registry.oracle.com/database/enterprise:latest | 9 months ago | 35e92315f1f8 |
21.3.0.0 | linux/amd64 | 3.48 GB | docker pull container-registry.oracle.com/database/enterprise:21.3.0.0 | 9 months ago | 35e92315f1f8 |
19.19.0.0 | linux/arm64 | 3.01 GB | docker pull container-registry.oracle.com/database/enterprise:19.19.0.0 | 10 months ago | 979416fa8cea |
12.2.0.1 | linux/amd64 | 2.76 GB | docker pull container-registry.oracle.com/database/enterprise:12.2.0.1 | 6.8 years ago | 12a359cd0528 |
12.2.0.1-slim | linux/amd64 | 1.5 GB | docker pull container-registry.oracle.com/database/enterprise:12.2.0.1-slim | 6.8 years ago | 27c9559d36ec |
12.1.0.2 | linux/amd64 | 4.65 GB | docker pull container-registry.oracle.com/database/enterprise:12.1.0.2 | 6.9 years ago | db889cfe1e90 |
本地盘数据目录挂载
chmod 777 /oracledata
docker run -d –name oracle \
-p 1521:1521 -p 5500:5500 \
-e ORACLE_SID=orac \
-e ORACLE_PDB=dbname \
-e ORACLE_PWD=orac \
-e ENABLE_ARCHIVELOG=true \
-v /oracledata:/opt/oracle/oradata \
registry.oracle.com/database/enterprise:21.3.0.0
docker run -d –name oracle –restart=unless-stopped -p 1521:1521 -p 5500:5500 -e ORACLE_SID=orac -e ORACLE_PDB=dbname -e ORACLE_PWD=orac -e ORACLE_CHARACTERSET=”AL32UTF8″ -e ENABLE_ARCHIVELOG=true -v /opt/unisound/orcl:/opt/oracle/oradata registry.oracle.com/database/enterprise:21.3.0.0
需要注意:
-e ORACLE_CHARACTERSET=
这个如果调整,可能会有 [FATAL] [DBT-11151] Character set specified (SIMPLIFIED CHINESE_CHINA.ZHS16GBK) is invalid.
这个问题最好oracle完成后,再重新配置字符集。
另外一个错误,无法startup,因为文件不存在。
报错如下:
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file ‘/opt/oracle/dbs/initorac.ora’
进入容器:
bash-4.2$ pwd
/opt/oracle/dbs
bash-4.2$
大小写有问题 initORAC.ora 复制为 initorac.ora
bash-4.2$ cat initORAC.ora
SPFILE=’/opt/oracle/dbs/spfileORAC.ora’
bash-4.2$ cp initORAC.ora initorac.ora