rhel72安装12cRAC.docx
- 文档编号:5979181
- 上传时间:2023-01-02
- 格式:DOCX
- 页数:48
- 大小:3.13MB
rhel72安装12cRAC.docx
《rhel72安装12cRAC.docx》由会员分享,可在线阅读,更多相关《rhel72安装12cRAC.docx(48页珍藏版)》请在冰豆网上搜索。
rhel72安装12cRAC
Atleast4GBofRAMforOracleGridInfrastructureforastandaloneserverincluding
installationswhereyouplantoinstallOracleDatabase.
ThefollowingtabledescribestherelationshipbetweeninstalledRAMandthe
configuredswapspacerecommendation:
Table6–1SwapSpaceRequirementforOracleRestart
RAMSwapSpace
Between4GBand16GBEqualtothesizeoftheRAM
Morethan16GB16GB
软件包
PackagesforOracleLinux7andRedHatEnterpriseLinux7
Thefollowingpackages(orlaterversions)mustbeinstalled:
binutils-2.23.52.0.1-12.el7.x86_64
compat-libcap1-1.10-3.el7.x86_64
compat-libstdc++-33-3.2.3-71.el7.i686
compat-libstdc++-33-3.2.3-71.el7.x86_64
gcc-4.8.2-3.el7.x86_64
gcc-c++-4.8.2-3.el7.x86_64
glibc-2.17-36.el7.i686
glibc-2.17-36.el7.x86_64
glibc-devel-2.17-36.el7.i686
glibc-devel-2.17-36.el7.x86_64
ksh
libaio-0.3.109-9.el7.i686
libaio-0.3.109-9.el7.x86_64
libaio-devel-0.3.109-9.el7.i686
libaio-devel-0.3.109-9.el7.x86_64
libgcc-4.8.2-3.el7.i686
libgcc-4.8.2-3.el7.x86_64
libstdc++-4.8.2-3.el7.i686
libstdc++-4.8.2-3.el7.x86_64
libstdc++-devel-4.8.2-3.el7.i686
libstdc++-devel-4.8.2-3.el7.x86_64
libXi-1.7.2-1.el7.i686
libXi-1.7.2-1.el7.x86_64
libXtst-1.2.2-1.el7.i686
libXtst-1.2.2-1.el7.x86_64
make-3.82-19.el7.x86_64
sysstat-10.1.5-1.el7.x86_64
yuminstall-ybinutils*\
compat-libcap1*\
compat-libstdc++*i686*\
compat-libstdc++*\
gcc*\
gcc-c++*\
glibc*i686*\
glibc*\
glibc-devel*i686*\
glibc-devel*\
ksh*\
libaio*i686*\
libaio*\
libaio-devel*i686*\
libaio-devel*\
libgcc*i686*\
libgcc*\
libstdc++*686*\
libstdc++*\
libstdc++-devel*i686*\
libstdc++-devel*\
libXi*686*\
libXi*\
libXtst*686*\
libXtst*\
make*\
sysstat*\
unixODBC*\
smartmontools*\
nfs-utils*
部分语句需要perl安装包
yuminstall-yperl*
内核参数
cat/etc/sysctl.conf
fs.aio-max-nr=1048576
fs.file-max=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
sysctl-p
修改RemoveIPC参数
为了避免linux7.2的新特性,在一个user完全退出OS后会remove掉所有的IPC对象,需要修改如下参数
1).设置/etc/systemd/logind.conf中RemoveIPC=no
2).重启服务器或者重启systemd-logind
重启systemd-logind:
#systemctldaemon-reload
#systemctlrestartsystemd-logind
配置文件系统描述符
/etc/security/limits.conf
oraclesoftnofile1024
oraclehardnofile65536
oraclesoftnproc2047
oraclehardnproc16384
oraclesoftstack10240
oraclehardstack10240
检查用户限制
checkresourcelimits:
1.Loginasaninstallationowner.
2.Checkthesoftandhardlimitsforthefiledescriptorsetting.Ensurethattheresult
isintherecommendedrange,forexample:
$ulimit-Sn
1024
$ulimit-Hn
65536
3.Checkthesoftandhardlimitsforthenumberofprocessesavailabletoauser.
Ensurethattheresultisintherecommendedrange,forexample:
$ulimit-Su
2047
$ulimit-Hu
16384
4.Checkthesoftlimitforthestacksetting.Ensurethattheresultisinthe
recommendedrange,forexample:
$ulimit-Ss
10240
$ulimit-Hs
32768
用户
[root@node1~]#groupaddoinstall
[root@node1~]#groupadddba
[root@node1~]#groupaddoper
[root@node1~]#groupaddasmadmin
[root@node1~]#groupaddasmdba
[root@node1~]#groupaddasmoper
[root@node1~]#useradd-goinstall-Gdba,oper,asmadmin,asmdba,asmoperoracle
[root@node1~]#useradd-goinstall-Gdba,oper,asmadmin,asmdba,asmopergrid
注:
可以指定各组和用户的gid和id
[root@node1~]#mkdir-p/u01/app/oracle/product/12.1/db
[root@node1~]#mkdir-p/u01/app/grid
[root@node1~]#chown-Roracle:
oinstall/u01
[root@node1~]#chown-Rgrid:
oinstall/u01/app/grid/
[root@node1/]#chmod-R775/u01
环境变量
grid
exportORACLE_BASE=/u01/app/oracle
exportORACLE_HOME=/u01/app/grid
exportORACLE_SID=+ASM
exportPATH=$PATH:
$ORACLE_HOME/bin
oracle
exportORACLE_BASE=/u01/app/oracle
exportORACLE_HOME=$ORACLE_BASE/product/11.2/db
exportORACLE_SID=orcl
exportPATH=$PATH:
$ORACLE_HOME/bin
hosts
#publicip
192.168.56.25node1
192.168.56.26node2
#privateip
192.168.1.201node1_priv
192.168.1.202node2_priv
#virtualip
192.168.56.140node1_vip
192.168.56.141node2_vip
#scan
192.168.56.102node-scan
配置UDEV
foriinbcdef
do
echo"KERNEL==\"sd?
\",SUBSYSTEM==\"block\",PROGRAM==\"/usr/lib/udev/scsi_id--whitelisted--replace-whitespace--device=/dev/\$name\",RESULT==\"`/usr/lib/udev/scsi_id--whitelisted--replace-whitespace--device=/dev/sd$i`\",SYMLINK+=\"asm/asm-disk$i\",OWNER=\"grid\",GROUP=\"asmadmin\",MODE=\"0660\""
done
KERNEL=="sd?
",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id--whitelisted--replace-whitespace--device=/dev/$name",RESULT=="1ATA_VBOX_HARDDISK_VB643cc029-d15c9d7f",SYMLINK+="asm/asm-ocr",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd?
",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id--whitelisted--replace-whitespace--device=/dev/$name",RESULT=="1ATA_VBOX_HARDDISK_VB3573396a-3835f2b4",SYMLINK+="asm/asm-data01",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd?
",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id--whitelisted--replace-whitespace--device=/dev/$name",RESULT=="1ATA_VBOX_HARDDISK_VB399bd462-d5e2e424",SYMLINK+="asm/asm-data02",OWNER="grid",GROUP="asmadmin",MODE="0660"
使kernel重新读取磁盘信息:
partprobe
安装GI
./runInstaller
[root@node1~]#/tmp/CVU_12.1.0.2.0_grid/runfixup.sh
AllFix-upoperationswerecompletedsuccessfully.
[root@node2~]#/tmp/CVU_12.1.0.2.0_grid/runfixup.sh
AllFix-upoperationswerecompletedsuccessfully.
安装grid时,检查taskresolv.confintegrity警告
如果没有配置DNS(只在hosts文件里标明),检测/etc/resolv.conf会失败的,可以忽略该警告,不影响安装,或配置dns服务,重新检测。
[root@node1run]#/u01/app/oraInventory/orainstRoot.sh
Changingpermissionsof/u01/app/oraInventory.
Addingread,writepermissionsforgroup.
Removingread,write,executepermissionsforworld.
Changinggroupnameof/u01/app/oraInventorytooinstall.
Theexecutionofthescriptiscomplete.
[root@node2app]#/u01/app/oraInventory/orainstRoot.sh
Changingpermissionsof/u01/app/oraInventory.
Addingread,writepermissionsforgroup.
Removingread,write,executepermissionsforworld.
Changinggroupnameof/u01/app/oraInventorytooinstall.
Theexecutionofthescriptiscomplete.
[root@node1run]#/u01/app/grid/root.sh
Performingrootuseroperation.
Thefollowingenvironmentvariablesaresetas:
ORACLE_OWNER=grid
ORACLE_HOME=/u01/app/grid
Enterthefullpathnameofthelocalbindirectory:
[/usr/local/bin]:
Copyingdbhometo/usr/local/bin...
Copyingoraenvto/usr/local/bin...
Copyingcoraenvto/usr/local/bin...
Creating/etc/oratabfile...
Entrieswillbeaddedtothe/etc/oratabfileasneededby
DatabaseConfigurationAssistantwhenadatabaseiscreated
Finishedrunninggenericpartofrootscript.
Nowproduct-specificrootactionswillbeperformed.
Usingconfigurationparameterfile:
/u01/app/grid/crs/install/crsconfig_params
2016/09/2116:
19:
07CLSRSC-4001:
InstallingOracleTraceFileAnalyzer(TFA)Collector.
2016/09/2116:
19:
40CLSRSC-4002:
SuccessfullyinstalledOracleTraceFileAnalyzer(TFA)Collector.
2016/09/2116:
19:
41CLSRSC-363:
Userignoredprerequisitesduringinstallation
OLRinitialization-successful
rootwallet
rootwalletcert
rootcertexport
peerwallet
profilereaderwallet
pawallet
peerwalletkeys
pawalletkeys
peercertrequest
pacertrequest
peercert
pacert
peerrootcertTP
profilereaderrootcertTP
parootcertTP
peerpacertTP
papeercertTP
profilereaderpacertTP
profilereaderpeercertTP
peerusercert
pausercert
2016/09/2116:
20:
36CLSRSC-330:
AddingClusterwareentriestofile'oracle-ohasd.service'
CRS-4133:
OracleHighAvailabilityServiceshasbeenstopped.
CRS-4123:
OracleHighAvailabilityServiceshasbeenstarted.
CRS-4133:
OracleHighAvailabilityServiceshasbeenstopped.
CRS-4123:
OracleHighAvailabilityServiceshasbeenstarted.
CRS-2672:
Attemptingtostart'ora.evmd'on'node1'
CRS-2672:
Attemptingtostart'ora.mdnsd'on'node1'
CRS-2676:
Startof'ora.mdnsd'on'node1'succeeded
CRS-2676:
Startof'ora.evmd'on'node1'succeeded
CRS-2672:
Attemptingtostart'ora.gpnpd'on'node1'
CRS-2676:
Startof'ora.gpnpd'on'node1'succeeded
CRS-2672:
Attemptingtostart'ora.cssdmonitor'on'node1'
CRS-2672:
Attemptingtostart'ora.gipcd'on'node1'
CRS-2676:
Startof'ora.cssdmonitor'on'node1'succeeded
CRS-2676:
Startof'ora.gipcd'on'node1'succeeded
CRS-2672:
Attemptingtostart'ora.cssd'on'node1'
CRS-2672:
Attemptingtostart'ora.diskmon'on'node1'
CRS-2676:
Startof'ora.diskmon'on'node1'succeeded
CRS-2676:
Startof'ora.cssd'on'node1'succeeded
ASMcreatedandstartedsuccessfully.
DiskGroupOCRcreatedsuccessfully.
CRS-2672:
Attemptingtostart'ora.crf'on'node1'
CRS-2672:
Attemptingtostart'ora.storage'on'node1'
CRS-2676:
Startof'ora.storage'on'node1'succeeded
CRS-2676:
Startof'ora.crf'on'node1'succeeded
CRS-2672:
Attemptingtostart'ora.crsd'on'node1'
CRS-2676:
Startof'ora.crsd'on'node1'succeeded
CRS-4256:
Updatingtheprofile
Successfuladditionofvotingdisk5c042471f7f14f73bf05e1007ab17807.
Successfullyreplacedvotingdiskgroupwith+OCR.
CRS-4256:
Updatingtheprofile
CRS-4266:
Votingfile(s)successfullyreplaced
##STATEFileUniversalIdFileNameDiskgroup
------------------------------------------
1.ONLINE5c042471f7f14f73bf05e1007ab17807(/dev/asm/asm_ocr01)[OCR]
Located1votingdisk(s).
CRS-2791:
StartingshutdownofOracleHighAvailabilityServices-managedresourceson'node1'
CRS-2673:
Attemptingtostop'ora.crsd'on'node1'
CRS-2677:
Stopof'ora.crsd'on'node1'succeeded
CRS-2673:
Attemptingtostop'ora.ctss
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- rhel72 安装 12 cRAC
![提示](https://static.bdocx.com/images/bang_tan.gif)