Sei sulla pagina 1di 6

7/13/2015

HowISimplifiedInstallationofOracleDatabaseonOracleLinux
Welcomemeatsolaris
Account SignOut Help Country

Products
OracleTechnologyNetwork
ApplicationDevelopment
Framework
ApplicationExpress
BigData
BusinessIntelligence
CloudComputing

Articles

Solutions

Communities

Downloads

Iama...

Store

Iwantto...

Support

Search

Training

Partners

About

OTN

ServerandStorageAdministration

HowISimplifiedOracleDatabase12cand11gInstallationson
OracleLinux6
byGinnyHenningsenupdatedbyMicheleCasey

HowtosimplifytheinstallationofOracleDatabase12cor11gonOracleLinux6byinstallingtheoraclerdbmsserver12cR1
preinstallororaclerdbmsserver11gR2preinstallRPMpackage,whichautomaticallyperformsanumberoftasks,suchas
installingrequiredsoftwarepackages,resolvingpackagedependencies,andmodifyingkernelparameters.

Communications
DatabasePerformance&
Availability
DataWarehousing
Database
.NET
DynamicScriptingLanguages
Embedded
DigitalExperience
EnterpriseArchitecture
EnterpriseManagement
Identity&Security
Java
Linux
Mobile
ServiceOrientedArchitecture
Solaris
SQL&PL/SQL
SystemsAllArticles
Virtualization

PublishedSeptember2012(updatedJuly2013)

Introducingtheoraclerdbmsserver12cR1preinstallandoraclerdbmsserver11gR2preinstallRPMforOracleLinux
BeforeinstallingOracleDatabase12cor11gonasystem,youneedtopreconfiguretheoperatingenvironmentsincethedatabaserequires
certainsoftwarepackages,packageversions,andtweakstokernelparameters.(BesuretoreviewtheappropriateOracleDatabaseinstallation
guidetofamiliarizeyourselfwithhardware,software,andoperatingsystemrequirements.)
Note:ThisarticleappliestoOracleLinux6.Apreviousarticle,"HowISimplifiedOracleDatabaseInstallationon
OracleLinux,"coveredperformingasimilartaskonversionsofOracleLinux5.
OnOracleLinux,Idiscoveredthatthereisaremarkablyeasywaytoaddresstheseinstallationprerequisites:
First,dependingonyourdatabaseversion,installeithertheRPMpackagecalledoraclerdbmsserver
12cR1preinstallororaclerdbmsserver11gR2preinstall.ThisRPMperformsanumberof
preconfigurationsteps,includingthefollowing:

Wanttocommentonthis
article?Postthelink
onFacebook'sOTN
Garagepage.Havea
similararticletoshare?
BringituponFacebookor
Twitterandlet'sdiscuss.

Automaticallydownloadingandinstallinganyadditionalsoftwarepackagesandspecificpackageversions
neededforinstallingOracleGridInfrastructureandOracleDatabase12cRelease1(12.1)or11gRelease2
(11.2.0.3),withpackagedependenciesresolvedviayumorup2datecapabilities.
Creatingtheuseroracleandthegroupsoinstall(forOraInventory)anddba(forOSDBA),whichareusedduringdatabaseinstallation.(For
securitypurposes,thisuserhasnopasswordbydefaultandcannotloginremotely.Toenableremotelogin,pleasesetapasswordusingthe
passwdtool.)
Modifyingkernelparametersin/etc/sysctl.conftochangesettingsforsharedmemory,semaphores,themaximumnumberoffiledescriptors,
andsoon.
Settinghardandsoftshellresourcelimitsin/etc/security/limits.conf,suchasthelockedinmemoryaddressspace,thenumberofopen
files,thenumberofprocesses,andcorefilesize.
Settingnuma=offinthekernelforx86_64machines.
Notethatoraclerdbmsserver12cR1preinstallandoraclerdbmsserver11gR2preinstallparsestheexisting
/etc/sysctl.confand/etc/security/limits.conffilesandupdatesvaluesonlyasneededfordatabaseinstallation.Anyprecustomized
settingsnotrelatedtodatabaseinstallationareleftasis.
Theoraclerdbmsserver12cR1preinstallandoraclerdbmsserver11gR2preinstallRPMpackagesareaccessiblethroughthe
OracleUnbreakableLinuxNetwork(ULN,whichrequiresasupportcontract),fromtheOracleLinuxdistributionmedia,orfromtheOraclepublic
yumrepository.Thus,whetherornotyoursystemisregisteredwithULNtoaccessOraclepatchesandsupport,youcanuseoraclerdbms
server12cR1preinstallandoraclerdbmsserver11gR2preinstalltosimplifydatabaseinstallationonOracleLinux.Inaddition,the
Oraclepublicyumrepositorynowincludesallsecurityandbugerrata,ensuringsystemsaresecuredandstablewiththelatestsecurityupdates
andbugfixes.
Installingtheoraclerdbmsserver12cR1preinstallororaclerdbmsserver11gR2preinstallRPM
TheremainderofthisarticlestepsthroughtheprocedurethatIusedforinstallingoraclerdbmsserver11gR2preinstallonOracleLinux
viatheOraclepublicyumrepository.ThesamestepsoutlinedinthefollowingsectioncanbeusedforeitherversionofthepreinstallRPMpackage.
IstartedwithasystemrunningOracleLinuxRelease6Update4forx86_64,a64bitversionofOracleLinuxthatIdownloadedfromtheOracle
softwaredeliverycloud(requiresregistrationorlogin).First,Isetupayumconfigurationfilethatpointedtothecorrectrepository,andthenI
installedtheoraclerdbmsserver11gR2preinstallRPMfromthatrepository.
HerearethestepsforpreconfiguringasystemforOracleDatabaseinstallationusingoraclerdbmsserver11gR2preinstall.Remember,
thestepsarethesamewhenusingtheoraclerdbmsserver12cR1preinstallpackageyousimplyneedtochangethenameoftheRPM
packageduringtheyuminstallationstep.
Asanauthorizeduser(forexample,root),retrievethefilethatconfiguresrepositorylocations:
#cd/etc/yum.repos.d
#wgethttp://publicyum.oracle.com/publicyumol6.repo
Usingatexteditor,modifythefile,changingthefieldenabled=0toenabled=1toreflectrepositoriesthatcorrespondtothemachine'soperating
systemrelease.
Hereisanexcerptofpublicyumold6.repowiththechangedlinesinboldface.
[ol6_latest]
name=OracleLinux$releaseverLatest($basearch)
baseurl=http://publicyum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=http://publicyum.oracle.com/RPMGPGKEYoracleol6

http://www.oracle.com/technetwork/articles/serversstorageadmin/ginnydbinstallonlinux488779.html

1/6

7/13/2015

HowISimplifiedInstallationofOracleDatabaseonOracleLinux
gpgcheck=1
enabled=1

[ol6_UEK_latest]
name=LatestUnbreakableEnterpriseKernelforOracleLinux$releasever($basearch)
baseurl=http://publicyum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=http://publicyum.oracle.com/RPMGPGKEYoracleol6
gpgcheck=1
enabled=1
BecausethetargetsystemisrunningOracleLinuxRelease6Update4forx86_64,whichinstallstheOracleUnbreakableEnterpriseKernelby
default,therearetworepositoriestoenable,[ol6_latest]and[ol6_UEK_latest].
Next,installtheoraclerdbmsserver11gR2preinstallRPMusingtheyuminstallcommand.IfyouareusingOracleDatabase12c,
thenyouwouldtypeyuminstall.
TheoutputinListing1showshowtheinstallationchecksdependenciesandthendownloadsandinstallstherequiredpackages.
#yuminstalloraclerdbmsserver11gR2preinstall
Loadedplugins:refreshpackagekit,rhnplugin,security
SettingupInstallProcess
ResolvingDependencies
>Runningtransactioncheck
>Packageoraclerdbmsserver11gR2preinstall.x86_640:1.06.el6willbeinstalled
>ProcessingDependency:gccc++forpackage:oraclerdbmsserver11gR2preinstall1.06.el6.x86_64
>ProcessingDependency:gccforpackage:oraclerdbmsserver11gR2preinstall1.06.el6.x86_64
>ProcessingDependency:libaiodevelforpackage:oraclerdbmsserver11gR2preinstall1.06.el6.x86_64
>ProcessingDependency:libstdc++develforpackage:oraclerdbmsserver11gR2preinstall1.06.el6.x86_64
>ProcessingDependency:glibcdevelforpackage:oraclerdbmsserver11gR2preinstall1.06.el6.x86_64
>ProcessingDependency:compatlibstdc++33forpackage:oraclerdbmsserver11gR2preinstall1.06.el6.x86_64
>ProcessingDependency:kshforpackage:oraclerdbmsserver11gR2preinstall1.06.el6.x86_64
>ProcessingDependency:compatlibcap1forpackage:oraclerdbmsserver11gR2preinstall1.06.el6.x86_64
>Runningtransactioncheck
>Packagecompatlibcap1.x86_640:1.101willbeinstalled
>Packagecompatlibstdc++33.x86_640:3.2.369.el6willbeinstalled
>Packagegcc.x86_640:4.4.64.el6willbeinstalled
>ProcessingDependency:cpp=4.4.64.el6forpackage:gcc4.4.64.el6.x86_64
>ProcessingDependency:cloogppl>=0.15forpackage:gcc4.4.64.el6.x86_64
>Packagegccc++.x86_640:4.4.64.el6willbeinstalled
>ProcessingDependency:libmpfr.so.1()(64bit)forpackage:gccc++4.4.64.el6.x86_64
>Packageglibcdevel.x86_640:2.121.80.el6_3.4willbeinstalled
>ProcessingDependency:glibcheaders=2.121.80.el6_3.4forpackage:glibcdevel2.121.80.el6_3.4.x86_64
>ProcessingDependency:glibcheadersforpackage:glibcdevel2.121.80.el6_3.4.x86_64
>Packageksh.x86_640:2010062116.el6willbeinstalled
>Packagelibaiodevel.x86_640:0.3.10710.el6willbeinstalled
>Packagelibstdc++devel.x86_640:4.4.64.el6willbeinstalled
>Runningtransactioncheck
>Packagecloogppl.x86_640:0.15.71.2.el6willbeinstalled
>ProcessingDependency:libppl_c.so.2()(64bit)forpackage:cloogppl0.15.71.2.el6.x86_64
>ProcessingDependency:libppl.so.7()(64bit)forpackage:cloogppl0.15.71.2.el6.x86_64

http://www.oracle.com/technetwork/articles/serversstorageadmin/ginnydbinstallonlinux488779.html

2/6

7/13/2015

HowISimplifiedInstallationofOracleDatabaseonOracleLinux
>Packagecpp.x86_640:4.4.64.el6willbeinstalled
>Packageglibcheaders.x86_640:2.121.80.el6_3.4willbeinstalled
>ProcessingDependency:kernelheaders>=2.2.1forpackage:glibcheaders2.121.80.el6_3.4.x86_64
>ProcessingDependency:kernelheadersforpackage:glibcheaders2.121.80.el6_3.4.x86_64
>Packagempfr.x86_640:2.4.16.el6willbeinstalled
>Runningtransactioncheck
>Packagekerneluekheaders.x86_640:2.6.32300.32.1.el6uekwillbeinstalled
>Packageppl.x86_640:0.10.211.el6willbeinstalled
>FinishedDependencyResolution

DependenciesResolved

================================================================================
PackageArchVersionRepositorySize
================================================================================
Installing:
oraclerdbmsserver11gR2preinstall
x86_641.06.el6ol6_latest15k
Installingfordependencies:
cloogpplx86_640.15.71.2.el6ol6_latest93k
compatlibcap1x86_641.101ol6_latest17k
compatlibstdc++33x86_643.2.369.el6ol6_latest183k
cppx86_644.4.64.el6ol6_latest3.7M
gccx86_644.4.64.el6ol6_latest10M
gccc++x86_644.4.64.el6ol6_latest4.7M
glibcdevelx86_642.121.80.el6_3.4ol6_latest970k
glibcheadersx86_642.121.80.el6_3.4ol6_latest600k
kerneluekheadersx86_642.6.32300.32.1.el6uekol6_latest713k
kshx86_642010062116.el6ol6_latest684k
libaiodevelx86_640.3.10710.el6ol6_latest13k
libstdc++develx86_644.4.64.el6ol6_latest1.5M
mpfrx86_642.4.16.el6ol6_latest156k
pplx86_640.10.211.el6ol6_latest1.3M

TransactionSummary
================================================================================
Install15Package(s)

Totaldownloadsize:25M
Installedsize:61M
Isthisok[y/N]:DownloadingPackages:

Total710kB/s|25MB00:35
Runningrpm_check_debug
RunningTransactionTest
TransactionTestSucceeded
RunningTransaction

http://www.oracle.com/technetwork/articles/serversstorageadmin/ginnydbinstallonlinux488779.html

3/6

7/13/2015

HowISimplifiedInstallationofOracleDatabaseonOracleLinux

Installing:mpfr2.4.16.el6.x86_641/15
Installing:libstdc++devel4.4.64.el6.x86_642/15
Installing:cpp4.4.64.el6.x86_643/15
Installing:ppl0.10.211.el6.x86_644/15
Installing:cloogppl0.15.71.2.el6.x86_645/15
Installing:kerneluekheaders2.6.32300.32.1.el6uek.x86_646/15
Installing:glibcheaders2.121.80.el6_3.4.x86_647/15
Installing:glibcdevel2.121.80.el6_3.4.x86_648/15
Installing:gcc4.4.64.el6.x86_649/15
Installing:gccc++4.4.64.el6.x86_6410/15
Installing:compatlibstdc++333.2.369.el6.x86_6411/15
Installing:libaiodevel0.3.10710.el6.x86_6412/15
Installing:ksh2010062116.el6.x86_6413/15
Installing:compatlibcap11.101.x86_6414/15

Installing:oraclerdbmsserver11gR2preinstall1.06.el6.x86_6415/15
Verifying:gcc4.4.64.el6.x86_641/15
Verifying:compatlibcap11.101.x86_642/15
Verifying:ksh2010062116.el6.x86_643/15
Verifying:glibcdevel2.121.80.el6_3.4.x86_644/15
Verifying:libaiodevel0.3.10710.el6.x86_645/15
Verifying:oraclerdbmsserver11gR2preinstall1.06.el6.x86_646/15
Verifying:gccc++4.4.64.el6.x86_647/15
Verifying:glibcheaders2.121.80.el6_3.4.x86_648/15
Verifying:libstdc++devel4.4.64.el6.x86_649/15
Verifying:compatlibstdc++333.2.369.el6.x86_6410/15
Verifying:mpfr2.4.16.el6.x86_6411/15
Verifying:kerneluekheaders2.6.32300.32.1.el6uek.x86_6412/15
Verifying:cpp4.4.64.el6.x86_6413/15
Verifying:ppl0.10.211.el6.x86_6414/15
Verifying:cloogppl0.15.71.2.el6.x86_6415/15

Installed:
oraclerdbmsserver11gR2preinstall.x86_640:1.06.el6

DependencyInstalled:
cloogppl.x86_640:0.15.71.2.el6
compatlibcap1.x86_640:1.101
compatlibstdc++33.x86_640:3.2.369.el6
cpp.x86_640:4.4.64.el6
gcc.x86_640:4.4.64.el6
gccc++.x86_640:4.4.64.el6
glibcdevel.x86_640:2.121.80.el6_3.4
glibcheaders.x86_640:2.121.80.el6_3.4
kerneluekheaders.x86_640:2.6.32300.32.1.el6uek
ksh.x86_640:2010062116.el6

http://www.oracle.com/technetwork/articles/serversstorageadmin/ginnydbinstallonlinux488779.html

4/6

7/13/2015

HowISimplifiedInstallationofOracleDatabaseonOracleLinux
libaiodevel.x86_640:0.3.10710.el6
libstdc++devel.x86_640:4.4.64.el6
mpfr.x86_640:2.4.16.el6
ppl.x86_640:0.10.211.el6

Complete!
Listing1:Installingtheoraclerdbmsserver11gR2preinstallRPM
Theyuminstallationlogsmessagesaboutkernelchangesinthefile/var/log/oraclerdbmsserver11gR2
preinstall/results/orakernel.log,anditmakesbackupsofcurrentsystemsettingsinthedirectory/var/log/oraclerdbmsserver
11gR2preinstall/backup.
Atthispoint,thesystemisreadyfortheinstallationofOracleDatabase.Forexample,toinstallOracleDatabase11gRelease2,followthe
directionsinChapter4,"InstallingOracleDatabase,"oftheDatabaseInstallationGuideforLinux."
HerearethestepsIfollowedwhileinstallingOracleDatabase11gRelease2inmytestenvironment.Makesureyoureviewalldocumentationand
followrecommendedbestpracticesbeforeinstallingintoyourproductionenvironment.
Asroot,createaparentdirectoryinafilesystemthathassufficientspacetobethetargetlocationforthedownloadedfiles:
#mkdir/home/OraDB11g
#cd/home/OraDB11g
Theamountofdiskspaceneededinthefilesystemvariesaccordingtothespecificinstallationtype,butroughlytwicethesizeoftheziparchives,
or5GB,isenoughtohousethesoftwareanddatafiles.
Intothistargetdirectory,downloadtheinstallationmediafilesfromtheOracleDatabaseSoftwareDownloadspageonOracleTechnologyNetwork.
Extractthefiles:
#unziplinux.x64_11gR2_database_1of2.zip
#unziplinux.x64_11gR2_database_2of2.zip
Loginastheuseroracle.ChangedirectorytothedatabasedirectoryandenterthefollowingcommandtoruntheOracleUniversalInstaller:
$cd/home/OraDB11g/database
$./runInstaller
TheOracleUniversalInstallerperformsanumberofchecks,verifyingthatthenecessaryOSpackagesandversionsareinstalled.Inaddition,it
checkskernelparameterssetbytheoraclerdbmsserver11gR2preinstallinstallation.Duringthekernelsettingscheck,theinstaller
mightflagafewsettingsas"failed,"andyoushouldinvestigatethesefailures.Insomecases,youstillmightbeabletocontinuewiththedatabase
installation.Ifyoucheckkernelsettingsin/etc/sysctl.conf,you'llseethatoraclerdbmsserver11gR2preinstallhasmodifiedand
addedthenecessarysettingstoensuretheminimumrequirementsaremet,asdefinedinsection2.10.1,"DisplayingandChangingKernel
ParameterValues,"inChapter2,"OracleDatabasePreinstallationRequirements,"oftheOracleDatabaseInstallationGuide11gRelease2(11.2)
forLinux.Belowisthelistofrequirements:
fs.aiomaxnr=1048576
fs.filemax=6815744
kernel.shmall=2097152
kernel.shmmax=4294967295
kernel.shmmni=4096
kernel.sem=25032000100128
net.ipv4.ip_local_port_range=900065500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048576
Ifnecessary,youcan(asroot)editthefile/etc/sysctl.conftospecifyasettingmanually,forexample:
#vi/etc/sysctl.conf
#/sbin/sysctlp
TheOracleUniversalInstallerperformsadditionalchecks,suchasverifyingtheglibcversion,sufficientdiskspace,environmentalvariableand
pathsettings,andsufficientphysicalmemoryandswapspace.Generally,installingoraclerdbmsserver11gR2preinstalltakescareof

http://www.oracle.com/technetwork/articles/serversstorageadmin/ginnydbinstallonlinux488779.html

5/6

7/13/2015

HowISimplifiedInstallationofOracleDatabaseonOracleLinux
theprerequisitessothatyoucanproceeddirectlywithinstallingthedatabase.
FinalThoughts
Installingtheoraclerdbmsserver12cR1preinstallandoraclerdbmsserver11gR2preinstallRPMscansavetimewhen
installingOracleDatabase12cand11gonOracleLinux.TheseRPMsaddressmostOracleDatabaseinstallationprerequisitesandgreatly
simplifytheinstallationprocess.
SeeAlso
Herearetheresourcesreferencedearlierinthisdocument:
OracleUnbreakableLinuxNetwork:https://linux.oracle.com
Oraclepublicyumrepository:http://publicyum.oracle.com/
Oraclesoftwaredeliverycloud(requiresregistrationorlogin):https://edelivery.oracle.com/linux
Chapter4,"InstallingOracleDatabase,"oftheDatabaseInstallationGuideforLinux:
http://docs.oracle.com/cd/E11882_01/install.112/e24321/inst_task.htm#BABBBHJH
OracleDatabaseSoftwareDownloadspageonOracleTechnologyNetwork:http://www.oracle.com/technetwork/database/enterprise
edition/downloads/index.html
AndherearesomeadditionalresourcesfromtheOracleDatabaseDocumentationLibrary(http://www.oracle.com/pls/db112/homepage).Relevant
subsectionsfromtheOracleDatabaseInstallationGuide11gRelease2(11.2)forLinux
(http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/toc.htm)withcurrentlyvalidURLsareasfollows:
"AbouttheOracleRDBMSPreInstallandOracleValidatedRPMs"fromChapter1,"OverviewofOracleDatabaseInstallation":
http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/install_overview.htm#BABDBHCJ
Chapter2,"OracleDatabasePreinstallationRequirements":
http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/pre_install.htm#BABFDGHJ
"DownloadingOracleSoftware"fromChapter4,"InstallingOracleDatabase,"whichdescribeshowtodownloadinstallationfilesfromtheOracle
TechnologyNetworkWebsite:http://docs.oracle.com/cd/E11882_01/install.112/e16763/inst_task.htm#autoId6
Alsoseetheblogentry"OracleRDBMSServer11gR2PreInstallRPMforOracleLinux6hasbeenreleased":
https://blogs.oracle.com/linux/entry/oracle_rdbms_server_11gr2_pre
AbouttheAuthors
GinnyHenningsenhasworkedforthelast15yearsasafreelancewriterdevelopingtechnicalcollateralanddocumentationforhightech
companies.Priortothat,GinnyworkedforSunMicrosystems,Inc.asaSystemsEngineerinKingofPrussia,PAandMilwaukee,WI.Ginnyhasa
BAfromCarnegieMellonUniversityandaMSCSfromVillanovaUniversity.
MicheleCaseyistheDirectorofProductManagementforOracleLinux.ShehasworkedwithcommercialLinuxdistributionsandopensource
projectsasaproductmanagersince2006.Shehasalsoheldpositionsasasystemadministrator,projectmanager,andtechnicalsupport
engineer.
Revision1.1,07/09/2013addedinformationaboutusingthe
oraclerdbmsserver12cR1preinstallpackagetoinstall
OracleDatabase12c
Followus:
Blog|Facebook|Twitter|YouTube

Emailthispage

PrinterView

ORACLECLOUD
LearnAboutOracleCloud
Computing
GetaFreeTrial
LearnAboutDaaS
LearnAboutSaaS
LearnAboutPaaS
LearnAboutIaaS
LearnAboutPrivateCloud
LearnAboutManagedCloud

JAVA
LearnAboutJava
DownloadJavafor
Consumers
DownloadJavafor
Developers
JavaResourcesfor
Developers
JavaCloudService
JavaMagazine

Subscribe Careers ContactUs SiteMaps LegalNotices TermsofUse Privacy

CUSTOMERSANDEVENTS
ExploreandReadCustomer
Stories
AllOracleEvents
OracleOpenWorld
JavaOne

COMMUNITIES
Blogs

SERVICESANDSTORE
LogIntoMyOracleSupport

DiscussionForums
Wikis
OracleACEs
UserGroups
SocialMediaChannels

TrainingandCertification
BecomeaPartner
FindaPartnerSolution
PurchasefromtheOracle
Store
CONTACTANDCHAT
Phone:+1.800.633.0738
GlobalContacts
OracleSupport
PartnerSupport

CookiePreferences OracleMobile

http://www.oracle.com/technetwork/articles/serversstorageadmin/ginnydbinstallonlinux488779.html

6/6

Potrebbero piacerti anche