install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx
《install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx》由会员分享,可在线阅读,更多相关《install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx(17页珍藏版)》请在冰豆网上搜索。
![install Oracle 11G on Oracle Enterprise Linux 7 OEL7.docx](https://file1.bdocx.com/fileroot1/2023-1/29/d570e9cf-6b4d-4062-a6e5-bb1b6b27c808/d570e9cf-6b4d-4062-a6e5-bb1b6b27c8081.gif)
installOracle11GonOracleEnterpriseLinux7OEL7
ThisarticlepresentshowtoinstallOracle11GonOracleEnterpriseLinux7(OEL7).
ReadfollowingarticlehowtoinstallOracleEnterpriseLinux7:
InstallOracleLinux7(OEL7) (forcomfortset2GmemoryforyourvirtualmachinebeforeproceedingwithOraclesoftwareinstallation).
InstallationsoftwareisavailableonOTNversion11.2.0.1ormetalink11.2.0.4.InthisinstallationI’mpresentinginstallationfor11.2.0.4butforpreviousversion11.2.0.Xitshouldn’tbedifferent.
OraclesoftwarewhichIverified
release11.2.0.4
p13390677_112040_Linux-x86-64_1of7.zip
p13390677_112040_Linux-x86-64_2of7.zip
OSconfigurationandpreparation
OSconfigurationisexecutedasroot.Tologinasrootjustexecutefollowingcommandinterminal.
su-root
Addgroups
--requiredgroups
/usr/sbin/groupadd-g501oinstall
/usr/sbin/groupadd-g502dba
/usr/sbin/groupadd-g503oper
AdduserOracle
/usr/sbin/useradd-u502-goinstall-Gdba,operoracle
Changepasswordforuser
passwdoracle
Addkernelparametersto/etc/sysctl.conf
kernel.shmmni=4096
kernel.shmmax=4398046511104
kernel.shmall=1073741824
kernel.sem=25032000100128
fs.aio-max-nr=1048576
fs.file-max=6815744
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
Applykernelparameters
/sbin/sysctl-p
Addfollowinglinestosetshelllimitsforuseroracleinfile/etc/security/limits.conf
oraclesoftnproc131072
oraclehardnproc131072
oraclesoftnofile131072
oraclehardnofile131072
oraclesoftcoreunlimited
oraclehardcoreunlimited
oraclesoftmemlock50000000
oraclehardmemlock50000000
The“/etc/hosts”filemustcontainafullyqualifiednamefortheserver.
Forexample.
127.0.0.1oel7localhostlocalhost.localdomain
Modify.bash_profileforuseroracleinhishomedirectory
#OracleSettings
exportTMP=/tmp
exportORACLE_HOSTNAME=
exportORACLE_UNQNAME=ORA11G
exportORACLE_BASE=/ora01/app/oracle
exportORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
exportORACLE_SID=ORA11G
PATH=/usr/sbin:
$PATH:
$ORACLE_HOME/bin
exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:
/lib:
/usr/lib;
exportCLASSPATH=$ORACLE_HOME/jlib:
$ORACLE_HOME/rdbms/jlib;
aliascdob='cd$ORACLE_BASE'
aliascdoh='cd$ORACLE_HOME'
aliastns='cd$ORACLE_HOME/network/admin'
aliasenvo='env|grepORACLE'
umask022
Checkwhichpackagesareinstalledandwhicharemissing
rpm-q--qf'%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n'binutils\
elfutils-libelf\
elfutils-libelf-devel\
gcc\
gcc-c++\
glibc\
glibc-common\
glibc-devel\
glibc-headers\
ksh\
libaio\
libaio-devel\
libgcc\
libstdc++\
libstdc++-devel\
make\
sysstat\
unixODBC\
unixODBC-devel
Inmycaseitreturnsfollowing
binutils-2.23.52.0.1-12.el7(x86_64)
elfutils-libelf-0.157-2.el7(x86_64)
packageelfutils-libelf-develisnotinstalled
gcc-4.8.2-3.el7(x86_64)
gcc-c++-4.8.2-3.el7(x86_64)
glibc-2.17-36.el7(x86_64)
glibc-common-2.17-36.el7(x86_64)
glibc-devel-2.17-36.el7(x86_64)
glibc-headers-2.17-36.el7(x86_64)
packagekshisnotinstalled
libaio-0.3.109-9.el7(x86_64)
packagelibaio-develisnotinstalled
libgcc-4.8.2-3.el7(x86_64)
libstdc++-4.8.2-3.el7(x86_64)
libstdc++-devel-4.8.2-3.el7(x86_64)
make-3.82-19.el7(x86_64)
sysstat-10.1.5-1.el7(x86_64)
packageunixODBCisnotinstalled
packageunixODBC-develisnotinstalled
Therearetwooptionstoinstallmissingpackages
▪Youneedtoinstallmissingfromdvd.Justmountitandinstallmissingpackagesusingrpm-Uvhcommandfromdirectory/Packages.
NOTE–I’musingx86_64versionofpackages
rpm-Uvhelfutils-libelf-devel*.x86_64.rpm
rpm-Uvhlibaio-devel*.x86_64.rpm
rpm-UvhunixODBC*.x86_64.rpm
rpm-Uvhksh*.x86_64.rpm
▪Runyuminstallcommandformissingpackages
--examplehowtoinstallmanypackages
yuminstallelfutils-libelf-devel\
ksh\
libaio-devel\
unixODBC*
Createdirectorystructurefordatabasesoftware
▪ORACLE_BASE–/ora01/app/oracle
▪ORACLE_HOME–/ora01/app/oracle/product/11.2.0/db_1
mkdir-p/ora01/app/oracle/product/11.2.0/db_1
chownoracle:
oinstall-R/ora01
Disablesecurelinuxbyeditingthe“/etc/selinux/config”file,makingsuretheSELINUXflagissetasfollows.ItrequiresREBOOTtobeeffective!
!
!
SELINUX=permissive
InOracleEnterpriseLinux7/tmpdataisstoredontmpfswhichconsumesmemoryandistoosmall.TorevertitbacktostoragejustrunfollowingcommandandREBOOTmachinetobeeffective.
systemctlmasktmp.mount
Installdatabasesoftware
Let’sstartwithdatabasesoftwareinstallationasoracleuser.
su-oracle
--unzipsoftware11.2.0.4
unzipp13390677_112040_Linux-x86-64_1of7.zip
unzipp13390677_112040_Linux-x86-64_2of7.zip
--Idefined4aliasesin.bash_profileofuseroracletomake
--administrationheaven:
)
[oracle@oel7~]$aliasenvocdobcdohtns
aliasenvo='env|grepORACLE'
aliascdob='cd$ORACLE_BASE'
aliascdoh='cd$ORACLE_HOME'
aliastns='cd$ORACLE_HOME/network/admin'
--runaliascommandenvotodisplayenvironmentsettings
envo
ORACLE_UNQNAME=ORA11G
ORACLE_SID=ORA11G
ORACLE_BASE=/ora01/app/oracle
ORACLE_HOSTNAME=
ORACLE_HOME=/ora01/app/oracle/product/11.2.0/db_1
--runaliascommandcdobandcdohtocheckORACLE_BASE,ORACLE_HOME
[oracle@oel7~]$cdob
[oracle@oel7oracle]$pwd
/ora01/app/oracle
[oracle@oel7db_1]$cdoh
[oracle@oel7db_1]$pwd
/ora01/app/oracle/product/11.2.0/db_1
--runinstallation
./runInstall
1.Uncheckcheckbox“IwishtoreceivesecurityupdatesviaMyOracleSupport”andthenclick“Next”button.
2.Ignorefollowingmessageandclick“Yes”button.
3.Select“Skipsoftwareupdates”andclick“Next”button.
4.Select“Createandconfigureadatabase”thenclick“Next”button.
5.Select“ServerClass”thenclick“Next”button.
6.Select“Singleinstancedatabaseinstallation”andclick“Next”button.
7.Select“TypicalInstall”andclick“Next”button.
8.Enterdatabasename,administrationpasswordforuserandclick“Next”button.
9.Justclick“Next”button.
10.Checkcheckbox“IgnoreAll”toignorethiserror.Thenclick“Next”button.
11.Justclick“Yes”buttontocontinuewithinstallation.
12.Summaryscreenjustbeforeinstallation.Click“Install”button.
13.Boringinstallation…
14.Ireceivedfollowingerrorduringlinkingbinaries
Tofixthiserroredit$ORACLE_HOME/sysman/lib/ins_emagent.mk,searchfortheline
$(MK_EMAGENT_NMECTL)
andreplacethelinewith
$(MK_EMAGENT_NMECTL)-lnnz11
thenclick“Retry”button
15.DatabaseConfigurationwillstartandcreatedatabaseforyou.
16.Youshouldseesummaryscreenforyournewdatabase.Click“OK”buttontocontinuewithinstallation.
17.Inthe“middle”ofinstallationyouwillbeaskedtorun2scriptsasuserroot.whenscriptsareexecutedjustclick“OK”button.Installationwillproceed.
--executescripts
/ora01/app/oraInventory/orainstRoot.sh
/ora01/app/oracle/product/11.2.0/db_1/root.sh
18.Installationcompleted.Justclick“Close”button.
Postinstallationsteps
Editthe“/etc/oratab”filetosetrestartflagforORA11Gto‘Y’.
ORA11G:
/u01/app/oracle/product/11.2.0/db_1:
Y
Haveafun