oracle database server 12c single instance installation on ......apr 12, 2019  · crashkernel=auto...

20
Oracle Database Server 12c Single Instance Installation on OEL6 using ASM Oracle DB 12.1.0.2 On Virtual Box

Upload: others

Post on 10-Nov-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Oracle Database Server 12c Single Instance Installation on OEL6 using ASM

Oracle DB 12.1.0.2 On Virtual Box

Page 2: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

1. HOSTS

cat /etc/hosts 10.254.3.98 www.taysi.com.tr wwc

2. KERNEL & PREREQUISITES

Choose Automatic Setup or Manual Setup

-- Automatic Setup –

$> yum update $> yum install oracle-rdbms-server-12cR1-preinstall -y $> uname –a Linux wwc.taysi.com.tr 3.8.13-118.2.5.el6uek.x86_64 #2 SMP Tue Jan 19 15:43:24 PST 2016 x86_64 x86_64 x86_64 GNU/Linux $> more /etc/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/vg_oellinuxtempl-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Oracle Linux Server Unbreakable Enterprise Kernel (3.8.13-118.2.5.el6uek.x86_64) root (hd0,0) kernel /vmlinuz-3.8.13-118.2.5.el6uek.x86_64 ro root=/dev/mapper/vg_oellinuxtempl-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=trq LANG=en_US.UTF-8 rd_LVM_LV=vg _oellinuxtempl/lv_swap rd_NO_MD rd_LVM_LV=vg_oellinuxtempl/lv_root SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-3.8.13-118.2.5.el6uek.x86_64.img title Oracle Linux Server Unbreakable Enterprise Kernel (3.8.13-118.2.4.el6uek.x86_64) root (hd0,0) kernel /vmlinuz-3.8.13-118.2.4.el6uek.x86_64 ro root=/dev/mapper/vg_oellinuxtempl-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=trq LANG=en_US.UTF-8 rd_LVM_LV=vg _oellinuxtempl/lv_swap rd_NO_MD rd_LVM_LV=vg_oellinuxtempl/lv_root SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-3.8.13-118.2.4.el6uek.x86_64.img title Oracle Linux Server Red Hat Compatible Kernel (2.6.32-573.12.1.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-573.12.1.el6.x86_64 ro root=/dev/mapper/vg_oellinuxtempl-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=trq LANG=en_US.UTF-8 rd_LVM_LV=vg_o ellinuxtempl/lv_swap rd_NO_MD rd_LVM_LV=vg_oellinuxtempl/lv_root SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-573.12.1.el6.x86_64.img title Oracle Linux Server Red Hat Compatible Kernel (2.6.32-431.11.2.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.11.2.el6.x86_64 ro root=/dev/mapper/vg_oellinuxtempl-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=trq LANG=en_US.UTF-8 rd_LVM_LV=vg_o ellinuxtempl/lv_swap rd_NO_MD rd_LVM_LV=vg_oellinuxtempl/lv_root SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.11.2.el6.x86_64.img title Oracle Linux Server Red Hat Compatible Kernel (2.6.32-431.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/vg_oellinuxtempl-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=trq LANG=en_US.UTF-8 rd_LVM_LV=vg_oellin uxtempl/lv_swap rd_NO_MD rd_LVM_LV=vg_oellinuxtempl/lv_root SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img

Page 3: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

-- Manual Setup --

Add or amend the following lines in the "/etc/sysctl.conf" file

fs.file-max = 6815744 kernel.sem = 250 32000 100 128 kernel.shmmni = 4096 kernel.shmall = 1073741824 kernel.shmmax = 4398046511104 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 net.ipv4.ip_local_port_range = 9000 65500

Run the following command for the kernel to get new values:

/sbin/sysctl -p

Add the following lines to the "/etc/security/limits.conf" file.

oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 16384 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 grid soft nofile 1024 grid hard nofile 65536 grid soft nproc 16384 grid hard nproc 16384 grid soft stack 10240 grid hard stack 32768

Confirm that the following packages are installed, if not -> install them with yum or

rpm.

binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 gcc gcc-c++ glibc glibc.i686 glibc-devel glibc-devel.i686 ksh libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 libaio libaio.i686

libaio-devel libaio-devel.i686 libXext libXext.i686 libXtst libXtst.i686 libX11 libX11.i686 libXau libXau.i686 libxcb libxcb.i686 libXi libXi.i686 make sysstat unixODBC unixODBC-devel

Page 4: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

2. USERS & GROUPS

Create grid and oracle users with the properties shown below. Oracle user shoud

already be there (yum)

$> id grid uid=54324(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54326(asmdba),54327(asmadmin) $> id oracle uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54326(asmdba)

3. ADDITIONAL CONFIG

3.1. Edit user process parameter. MOS Note [ID 1487773.1] Edit “/etc/security/limits.d/90-nproc.conf” file and change the line

* soft nproc 1024

To

* - nproc 16384

$> cat /etc/security/limits.d/90-nproc.conf # Default limit for number of user's processes to prevent # accidental fork bombs. # See rhbz #432903 for reasoning. #* soft nproc 1024 * - nproc 16384 root soft nproc unlimited

3.2. Disable SELINUX

Edit /etc/selinux/config file and set the SELINUX parameter as below:

$> cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted

3.3. Disable Firewall

$> service iptables stop $> chkconfig iptables off

Page 5: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

3.4. Edit "/etc/security/limits.conf" file and add the following lines

oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 16384 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 grid soft nofile 1024 grid hard nofile 65536 grid soft nproc 16384 grid hard nproc 16384 grid soft stack 10240 grid hard stack 32768

4. DIRECTORY STRUCTURE

mkdir -p /u01/app/12.1.0.2/grid chown -R grid:oinstall /u01 chmod -R 775 /u01 mkdir -p /u02/app/oracle/product/12.1.0.2/db_1/ chown -R oracle:oinstall /u02 chmod -R 775 /u02

5. BASH PROFILES

Add the following lines at the end of the "/home/oracle/.bash_profile" file.

# Oracle Settings export TMP=/tmp export TMPDIR=$TMP export ORACLE_BASE=/u02/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1 export ORACLE_SID=ORCL export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi

Add the following lines at the end of the "/home/grid/.bash_profile" file.

# Grid Settings export TMP=/tmp export TMPDIR=$TMP export ORACLE_BASE=/u01/app/grid export ORACLE_HOME=/u01/app/12.1.0.2/grid export ORACLE_SID=+ASM export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

Page 6: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib if [ $USER = "grid" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi

6. GRID INSTALLATION

Choose “Install and Config Oracle Grid Infrastructure for a Standalone Server” and

click “Next”

Page 7: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Click “Next”

Select the disk that is provided for ASM and click “Next”.

This is a test purpose database so I choose “External” as redundancy.

Note: You may have to change the discoery path to see the disks.

Page 8: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Specify password and click “Next”

Click “Next”

Page 9: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Click “Next”

Enter the grid base and home locations as follows and click “Next”

If some warning appears saying home is not in base...just ignore it.

Page 10: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Click “Next”

Uncheck the checkbox and click “Next”

Page 11: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

I had some warning regrading space, Ignored them. Click “Next”

Click “Install”

Page 12: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Execute root scripts. Click “OK”.

Click “Close”

Page 13: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

7. ORACLE DATABASE SOFTWARE INSTALLATION

Run database installation shell script

./runInstaller

Uncheck the checkbox and click “Next”

Click “Yes”

Page 14: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Choose “Install database software only” and click “Next”

Choose “Single instance database installation” and click “Next”

Page 15: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Click “Next”

Click “Next”

Page 16: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Enter oracle base and home then click “Next”

Click “Next”

Page 17: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Click “Next”

Click “Next”

Page 18: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Execute the root script when prompted:

“/u02/app/oracle/product/12.1.0.2/db_1/root.sh”

Click “Close”

8. CONFIGURE DATABASE

Run DBCA (Database Configuration Assistant) with dbca command

Page 19: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

Configure the database and click “Next”

Click “Finish”

Page 20: Oracle Database Server 12c Single Instance Installation on ......Apr 12, 2019  · crashkernel=auto rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-2.6.32-431.el6.x86_64.img--

You may want to do “Password Management” here... When you’re done click “Close”

Password Management

THE END.