File tree Expand file tree Collapse file tree 5 files changed +44
-6
lines changed Expand file tree Collapse file tree 5 files changed +44
-6
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,9 @@ EXPOSE 1521
18
18
EXPOSE 8080
19
19
VOLUME ["/u01/app/oracle" ]
20
20
21
+ ENV processes 500
22
+ ENV sessions 555
23
+ ENV transactions 610
24
+
21
25
ADD entrypoint.sh /
22
26
ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -17,6 +17,19 @@ Run with data on host and reuse it:
17
17
18
18
docker run -d -p 8080:8080 -p 1521:1521 -v /my/oracle/data:/u01/app/oracle sath89/oracle-xe-11g
19
19
20
+ Run with customization of processes, sessions, transactions
21
+ This customization is needed on the database initialization stage. If you are using mounted folder with DB files this is not used:
22
+
23
+ ##Consider this formula before customizing:
24
+ #processes=x
25
+ #sessions=x*1.1+5
26
+ #transactions=sessions*1.1
27
+ docker run -d -p 8080:8080 -p 1521:1521 -v /my/oracle/data:/u01/app/oracle\
28
+ -e processes=1000 \
29
+ -e sessions=1105 \
30
+ -e transactions=1215 \
31
+ sath89/oracle-xe-11g
32
+
20
33
Connect database with following setting:
21
34
22
35
hostname: localhost
Original file line number Diff line number Diff line change @@ -25,9 +25,26 @@ case "$1" in
25
25
ln -s /u01/app/oracle/dbs /u01/app/oracle-product/11.2.0/xe/dbs
26
26
else
27
27
echo " Database not initialized. Initializing database."
28
+
29
+ printf " Setting up:\nprocesses=$processes \nsessions=$sessions \ntransactions=$transactions \n"
30
+ echo " If you want to use different parameters set processes, sessions, transactions env variables and consider this formula:"
31
+ printf " processes=x\nsessions=x*1.1+5\ntransactions=sessions*1.1\n"
32
+
28
33
mv /u01/app/oracle-product/11.2.0/xe/dbs /u01/app/oracle/dbs
29
34
ln -s /u01/app/oracle/dbs /u01/app/oracle-product/11.2.0/xe/dbs
35
+
36
+ # Setting up processes, sessions, transactions.
37
+ sed -i -E " s/processes=[^)]+/processes=$processes /g" /u01/app/oracle/product/11.2.0/xe/config/scripts/init.ora
38
+ sed -i -E " s/processes=[^)]+/processes=$processes /g" /u01/app/oracle/product/11.2.0/xe/config/scripts/initXETemp.ora
39
+
40
+ sed -i -E " s/sessions=[^)]+/sessions=$sessions /g" /u01/app/oracle/product/11.2.0/xe/config/scripts/init.ora
41
+ sed -i -E " s/sessions=[^)]+/sessions=$sessions /g" /u01/app/oracle/product/11.2.0/xe/config/scripts/initXETemp.ora
42
+
43
+ sed -i -E " s/transactions=[^)]+/transactions=$transactions /g" /u01/app/oracle/product/11.2.0/xe/config/scripts/init.ora
44
+ sed -i -E " s/transactions=[^)]+/transactions=$transactions /g" /u01/app/oracle/product/11.2.0/xe/config/scripts/initXETemp.ora
45
+
30
46
printf 8080\\ n1521\\ noracle\\ noracle\\ ny\\ n | /etc/init.d/oracle-xe configure
47
+
31
48
echo " Database initialized. Please visit http://#containeer:8080/apex to proceed with configuration"
32
49
fi
33
50
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ sga_target=601620480
38
38
###########################################
39
39
# Sessions
40
40
###########################################
41
- sessions=20
42
-
41
+ processes=500
42
+ sessions=555
43
+ transactions=610
44
+
43
45
###########################################
44
46
# Security and Auditing
45
47
###########################################
@@ -56,4 +58,4 @@ shared_servers=4
56
58
# System Managed Undo and Rollback Segments
57
59
###########################################
58
60
undo_management=AUTO
59
- undo_tablespace=UNDOTBS1
61
+ undo_tablespace=UNDOTBS1
Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ sga_target=601620480
35
35
###########################################
36
36
# Sessions
37
37
###########################################
38
- sessions=20
39
-
38
+ processes=500
39
+ sessions=555
40
+ transactions=610
41
+
40
42
###########################################
41
43
# Security and Auditing
42
44
###########################################
@@ -53,4 +55,4 @@ dispatchers="(PROTOCOL=TCP) (SERVICE=XEXDB)"
53
55
###########################################
54
56
undo_management=AUTO
55
57
undo_tablespace=UNDOTBS1
56
- _no_recovery_through_resetlogs=true
58
+ _no_recovery_through_resetlogs=true
You can’t perform that action at this time.
0 commit comments