質問編集履歴

3

試したことを修正

2017/11/29 04:34

投稿

KANI-san
KANI-san

スコア7

test CHANGED
File without changes
test CHANGED
@@ -112,7 +112,7 @@
112
112
 
113
113
  ・rootユーザーで実行
114
114
 
115
- ・自分で作成したユーザー(ユーザー名:nri)で実行
115
+ ・自分で作成したユーザーで実行
116
116
 
117
117
  ・/etc/hostsに「127.0.0.1 ora.localdomain」を追加して実行
118
118
 

2

エラーメッセージと対応内容を更新

2017/11/29 04:34

投稿

KANI-san
KANI-san

スコア7

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,8 @@
1
1
  ###前提・実現したいこと
2
2
 
3
+ Virtualbox上のCentOSにDockerfileを使って
4
+
3
- Dockerfileを使ってOracle DBをインストールしようとしているのですが、
5
+ Oracle DBをインストールしようとしているのですが、
4
6
 
5
7
  Oracleのインストールに失敗してしまいます。
6
8
 
@@ -22,13 +24,55 @@
22
24
 
23
25
  ```
24
26
 
27
+ RUN /etc/init.d/oracle-xe configure responseFile=${ORACLE_HOME}/config/scripts/xe.rsp
28
+
29
+ ---> Running in eff89da49c69
30
+
31
+
32
+
33
+ Oracle Database 11g Express Edition Configuration
34
+
35
+ -------------------------------------------------
36
+
37
+ This will configure on-boot properties of Oracle Database 11g Express
38
+
39
+ Edition. The following questions will determine whether the database should
40
+
41
+ be starting upon system boot, the ports it will use, and the passwords that
42
+
43
+ will be used for database accounts. Press <Enter> to accept the defaults.
44
+
45
+ Ctrl-C will abort.
46
+
47
+
48
+
49
+ Specify the HTTP port that will be used for Oracle Application Express [8080]:
50
+
51
+ Specify a port that will be used for the database listener [1521]:
52
+
53
+ Specify a password to be used for database accounts. Note that the same
54
+
55
+ password will be used for SYS and SYSTEM. Oracle recommends the use of
56
+
57
+ different passwords for each database account. This can be done after
58
+
59
+ initial configuration:
60
+
61
+ Confirm the password:
62
+
63
+
64
+
65
+ Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:
66
+
25
67
  Starting Oracle Net Listener...Done
26
68
 
27
69
  Configuring database...
28
70
 
29
- Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details
71
+ Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details
30
72
 
31
- The command 'bin/sh -c /etc/init.d/oracle-xe configure responseFile=${ORACLE_HOME}/config/scripts/xe.rsp' returned a non-zero code: 1
73
+ The command '/bin/sh -c /etc/init.d/oracle-xe configure responseFile=${ORACLE_HOME}/config/scripts/xe.rsp' returned a non-zero code: 1
74
+
75
+
32
76
 
33
77
  ```
34
78
 
@@ -64,16 +108,34 @@
64
108
 
65
109
  ###試したこと
66
110
 
67
- rootユザーでbuildを実行
111
+ ・dockerビスの再起動して実行
68
112
 
69
- ユーザーに管理者権限を与えて、buildを実行
113
+ ・rootユーザー実行
70
114
 
71
- /etc/hostsに「127.0.0.1 ora.localdomain」を追加
115
+ ・自分で作成したユーザー(ユーザー名:nri)で実行
72
116
 
117
+ ・/etc/hostsに「127.0.0.1 ora.localdomain」を追加して実行
73
118
 
119
+ ・swapサイズを2GBから4GBに変更して実行
120
+
121
+ ・ディスクサイズを16GBから32GBに変更して実行
122
+
123
+ ・Oracle XEユーザーを追加して実行
124
+
125
+ ・Dockerを再インストールして実行
126
+
127
+ ・Look into /u01/app/oracle/product/11.2.0/xe/config/logを閲覧できないか
128
+
129
+  Dockerfileの該当箇所の前後に「cp」や「>」でログを/homeに出力して実行
130
+
131
+  →ログが出力されず
74
132
 
75
133
 
76
134
 
77
135
  ###補足情報(言語/FW/ツール等のバージョンなど)
78
136
 
79
137
  Docker version 1.12.6, build 85d7426/1.12.6
138
+
139
+ CentOS7
140
+
141
+ VirtualBox 5.2.0

1

初心者マークの追加

2017/11/29 01:26

投稿

KANI-san
KANI-san

スコア7

test CHANGED
File without changes
test CHANGED
File without changes