1.Oracle12cR1SE2 InstallationGuide
1.Oracle12cR1SE2 InstallationGuide
/sbin/sysctl -p
4 Security Limits
Add the following lines to the "/etc/security/limits.conf" file. [root@sand01 ~]# more /etc/security/limits.conf
# /etc/security/limits.conf
oracle soft nofile 1024 .
oracle hard nofile 65536 .
oracle soft nproc 16384 .
oracle hard nproc 16384
oracle soft stack 10240 #* soft core 0
oracle hard stack 32768 #* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
#Oracle Limits
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
5 Install the following packages if they are not already present. [root@sand01 ~]# yum list 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
# From Public Yum or ULN libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 libaio libaio.i686 libaio-devel
yum install binutils -y libaio-devel.i686 libXext libXext.i686 libXtst libXtst.i686 libX11 libX11.i686 libXau
yum install compat-libcap1 -y libXau.i686 libxcb libxcb.i686 libXi libXi.i686 make sysstat unixODBC unixODBC-devel
yum install compat-libstdc++-33 -y Loaded plugins: fastestmirror, langpacks
yum install compat-libstdc++-33.i686 -y Loading mirror speeds from cached hostfile
yum install gcc -y * base: mirror.pregi.net
yum install gcc-c++ -y * extras: mirror.pregi.net
yum install glibc -y * updates: mirror.pregi.net
yum install glibc.i686 -y Installed Packages
yum install glibc-devel -y binutils.x86_64 : 2.27-34.base.el7 : @base
yum install glibc-devel.i686 -y compat-libcap1.x86_64 : 1.10-7.el7 : @base
yum install ksh -y compat-libstdc++-33.x86_64 : 3.2.3-72.el7 : @base
yum install libgcc -y gcc.x86_64 : 4.8.5-36.el7_6.1 : @updates
yum install libgcc.i686 -y gcc-c++.x86_64 : 4.8.5-36.el7_6.1 : @updates
yum install libstdc++ -y glibc.x86_64 : 2.17-260.el7_6.3 : @updates
yum install libstdc++.i686 -y glibc-devel.x86_64 : 2.17-260.el7_6.3 : @updates
yum install libstdc++-devel -y ksh.x86_64 : 20120801-139.el7 : @base
yum install libstdc++-devel.i686 -y libX11.x86_64 : 1.6.5-1.el7 : @anaconda
yum install libaio -y libXau.x86_64 : 1.0.8-2.1.el7 : @anaconda
yum install libaio.i686 -y libXext.x86_64 : 1.3.3-3.el7 : @anaconda
yum install libaio-devel -y libXi.x86_64 : 1.7.9-1.el7 : @anaconda
yum install libaio-devel.i686 -y libXtst.x86_64 : 1.2.3-1.el7 : @anaconda
yum install libXext -y libaio.x86_64 : 0.3.109-13.el7 : @anaconda
yum install libXext.i686 -y libaio-devel.x86_64 : 0.3.109-13.el7 : @base
yum install libXtst -y libgcc.x86_64 : 4.8.5-36.el7_6.1 : @updates
yum install libXtst.i686 -y libstdc++.x86_64 : 4.8.5-36.el7_6.1 : @updates
yum install libX11 -y libstdc++-devel.x86_64 : 4.8.5-36.el7_6.1 : @updates
yum install libX11.i686 -y libxcb.x86_64 : 1.12-1.el7 : @anaconda
yum install libXau -y make.x86_64 : 1:3.82-23.el7 : @anaconda
yum install libXau.i686 -y sysstat.x86_64 : 10.1.5-17.el7 : @base
yum install libxcb -y Available Packages
yum install libxcb.i686 -y compat-libcap1.i686 : 1.10-7.el7 : base
yum install libXi -y compat-libstdc++-33.i686 : 3.2.3-72.el7 : base
yum install libXi.i686 -y glibc.i686 : 2.17-260.el7_6.3 : updates
yum install make -y glibc-devel.i686 : 2.17-260.el7_6.3 : updates
yum install sysstat -y libX11.i686 : 1.6.5-2.el7 : base
yum install unixODBC -y libX11.x86_64 : 1.6.5-2.el7 : base
yum install unixODBC-devel -y libXau.i686 : 1.0.8-2.1.el7 : base
libXext.i686 : 1.3.3-3.el7 : base
libXi.i686 : 1.7.9-1.el7 : base
libXtst.i686 : 1.2.3-1.el7 : base
libaio.i686 : 0.3.109-13.el7 : base
libaio-devel.i686 : 0.3.109-13.el7 : base
libgcc.i686 : 4.8.5-36.el7_6.1 : updates
libstdc++.i686 : 4.8.5-36.el7_6.1 : updates
libstdc++-devel.i686 : 4.8.5-36.el7_6.1 : updates
libxcb.i686 : 1.13-1.el7 : base
libxcb.x86_64 : 1.13-1.el7 : base
unixODBC.i686 : 2.3.1-11.el7 : base
unixODBC.x86_64 : 2.3.1-11.el7 : base
unixODBC-devel.i686 : 2.3.1-11.el7 : base
unixODBC-devel.x86_64 : 2.3.1-11.el7 : base
8a Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure [root@sand01 ~]# getenforce
the SELINUX flag is set as follows. Disabled
[root@sand01 ~]# more /etc/selinux/config
SELINUX=permissive
# 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=permissive
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Dependencies Resolved
=============================================================================================
Package Arch Version Repository Size
=============================================================================================
Installing:
selinux-policy-targeted noarch 3.13.1-229.el7_6.9 updates 6.9 M
Transaction Summary
=============================================================================================
Install 1 Package
Installed:
selinux-policy-targeted.noarch 0:3.13.1-229.el7_6.9
Complete!
9 Create the directories in which the Oracle software will be installed. [root@sand01 ~]# ll -d /u01/app/oracle/product/12.1.0.2/db_1
drwxrwxr-x. 2 oracle oinstall 6 Mar 26 23:56 /u01/app/oracle/product/12.1.0.2/db_1
mkdir -p /u01/app/oracle/product/12.1.0.2/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
10 Setup Env script; setup and export display [oracle@sand01 ~]$ mkdir scripts
[oracle@sand01 ~]$ cd scripts
[oracle@sand01 scripts]$ more setEnv.sh
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=ol7-122.localdomain
export ORACLE_UNQNAME=cdb1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1
export ORACLE_SID=cdb1
export PATH=/usr/sbin:/usr/local/bin:$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
[oracle@sand01 scripts]$ hostname
sand01.personal.wf.com
[oracle@sand01 scripts]$ vi setEnv.sh
[oracle@sand01 scripts]$ DISPLAY=:0.0; export DISPLAY
11 Go To Installer directory
12 run ./runInstaller
13 Configure Security Updates.
Uncheck:
“I wish to receive security updates via My Oracle Support”
18 On Database Edition
Click Standard Edition 2
19 Installation Location
Make sure that location is correct.
20 Create Inventory
21 Operating System Groups
22 Prerequisite Checks
23 Click Ignore on Changing Swap size.
26 Install Products
27 Run root actions by logging in as root user.
1 run dbca
[oracle@sand01 response]$ whereis dbca
dbca: /u01/app/oracle/product/12.1.0.2/db_1/bin/dbca
2 On Database Operation
Choose “Create Database” and click “Next”
3 On Creation Mode
Click “Advanced Mode” and then click Next
4 On Database Template
Choose “General Purpose or Transaction Processing” and Click “Next”
5 On Database Identification
write the Global Database Name and
Contains the UNIQUE database name with maximum 8 characters plus the hostname (all
capitals).
UNIQUE_NAME.hostname
for this db we have SID=T12CSE2
hostname=SAND01.PERSONAL.WF.COM
7 On Database Credentials
Click “Same Administrative Password for All Accounts”
Write a simple password for now. This will be used by both SYS(DBA) and SYSTEM
schema.
Click Next.
8 On Network Configuration,
use the Available Listener and Click Next.
9 On Storage Locations,
we will use the datafile directory created earlier.
On “Database File Storage Type”, select “File System”.
10 On Storage Location,
Click “Use Common Location for All Database Files”
On File Location. Click Browse.
15 On Initialization Parameters,
Click “Character” Sets tab
16 On “Character Sets” tab
Click Use Unicode (AL32UTF8)
Click Next
19 On Summary,
You will be shown the database creation details before the actual creation.
Click Finish to start database creation.
20 Verify installation progress.
21 After Database installation, you have the option to change password for specific
users.
Sources:
https://oracle-base.com/articles/12c/oracle-db-12cr1-installation-on-oracle-linux-6
Oracle 12cR1 – (STANDARD EDITION 2)
Installation Guide for Oracle 12c R1