Friday, November 8, 2013

Install Oracle 12c on SLES 11SP3



/etc/fstab
none                 /dev                 tmpfs      remount,size=6G       0 0


zypper install binutils gcc43 gcc-c++ glibc glibc-devel ksh libaio libaio-devel libcap1 libstdc++33 libstdc++43 libstdc++46 libgcc46 make sysstat


Install software only during when running ./runInstaller, do not create database

When it prompt for running root.sh script

Open terminal  (using oracle owner account)

1. su root    (don't use "su -" )
2. Execute those script required
3. Back to finish the installer
4. run ./netca to create LISTENER
5. run ./dbca to create your DB

For init script

you can install orarun packet using YaST or zypper

you have to modify /etc/sysconfig/oracle to select what service you want to start

/etc/init.d/oracle
1. Add 11g and 12c version support for startdb part
        ORACLE_VERSION=`$ORACLE_HOME/bin/sqlplus -v | awk '{split($3, V, "."); print V[1]}'`
        if [ $ORACLE_VERSION = "11" ]; then
to
        ORACLE_VERSION=`$ORACLE_HOME/bin/sqlplus -v | awk '{split($3, V, "."); print V[1]}'`
        if [ $ORACLE_VERSION = "11" ] || [ $ORACLE_VERSION = "12" ]; then


2.Change
  if [ ! -z "$ORACLE_HOME" -a ! -d "$ORACLE_HOME" ]; then
to
  if [ ! -z "$ORACLE_HOME" -a -d "$ORACLE_HOME" ]; then

3.
  # Set Intelligent Agent Start/Stop
  AGENT_VERSION="unknown"
to
 ORACLE_VERSION=`$ORACLE_HOME/bin/sqlplus -v | awk '{split($3, V, "."); print V[1]}'`
  # Set Intelligent Agent Start/Stop
  AGENT_VERSION="unknown"








No comments:

Post a Comment