Oracle 12C installation on Linux:
Set up Pre-requisites: Pre-requisites: Step-1:
Setting host name, edit system hosts fle /etc/hosts and enter hostname along with IP address as shown below. 127...1lo 1lo!alhost.lo!aldomain 172.1".17."2 db.lo!aldomain
lo!alhost db
Step-2:
#a$e some !hanges in $ernel le%el parameters in /etc/sysctl.conf fle as shown below. &s.fle-ma' ( ")1*7++ $ernel.sem ( 2* 2 1 12) $ernel.shmmi ( +" $ernel.shmall ( 177+1)2+ $ernel.shmma' $ernel.shmma' ( +)+"*111+ net.!ore.rmemde&ault net.!ore.rmemde&ault ( 2"21++ net.!ore.rmemma' net.!ore.rmemma' ( +1++ net.!ore.wmemde&ault net.!ore.wmemde&ault ( 2"21++ net.!ore.wmemma' net.!ore.wmemma' ( 1+)*7" &s.aio-ma'-nr ( 1+)*7" net.ip%+.iplo!alportrange net.ip%+.iplo!alportrange ( "**
$ernel.shmma' $ernel.shmma' ( +2+"72* $ernel.shmall ( 271*2 &s.aio-ma'-nr ( 1+)*7" &s.fle-ma' ( ")1*7++ $ernel.shmmni ( +" $ernel.sem ( 2* 2 1 12) net.ip%+.iplo!alportrange net.ip%+.iplo!alportrange ( "** net.!ore.rmemde&ault net.!ore.rmemde&ault ( 2"21++ net.!ore.rmemma' net.!ore.rmemma' ( +1++ net.!ore.wmemde&ault net.!ore.wmemde&ault ( 2"21++ net.!ore.wmemma' net.!ore.wmemma' ( 1+)*7" /n!e added abo%e %alues, now issue &ollowing !ommand to ta$e new !hanges into e0e!t. sysctl –p Step-3:
dit limits fle /etc/security/limits.conf ora!le ora!le ora!le
so&t hard so&t
nofle nofle npro!
12+ "**" 1")+
ora!le ora!le ora!le
hard so&t hard
npro! sta!$ sta!$
1")+ 12+ 27")
Step-4:
Install dependen!ies yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum yum
install binutils –y install compat-libcap1 compat-libcap1 –y install compat-libstdc++-33 compat-libstdc++-33 –y install compat-libstdc++-33.i686 compat-libstdc++-33.i686 –y install gcc –y install gcc-c++ -y install glibc –y install glibc.i686 –y install glibc-devel –y install glibc-devel.i686 glibc-devel.i686 –y install ksh –y install libgcc –y install libgcc.i686 –y install libstdc++ -y install libstdc++.i686 –y install libstdc++-devel libstdc++-devel –y install libstdc++-devel.i686 libstdc++-devel.i686 –y install libaio –y install libiao.i686 –y –y install libaio-devel –y install libaio-devel.i686 libaio-devel.i686 –y install libXext –y install libXext.i686 –y install libXtst –y install libXtst.i686 –y –y install libX11 –y install libX11.i686 –y install libXau –y install libXau.i686 –y install libxcb –y install libxcb.i686 –y install libXi –y install libXi.i686 –y install make –y install sysstart –y install unix!"# –y install unix!"#-devel unix!"#-devel –y
Step-5:
dd groups and users groupadd –g 54321 oracle groupadd –g 54322 dba groupadd –g 54323 oper
3reate new user and add to !reate groups abo%e. useradd -u 54321 -g oracle -G dba,oper oracle passwd oracle Type new pass word and Re-type the password. edit the below fle to set the limit &or all users v !etc!securty!l"ts.d!#$-nproc.con% 4y de&ault, it was set to 5 so&t npro! 12+ 6ow, !hange it to 5 - npro! 1")+ Step-:
3hange SI689 mode to permissi!e" !i /etc/syscon#$/selinux S%L&'()*permissi!e Step-+:
I& system is enabled with frewall, we need to disable frewalls. &ervce ptables stop 'h(con)g ptables o* Step-,:
3reate &ollowing dire!tory to install ora!le "(dr -p !u$1!app!oracle!product!12.1.$!db+1 chown -R oracleoracle !u$1 ch"od -R 5 !u$1 Step-:
dd en%ironmental %ariable &or ora!le user. /pen and edit the profle o& ora!le user and append the ora!le en%ironment entries. !ho"e!oracle!.bash+pro)le ora!le settings e'port ;#P(
(?;#P e'port />3@/S;6#(ora!le.db e'port />386A6#(or!l e'port />34S(3@/#(?/>34S3SI=(or!l e'port P;@(
e'port P;@(?/>3@/#>BP;@(?/>3 @/#3@/#3@/#
8nDip ora!le so&tware fles /n0p lnua"d4+12c+database+1o%2.0p un0p lnua"d4+12c+database+2o%2.0p step-11
start the installation by running .!runnstaller cd database .!runnstaller 3li!$ on 'ext.
you will get an error saying that youE%e not pro%ided and email address !li!$ Bes to !ontinue.
Step-12:
s we ha%enEt pro%ided email, by de&ault it will !hoose Sip Soft0are (pates" 3li!$ on 'ext.
Step-13:
3hoose installation type. I am !hoosing 3reate and 3onfgure a data base and !li!$ on 6e't.
Step-14:
I !hoose Ser%er 3lass here and !li!$ on 6e't.
Step-15:
Sele!ting frst option as we are going to set up single instan!e database.
Step-1:
3hoose the d%an!e install option to get more option while going through Installation steps.
Step-1+:
=e&ault language will be nglish.
Step-1,:
@ere we need to !hoose whi!h database edition do we want to install, I !hoose nterprise dition.
Step-1:
nter the data base install lo!ation, so, here all installed !onfguration fles will be stored. 3hoose lo!ation that we had !reated already abo%e steps.
Step-2:
Step-21:
Sele!t type o& database. Fe are using &or General purpose, sele!ting general &rom the below options and !li!$ on 6e't.
Step-22:
Gi%e Global database name &or uniquely identifed and un-!he!$ the !reate as database !ontainer.
Step-23:
3he!$ the bo' %nale utomatic emory ana$ement and $eep the de&ault allo!ate memory. I& we need some sample s!hemaEs we !an !he!$ and !ontinue &or installation.
Step-24:
Fe need to pro%ide passworsd &or starter database. Password must !ontains alphanumeri!.
Step-25:
t this step we !an re%iew summary o& settings. 3li!$ on Install
Step-2:
Installation started to preparation and !opying fles.
Step-2+:
=uring set up pro!ess, it will as$ to r un two s!ripts.
Step-2,:
.!u$1!app!oralnventory!oranstRoot.sh .!u$1!app!oracle!product!12.1.$!db+1!root.sh Step-2:
&ter su!!ess&ully e'e!ution o& abo%e two s!ripts, we need to mo%e &orward by !li!$ing on /H.
Step-3:
Step-31:
Step-32:
Fe ha%e su!!ess&ully !ompleted =atabase !onfguration, !li!$ 6e't to !ontinue installation pro!ess.