
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Oracle 12
user: sys pass: Oradoc_db1 SID: ORCLCDB ports: 1521, 5500
-Se ejecuta este alter para permitir conexiones desde fuera del container por medio de un manejador de BD:
[***] community.oracle.com ORA-28009 connection as SYS should be as SYSDBA... | Oracle Community I am getting the above error when trying to create my Master repository using an Oracle 10g database. I am entering SYS as the user, with the correct show parameter O7_DICTIONARY_ACCESSIBILITY
alter system set O7_dictionary_accessibility=TRUE scope=spfile;
Oracle Database Server Docker Image Documentation Oracle Database Server 12c R2 is an industry leading relational database server. The Oracle Database Server Docker Image contains the Oracle Database Server 12.2.0.1 Enterprise Edition running on Oracle Linux 7. This image contains a default database in a multitenant configuration with one pdb.
For more information on Oracle Database Server 12c R2 refer to http://docs.oracle.com/en/database/
Using this image Accepting the terms of service From the store.docker.com website accept Terms of Service for Oracle Database Enterprise Edition.
Login to Docker Store Login to Docker Store with your credentials
$ docker login
Starting an Oracle Database Server instance Starting an Oracle database server instance is as simple as executing
$ docker run -d -it --name
where
The database server is ready to use when the STATUS field shows (healthy) in the output of docker ps.
Connecting to the Database Server Container The default password to connect to the database with sys user is Oradoc_db1.
Connecting from within the container The database server can be connected to by executing SQL*Plus,
$ docker exec -it
Connecting from outside the container The database server exposes port 1521 for Oracle client connections over SQLNet protocol and port 5500 for Oracle XML DB. SQLPlus or any JDBC client can be used to connect to the database server from outside the container.
To connect from outside the container start the container with -P or -p option as,
$ docker run -d -it --name
option -P indicates the ports are allocated by Docker. The mapped port can be discovered by executing
$ docker port
Using this
ORCLCDB=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=
$ sqlplus sys/Oradoc_db1@ORCLCDB as sysdba
Custom Configurations The Oracle database server container also provides custom configuration parameters for starting up the container. All the custom configuration parameters are optional. The following list of custom configuration parameters can be provided in the ENV file (ora.conf).
DB_SID This parameter changes the ORACLE_SID of the database. The default value is set to ORCLCDB.
DB_PDB This parameter modifies the name of the PDB. The default value is set to ORCLPDB1.
DB_MEMORY This parameter sets the memory requirement for the Oracle server. This value determines the amount of memory to be allocated for SGA and PGA. The default value is set to 2GB.
DB_DOMAIN This parameter sets the domain to be used for database server. The default value is localdomain.
To start an Oracle database server with custom configuration parameters
$ docker run -d -it --name
Ensure custom values for DB_SID, DB_PDB and DB_DOMAIN are updated in the tnsnames.ora.
Caveats This Docker image has the following restrictions.
Supports a single instance database. Dataguard is not supported. Database options and patching are not supported. Changing default password for SYS user The Oracle database server is started with a default password Oradoc_db1. The password used during the container creation is not secure and should be changed. To change the password connect to the database with SQL*Plus and execute
alter user sys identified by
Resource Requirements The minimum requirements for the container is 8GB of disk space and 2GB of memory.
Database Logs The database alert log can be viewed with
$ docker logs
where
Reusing existing database This Oracle database server image uses Docker data volumes to store data files, redo logs, audit logs, alert logs and trace files. The data volume is mounted inside the container at /ORCL. To start a database with a data volume using docker run command,
$ docker run -d -it --name
OracleDBData is the data volume that is created by Docker and mounted inside the container at /ORCL. The persisted data files can be reused with another container by reusing the OracleDBData data volume.
Using host system directory for data volume To use a directory on the host system for the data volume,
$ docker run -d -it --name
where /data/OracleDBData is a directory in the host system.
Oracle Database Server 12.2.0.1 Enterprise Edition Slim Variant The Slim Variant (12.2.0.1-slim tag) of EE has reduced disk space (4GB) requirements and a quicker container startup. This image does not support the following features - Analytics, Oracle R, Oracle Label Security, Oracle Text, Oracle Application Express and Oracle DataVault. To use the slim variant
$ docker run -d -it --name
where
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 rafaelalexanderesquivel/oracle 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: