###前提・実現したいこと
Virtualbox上のCentOSにDockerfileを使って
Oracle DBをインストールしようとしているのですが、
Oracleのインストールに失敗してしまいます。
###発生している問題・エラーメッセージ
下記のメッセージが出力されて、ORACLEのインストールが実行できません。
またエラーメッセージにある
「/u01/app/oracle/product/11.2.0/xe/config/log」を確認しようとしても
上記のログやoracleディレクトリ自体が存在しないので、エラーの詳細を確認できません。
RUN /etc/init.d/oracle-xe configure responseFile=${ORACLE_HOME}/config/scripts/xe.rsp ---> Running in eff89da49c69 Oracle Database 11g Express Edition Configuration ------------------------------------------------- This will configure on-boot properties of Oracle Database 11g Express Edition. The following questions will determine whether the database should be starting upon system boot, the ports it will use, and the passwords that will be used for database accounts. Press <Enter> to accept the defaults. Ctrl-C will abort. Specify the HTTP port that will be used for Oracle Application Express [8080]: Specify a port that will be used for the database listener [1521]: Specify a password to be used for database accounts. Note that the same password will be used for SYS and SYSTEM. Oracle recommends the use of different passwords for each database account. This can be done after initial configuration: Confirm the password: Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]: Starting Oracle Net Listener...Done Configuring database... Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details The command '/bin/sh -c /etc/init.d/oracle-xe configure responseFile=${ORACLE_HOME}/config/scripts/xe.rsp' returned a non-zero code: 1
###該当のソースコード
Dockerfile
1ENV ORACLE_HOME /u01/app/oracle/product/11.2.0/xe 2 3ADD docker/config ${ORACLE_HOME}/config/scripts/ 4RUN chown -R oracle:dba ${ORACLE_HOME} \ 5 /tmp/.oracle 6RUN chmod 755 ${ORACLE_HOME}/config/scripts/*.ora \ 7 ${ORACLE_HOME}/config/scripts/xe.rsp \ 8 /tmp/.oracle 9# configure 10RUN /etc/init.d/oracle-xe configure responseFile=${ORACLE_HOME}/config/scripts/xe.rsp
###試したこと
・dockerサービスの再起動して実行
・rootユーザーで実行
・自分で作成したユーザーで実行
・/etc/hostsに「127.0.0.1 ora.localdomain」を追加して実行
・swapサイズを2GBから4GBに変更して実行
・ディスクサイズを16GBから32GBに変更して実行
・Oracle XEユーザーを追加して実行
・Dockerを再インストールして実行
・Look into /u01/app/oracle/product/11.2.0/xe/config/logを閲覧できないか
Dockerfileの該当箇所の前後に「cp」や「>」でログを/homeに出力して実行
→ログが出力されず
###補足情報(言語/FW/ツール等のバージョンなど)
Docker version 1.12.6, build 85d7426/1.12.6
CentOS7
VirtualBox 5.2.0
回答1件
あなたの回答
tips
プレビュー