File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
chown -R oracle:dba /u01/app/oracle
5
5
# Update hostname
6
6
sed -i -E " s/HOST = [^)]+/HOST = $HOSTNAME /g" /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
7
+ echo " export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe" >> /etc/bash.bashrc
8
+ echo " export PATH=$ORACLE_HOME /bin:$PATH " >> /etc/bash.bashrc
9
+ echo " export ORACLE_SID=XE" >> /etc/bash.bashrc
7
10
8
11
case " $1 " in
9
12
' ' )
@@ -12,9 +15,6 @@ case "$1" in
12
15
echo " found files in /u01/app/oracle/oradata Using them instead of initial database"
13
16
else
14
17
echo " Database not initialized. Initializing database."
15
- echo " export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe" >> /etc/bash.bashrc
16
- echo " export PATH=$ORACLE_HOME /bin:$PATH " >> /etc/bash.bashrc
17
- echo " export ORACLE_SID=XE" >> /etc/bash.bashrc
18
18
printf 8080\\ n1521\\ noracle\\ noracle\\ ny\\ n | /etc/init.d/oracle-xe configure
19
19
echo " Database initialized. Please visit http://#containeer:8080/apex to proceed with configuration"
20
20
fi
You can’t perform that action at this time.
0 commit comments