Oracle linux 6 安装oracle11g R2 官方文档.docx
- 文档编号:5403941
- 上传时间:2022-12-16
- 格式:DOCX
- 页数:10
- 大小:18.64KB
Oracle linux 6 安装oracle11g R2 官方文档.docx
《Oracle linux 6 安装oracle11g R2 官方文档.docx》由会员分享,可在线阅读,更多相关《Oracle linux 6 安装oracle11g R2 官方文档.docx(10页珍藏版)》请在冰豆网上搜索。
Oraclelinux6安装oracle11gR2官方文档
http:
//www.oracle-
Oraclelinux6安装oracle11gR2官方文档
OracleDatabase11gRelease2(11.2)InstallationOnOracleLinux6
ThisarticledescribestheinstallationofOracleDatabase11gRelease2(11.2)(64-bit)onOracleLinux6(64-bit).Thearticleisbasedonaserverinstallationwithaminimumof2Gswap,withSELinuxsettopermissiveandthefirewalldisabled.Thefollowingpackagegroupswereincludedforthisinstallation.
∙BaseSystem>Base
∙BaseSystem>Clientmanagementtools
∙BaseSystem>Compatibilitylibraries
∙BaseSystem>Hardwaremonitoringutilities
∙BaseSystem>LargeSystemsPerformance
∙BaseSystem>Networkfilesystemclient
∙BaseSystem>PerformanceTools
∙BaseSystem>PerlSupport
∙Servers>ServerPlatform
∙Servers>Systemadministrationtools
∙Desktops>Desktop
∙Desktops>DesktopPlatform
∙Desktops>Fonts
∙Desktops>GeneralPurposeDesktop
∙Desktops>GraphicalAdministrationTools
∙Desktops>InputMethods
∙Desktops>XWindowSystem
∙Development>AdditionalDevelopment
∙Development>DevelopmentTools
∙Applications>InternetBrowser
AnexampleofthistypeofLinuxinstallationscanbeseenhere.Alternativeinstallationsmayrequiremorepackagestobeloaded,inadditiontotheoneslistedbelow.
∙DownloadSoftware
∙UnpackFiles
∙HostsFile
oOracleInstallationPrerequisites
AutomaticSetup
oManualSetup
oAdditionalSetup
∙Installation
∙PostInstallation
∙CommonErrors
DownloadSoftware
DownloadtheOraclesoftwarefromOTNorMOSdependingonyoursupportstatus.
∙OTN:
OracleDatabase11gRelease2(11.2.0.1)Software(64-bit)-Forunsupportedinstallation.
∙MOS:
OracleDatabase11gRelease2(11.2.0.3)Software(64-bit)-Forsupportedinstallation.
UnpackFiles
Unzipthefiles.
#11.2.0.1
unziplinux.x64_11gR2_database_1of2.zip
unziplinux.x64_11gR2_database_2of2.zip
#11.2.0.2
unzipp10098816_112020_Linux-x86-64_1of7.zip
unzipp10098816_112020_Linux-x86-64_2of7.zip
#11.2.0.3
unzipp10404530_112030_Linux-x86-64_1of7.zip
unzipp10404530_112030_Linux-x86-64_2of7.zip
#11.2.0.4
unzipp13390677_112040_Linux-x86-64_1of7.zip
unzipp13390677_112040_Linux-x86-64_2of7.zip
Youshouldnowhaveasingledirectorycalled"database"containinginstallationfiles.
HostsFile
The"/etc/hosts"filemustcontainafullyqualifiednamefortheserver.
Forexample.
127.0.0.1localhost.localdomainlocalhost
192.168.0.181ol6-112.localdomainol6-112
OracleInstallationPrerequisites
PerformeithertheAutomaticSetuportheManualSetuptocompletethebasicprerequisites.TheAdditionalSetupisrequiredforallinstallations.
AutomaticSetup
Ifyouplantousethe"oracle-rdbms-server-11gR2-preinstall"packagetoperformallyourprerequisitesetup,followtheinstructionsathttp:
//public-tosetuptheyumrepositoryforOL,thenperformthefollowingcommand.
#yuminstalloracle-rdbms-server-11gR2-preinstall
Allnecessaryprerequisiteswillbeperformedautomatically.
Itisprobablyworthdoingafullupdateaswell,butthisisnotstrictlyspeakingnecessary.
#yumupdate
ManualSetup
Ifyouhavenotusedthe"oracle-rdbms-server-11gR2-preinstall"packagetoperformallprerequisites,youwillneedtomanuallyperformthefollowingsetuptasks.
Oraclerecommendthefollowingminimumparametersettings.
fs.suid_dumpable=1
fs.aio-max-nr=1048576
fs.file-max=6815744
kernel.shmall=2097152
kernel.shmmax=536870912
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=1048586
Thecurrentvaluescanbetestedusingthefollowingcommand.
/sbin/sysctl-a|grep
Addoramendthefollowinglinesinthe"/etc/sysctl.conf"file.
fs.suid_dumpable=1
fs.aio-max-nr=1048576
fs.file-max=6815744
kernel.shmall=2097152
kernel.shmmax=536870912
kernel.shmmni=4096
#semaphores:
semmsl,semmns,semopm,semmni
kernel.sem=25032000100128
net.ipv4.ip_local_port_range=900065500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
Runthefollowingcommandtochangethecurrentkernelparameters.
/sbin/sysctl-p
Addthefollowinglinestothe"/etc/security/limits.conf"file.
oraclesoftnproc2047
oraclehardnproc16384
oraclesoftnofile4096
oraclehardnofile65536
oraclesoftstack10240
Installthefollowingpackagesiftheyarenotalreadypresent.
#FromOracleLinux6DVD
cd/media/cdrom/Server/Packages
rpm-Uvhbinutils-2*x86_64*
rpm-Uvhglibc-2*x86_64*nss-softokn-freebl-3*x86_64*
rpm-Uvhglibc-2*i686*nss-softokn-freebl-3*i686*
rpm-Uvhcompat-libstdc++-33*x86_64*
rpm-Uvhglibc-common-2*x86_64*
rpm-Uvhglibc-devel-2*x86_64*
rpm-Uvhglibc-devel-2*i686*
rpm-Uvhglibc-headers-2*x86_64*
rpm-Uvhelfutils-libelf-0*x86_64*
rpm-Uvhelfutils-libelf-devel-0*x86_64*
rpm-Uvhgcc-4*x86_64*
rpm-Uvhgcc-c++-4*x86_64*
rpm-Uvhksh-*x86_64*
rpm-Uvhlibaio-0*x86_64*
rpm-Uvhlibaio-devel-0*x86_64*
rpm-Uvhlibaio-0*i686*
rpm-Uvhlibaio-devel-0*i686*
rpm-Uvhlibgcc-4*x86_64*
rpm-Uvhlibgcc-4*i686*
rpm-Uvhlibstdc++-4*x86_64*
rpm-Uvhlibstdc++-4*i686*
rpm-Uvhlibstdc++-devel-4*x86_64*
rpm-Uvhmake-3.81*x86_64*
rpm-Uvhnumactl-devel-2*x86_64*
rpm-Uvhsysstat-9*x86_64*
rpm-Uvhcompat-libstdc++-33*i686*
rpm-Uvhcompat-libcap*
cd/
eject
Note.Thiswillinstallallthenecessary32-bitpackagesfor11.2.0.1.From11.2.0.2onwardsmanyoftheseareunnecessary,buthavingthempresentdoesnotcauseaproblem.
Createthenewgroupsandusers.
groupadd-g501oinstall
groupadd-g502dba
groupadd-g503oper
groupadd-g504asmadmin
groupadd-g506asmdba
groupadd-g505asmoper
useradd-u502-goinstall-Gdba,asmdba,operoracle
passwdoracle
Note.Wearenotgoingtousethe"asm"groups,sincethisinstallationwillnotuseASM.
AdditionalSetup
Setthepasswordforthe"oracle"user.
passwdoracle
Amendthe"/etc/security/limits.d/90-nproc.conf"fileasdescribedbelow.SeeMOSNote[ID1487773.1]
#Changethis
*softnproc1024
#Tothis
*-nproc16384
SetsecureLinuxtopermissivebyeditingthe"/etc/selinux/config"file,makingsuretheSELINUXflagissetasfollows.
SELINUX=permissive
Oncethechangeiscomplete,restarttheserver.
IfyouhavetheLinuxfirewallenabled,youwillneedtodisableorconfigureit,asshownhereorhere.
CreatethedirectoriesinwhichtheOraclesoftwarewillbeinstalled.
mkdir-p/u01/app/oracle/product/11.2.0/db_1
chown-Roracle:
oinstall/u01
chmod-R775/u01
Loginasrootandissuethefollowingcommand.
xhost+
Loginastheoracleuserandaddthefollowinglinesattheendofthe".bash_profile"file.
#OracleSettings
TMP=/tmp;exportTMP
TMPDIR=$TMP;exportTMPDIR
ORACLE_HOSTNAME=ol6-112.localdomain;exportORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G;exportORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle;exportORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1;exportORACLE_HOME
ORACLE_SID=DB11G;exportORACLE_SID
PATH=/usr/sbin:
$PATH;exportPATH
PATH=$ORACLE_HOME/bin:
$PATH;exportPATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:
/lib:
/usr/lib;exportLD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:
$ORACLE_HOME/rdbms/jlib;exportCLASSPATH
Installation
Logintotheoracleuser.IfyouareusingXemulationthensettheDISPLAYenvironmentalvariable.
DISPLAY=
0.0;exportDISPLAY
StarttheOracleUniversalInstaller(OUI)byissuingthefollowingcommandinthedatabasedirectory.
./runInstaller
Proceedwiththeinstallationofyourchoice.Theprerequisitescheckswillfailforthefollowingversion-dependentreasons:
∙11.2.0.1:
Theinstallershowsmultiple"missingpackage"failuresbecauseitdoesnotrecognizeseveralofthenewerversionpackagesthatwereinstalled.These"missingpackage"failurescanbeignoredasthepackagesarepresent.Thefailureforthe"pdksh"packagecanbeignoredbecauseweinstalledthe"ksh"packageinitsplace.
∙11.2.0.2:
Theinstallershouldonlyshowasingle"missingpackage"failureforthe"pdksh"package.Itcanbeignoredbecauseweinstalledthe"ksh"packageinitsplace.
∙11.2.0.3:
Theinstallershowsnofailuresandcontinuesnormally.
YoucanseethetypeofinstallationIperformedbyclickingonthelinksbelowtoseescreenshotsofeachstage.
1ConfigureSecurityUpdates
2SelectInstallOption
3SystemClass
4NodeSelection
5SelectInstallType
6TypicalInstallConfiguration
7CreateInventory
8PerformPrerequisiteChecks
9Summary
10InstallProduct
11DatabaseConfigurationAssistant
12DatabaseConfigurationAssistant2
13ExecuteConfigurationScripts
14Finish
PostInstallation
Editthe"/etc/oratab"filesettingtherestartflagforeachinstanceto'Y'.
DB11G:
/u01/app/oracle/product/11.2.0/db_1:
Y
CommonErrors
"errorcode35":
Themachinenameinthe"/etc/hosts"fileisnotcorrect.Itneedsanentryfortheloopbackadapter(localhost)andthemachinename.IfyouareusingDNSfornameresolution,youstillneedtheloopbackadapterreferenceinthisfile.
"errorcode37":
TheDNSnotworkingproperly.Youmayalsogetthiserroristhe"/etc/hosts"fileisnotconfiguredcorrectly.
"sqlplus:
errorwhileloadingsharedlibraries:
libclntsh.so.11.1":
Theprerequisiteshavenotbeenmet.Workthroughthemagain.Specifically,makesurethe"gcc"packagehasbeeninstalled.
Listenerfailstostart-Typicallythisisduetoincorrectnameresolution.Makesurethe"/etc/hosts"and/orDNSisconfigu
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Oracle linux 安装oracle 11g R2 官方文档 安装 11 官方 文档
![提示](https://static.bdocx.com/images/bang_tan.gif)