How to Install Oracle Database 11gR2 on Oracle Linux 7 VMware Workstation We have installe Oracle Linux 7 in !revious !ost" !ost" #ow we are going to install Oracle atabase 11gR2 on Oracle Linux 7 $or !ractice !ur!ose" %irst we nee to install !rere&uisites $or Oracle atabase 11 11gR2 gR2 on Oracle Linux 7" 'tart (our Oracle Linux 7 VM an login with the user oracle we have create uring u ring installation"
O!en )er*inal
Run +o**an" su root ,nter Root -asswor" .ou will be in 'hell $or root user"
#ow we have to u!ate the Oracle Linux re!o" c /etc/(u*"re!os"/ wget htt!0//!ublic(u*"oracle"co*/!ublic(u*ol7"re!o
#ow run $ollowing co**an" (u* install oraclerb*sserver11gR2!reinstall
-ress ( an hit enter to install" )his will take so*e ti*e to co*!lete"
.ou will see $ollowing a$ter co*!letion
'et selinux to !er*issive as root user" vi /etc/selinux/con$ig an change en$orcing to !er*issive"
'to! the $irewall service b( running $ollowing co**an root3ol7 oracle45 s(ste*ctl isable $irewall #ow we have to create Directories where we have to install Oracle Database 11gR2 Run $ollowing co**ans as root" *kir ! /u61/a!!/oracle/!rouct/11"2"6/b1 chown R oracle0oinstall /u61 ch*o R 778 /u61 #ote that oracle is the user uner which we are going to install atabase 11gR2" (ou can change (our irector( as !er (our user like 9*kir ! /u61/a!!/your-user /!rouct/11"2"6/b19
#ow eit bash !ro$ile $or oracle user as oracle user"
oracle3ol7 :4; vi "bash!ro$ile Insert $ollowing lines" #ote that ol7.mydomain.local is hostname. change it as (our hostna*e is" OR<+L,HO')# ex!ort OR<+L,HO')# ex!ort OR<+L,?#@# ex!ort OR<+L,A<', OR<+L,HOM,=;OR<+L,A<',/!rouct/11"2"6/b1> ex!ort OR<+L,HOM, OR<+L,'ID=orcl> ex!ort OR<+L,'ID -<)H=;OR<+L,HOM,/bin0;-<)H> ex!ort -<)H LDLIAR ex!ort LDLIAR ex!ort +L<''-<)H
#ow we are rea( to install oracle atabase 11gR2 on Oracle Linux 7"1 Downloa Oracle database 11gR2 $or Linux x86-64 $ro* OracleC .ou nee oracle account to ownloa the atabase so$tware" I$ (ou have su!!ort account then (ou can ownloa 11"2"6"" I reco**en to install 11gR2 11"2"6" on Oracle Linux 7"1" <$ter Downloa extract 11gR2 $iles an (ou will have a $oler na*e 9database"
O!en ter*inal an browse atabase $oler" an run $ollowing co**an to start the installer" oracle3ol7 atabase4; "/runInstaller
In $ew *o*ent (ou will see $ollowing" ,nter (our e*ail aress an !asswor i$ (ou have Oracle su!!ort account" +lick ext
'ki! 'o$tware u!ates an +lick ext
'elect !reate and conigure a database an +lick ext
'elect #es$to% !lass an +lick ext
'et &lobal database name ' orcl.mydomain.local 'et (dministrati)e *ass+ord' %ass+ord 'et a strong !asswor as !er oracle reco**enation" I a* going to use 9oracle9 as we are installing in test environ*ent"
+lick ext
Oracle will check *ini*u* re&uire*ents $or atabase 11gR2 on target s(ste*" I have $ace 2 warnings" .ou *a( $ix these warning b( installing the *issing !ackages or ignore all as this is Bust a test environ*ent" I a* going to ignore these 2 *issing !ackages as the( will not e$$ect installation" +lick ,gnore all an click ext
+lick ,nstall
'etu! starte"
.ou *a( $ace error like $ollowing"
Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0.4/sysman/lib/ins_emagent.mk'.
%ollowing is the work aroun $or above error" In u1a%%oracle%roduct11.2.db/1sysmanlibins/emagent.m$ Look $or the line 03/(&5/!5L +hange it to 03/(&5/!5L -lnn11 +lick Retr( an setu! will continue" <$ter atabase creation (ou will see $ollowing" +lick o$
Run $ollowing scri!ts as root
+lick O3 a$ter running scri!ts an (ou will see
+lick !lose We have success$ull( installe Oracle Database 11gR2 11"2"6" on Oracle Linux 7"1 )o ?se De$ault HR sche*a we have to connect to s&l!lus" O!en ter*inal as Oracle user an run $ollowing co**an to connect to atabase" %irst we have to connect as 9:9#;( to activate ol7 ?@0 sAl%lus nter user-name' sys as sysdba nter %ass+ord'
we have set the !asswor "oracle" uring setu!" ,nter the !asswor an (ou will see"
#ow unlock the HR user account an 'et the !asswor
)o connect to atabase with HR user t(!e '@LE conn hr/oracle +onnecte" '@LE Run a 'i*!le &uer( to check the sche*a '@LE ',L,+) F 2 %ROM e*!lo(ees> .ou will see all the colu*ns in ,*!lo(ees table" '@LE ',L,+) s(sate 2 %ROM D? '.'D<),
2G#OV18 In case (ou restarte (our *achine (ou have to start the atabase *anuall(" Bust connect via s&l!lus as sys as sysdba an run co**an as $ollows an (ou will see #atabase mounted
.ou can use '@L evelo!er or )oa $or Oracle instea o$ s&l!lus to !la( with atabase" We will con$igure )O