This scripts simplify installation with 'orarun' package, fixing few minor problems and automating all necessary steps. Next release of 'orarun' can eliminate any need in these scripts.
This scripts implement all operations, described in original document from SUSE Linux
I describe installation of 64bit Oracle, but all below (including scripts) can work for 32 bit Linux and Oracle without changes (except platform name, of cource).
You will need for installation (for 64bit installation):
# # This is configuration file for install # RPMs=`/bin/pwd`/../RPMs ORACLE10=`/bin/pwd`/../../Oracle10-amd64/DB ORA10CD1=$ORACLE10/Disk1 RPMORARUN=$RPMs/orarun-1.8-109.5.i586.rpm ORAID=10.1.0 # ORA10CD1=$ORACLE10/Disk1 RPMORARUN=$RPMs/orarun-1.8-109.5.i586.rpm SID=test
#!/bin/bash # Install orarun package # . CONFIG.sh rpm -U $RPMORARUN passwd oracle chsh -s /bin/bash oracle
#!/bin/bash # # Edit /etc/sysconfig/oracle.sh and oracle.sh # . CONFIG.sh cd /etc/profile.d for i in oracle.sh oracle.sh do test -f $i-orig || cp $i $i-orig sed "s/9ir2/$ORAID/g;s+2.2.5+2.4.21+g;s/mydb/$SID/g;" $i > $i- && cp $i- $i && rm $i- chown oracle $i ls -l $i done
#!/bin/bash # # Run rcoracle to set up kernel parameters # . CONFIG.sh rcoracle start
#!/bin/bash # Check oracle user setting # . CONFIG.sh if [ ! -x $ORA10CD1/runInstaller ] then echo -e "\33[31m *** Wrong oracle disk location - no file $ORA10CD1/runInstaller found \33[30m" exit 1 fi echo "*** CHECK ORACLE VARIABLES *** " sux - -c "env" oracle | grep ORACLE
#!/bin/bash # Run oracle installer as ORACLE user # . CONFIG.sh sux - -c "cd $ORA10CD1 && ./runInstaller" oracle echo -e "\33[33m *** Now , install oracle. Use defaults. ***\33[30m" echo -e "\33[33m *** Create database instance $SID ***\33[30m" echo -e "\33[33m !!! Run 042-run-rootsh.sh when requested to run orainstRoot.sh. !!! \33[30m"
#!/bin/bash # # Running orainstallRoot.sh for Oracle Inventory # . CONFIG.sh sh ~oracle/oraInventory/orainstRoot.sh
#!/bin/bash # # Running orainstallRoot.sh for Oracle Inventory # . CONFIG.sh sh ~oracle/product/$ORAID/root.sh
#!/bin/sh # # Edit /etc/sysconfig/oracle AND /etc/init.d/oracle after all # . CONFIG.sh cd /etc/sysconfig mkdir -p ORIG test -f ORIG/oracle || cp oracle ORIG/oracle sed '/START_ORACLE_DB=/s/no/yes/;/START_ORACLE_DB_LISTENER/s/no/yes/;/START_ORACLE_DB_CMANAGER/s/no/yes/;s/START_ORACLE_DB_CMANAGER/START_ORACLE_DB_EMANAGER/g' oracle > oracle- && mv oracle- oracle cd /etc/init.d mkdir -p ORIG test -f ORIG/oracle && cp oracle ORIG/oracle sed 's+2.2.5+2.4.21+g;s/Connection Manager/Enterprise Manager/g;s/CManager/EManager/g;s/ORACLE_DB_CMANAGER/ORACLE_DB_EMANAGER/g;s/cmctl start/emctl start dbconsole/g;s/cmctl stop/emctl stop dbconsole/g;s/cmctl status/emctl status dbconsole/g;s/cmctl/emctl/g;' oracle > oracle- && cp oracle- oracle && rm oracle- cd /etc sed "/$SID/s/N/Y/" oratab > oratab- && cp oratab- oratab && rm -f oratab-
#!/bin/sh . CONFIG.sh rcoracle start