File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ apt-get update
10
10
# Prepare to install Oracle
11
11
apt-get install -y libaio1 net-tools bc &&
12
12
ln -s /usr/bin/awk /bin/awk &&
13
- mkdir /var/lock/subsys &&
13
+ mkdir -p /var/lock/subsys &&
14
14
mv /assets/chkconfig /sbin/chkconfig &&
15
15
chmod 755 /sbin/chkconfig &&
16
16
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ service oracle-xe start
55
55
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
56
56
export PATH=$ORACLE_HOME /bin:$PATH
57
57
export ORACLE_SID=XE
58
+ export ORACLE_DATA=/u01/app/oracle/oradata/$ORACLE_SID
58
59
59
60
60
61
if [ ! -e " /u01/app/oracle/initialized.id" ] ; then
@@ -79,6 +80,12 @@ if [ ! -e "/u01/app/oracle/initialized.id" ] ; then
79
80
80
81
fi
81
82
83
+ echo " Setting db_create_file_dest param..."
84
+ if ! echo " ALTER SYSTEM SET db_create_file_dest = '$ORACLE_DATA ';" | sqlplus -s SYSTEM/oracle; then
85
+ echo " error setting db_create_file_dest param"
86
+ exit 1
87
+ fi
88
+
82
89
if [ -z " $ORACLE_PASSWORD " ] ; then
83
90
echo " Warning: using default password!!. Set ORACLE_PASSWORD environment variable to change it"
84
91
export ORACLE_PASSWORD=" oracle" ;
You can’t perform that action at this time.
0 commit comments