redhat 6.4安装oracle11g RAC (三)

为数据和快速恢复去创建ASM磁盘组
只在节点rac1执行即可,进入grid用户下

[grid@rac1 grid]$ srvctl status asm -a
ASM is running on rac2,rac1
ASM is enabled.
[grid@rac1 grid]$ ps -ef|grep lsnr|grep -v 'grep'|grep -v 'ocfs'|awk '{print$9}'
LISTENER_SCAN1
LISTENER
[grid@rac1 grid]$ asmca

安装grid时配置的OCR盘已存在redhat 6.4安装oracle11g RAC (三)_第1张图片
添加DATA盘,点击create,
redhat 6.4安装oracle11g RAC (三)_第2张图片
redhat 6.4安装oracle11g RAC (三)_第3张图片同样创建FRA盘,

redhat 6.4安装oracle11g RAC (三)_第4张图片
redhat 6.4安装oracle11g RAC (三)_第5张图片
ASM磁盘组情况
redhat 6.4安装oracle11g RAC (三)_第6张图片
ASM实例redhat 6.4安装oracle11g RAC (三)_第7张图片
安装Oracle database软件(RAC)
1.安装流程
只需要在节点rac1上执行即可

[root@rac1 software]# unzip p13390677_112040_Linux-x86-64_1of7.zip 
[root@rac1 software]# unzip p13390677_112040_Linux-x86-64_2of7.zip 
[root@rac1 software]# chown  -R oracle:oinstall database/
[root@rac1 software]# chmod -R 775 database/
[root@rac1 software]# 
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ echo $DISPLAY
192.168.182.1:0.0
[oracle@rac1 ~]$ 
[oracle@rac1 ~]$ cd db/database
[oracle@rac1 database]$ ./runInstaller 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7034 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8078 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2023-06-20_06-36-21PM. Please wait ...[oracle@rac1 database]$ 

进入图形化界面,跳过更新
redhat 6.4安装oracle11g RAC (三)_第8张图片
redhat 6.4安装oracle11g RAC (三)_第9张图片
跳过软件更新
redhat 6.4安装oracle11g RAC (三)_第10张图片
只安装软件
**redhat 6.4安装oracle11g RAC (三)_第11张图片
选择Oracel Real Application Clusters database installation按钮(默认),确保勾选所有的节点
redhat 6.4安装oracle11g RAC (三)_第12张图片
这里的SSH Connectivity是配置每个节点之间的oracle用户互信,前面已手动配置过,可以不配

选择语言English
redhat 6.4安装oracle11g RAC (三)_第13张图片
选择企业版
redhat 6.4安装oracle11g RAC (三)_第14张图片
安装Oracle软件路径,其中ORACLE_BASE,ORACLE_HOME均选择之前配置好的,默认选择
redhat 6.4安装oracle11g RAC (三)_第15张图片默认
oracle权限授予用户组
redhat 6.4安装oracle11g RAC (三)_第16张图片
这两个错误前面有说明,忽略


错误提示:
如果有
1. Node Application Existence
PRVF-4557:Node application "ora.rac1.vip" is offline on node "rac1"
说明是rac1 出异常,vip飘到rac2,正常rac1恢复会自动飘回,可以手动
crsctl relocate resource ora.cnsz001.vip

2. Node Connectivity
检查
[grid@cnsz002 grid]$ ./runcluvfy.sh stage -post hwos -n cnsz001,cnsz002 -verbose  

3. 在RHEL7或者OL7上安装11.2.0.4时遇到错误 “undefined reference to symbol ‘B_DestroyKeyObject’”
来源于:
Installation of Oracle 11.2.0.4 on OL7 fails with “undefined reference to symbol ‘B_DestroyKeyObject’” error (文档 ID 1965691.1)

适用于:
Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]
Oracle Database - Standard Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]
Linux x86-64


usr/bin/ld: /u01/app/oracle/product/11.2.0/dbhome_1/sysman/lib//libnmectl.a(nmectlt.o): undefined reference to symbol ‘B_DestroyKeyObject’
/usr/bin/ld: note: ‘B_DestroyKeyObject’ is defined in DSO /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so so try adding it to the linker command line
 /u01/app/oracle/product/11.2.0/dbhome_1/lib/libnnz11.so: could not read symbols: Invalid operation
 collect2: error: ld returne
 INFO: d 1 exit status

原因:
未公开的bug 19692824

解决方法:
01) 忽略 Oracle 11.2.0.4安装过程中的 undefined symbol error 错误并继续安装,软件安装过程将会在没有错误的情况下成功结束
02) 下载并安装patch 19692824
03)11.2.0.4的HOME设置诸如ORACLE_HOME, PATH等等的环境变量,并使用下面的命令来重新编译失败的target

redhat 6.4安装oracle11g RAC (三)_第17张图片
redhat 6.4安装oracle11g RAC (三)_第18张图片
安装RAC的概要信息
redhat 6.4安装oracle11g RAC (三)_第19张图片
开始安装,会自动复制到其他节点
redhat 6.4安装oracle11g RAC (三)_第20张图片
安装完,在每个节点用root用户执行脚本
redhat 6.4安装oracle11g RAC (三)_第21张图片

[root@rac1 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/11.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@rac1 ~]# 

安装完成,closeredhat 6.4安装oracle11g RAC (三)_第22张图片
至此在RAC双节点上完成oracle软件安装,安装日志在

[oracle@rac1 database]$ ./runInstaller 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7034 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8078 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2023-06-20_06-36-21PM. Please wait ...[oracle@rac1 database]$ You can find the log of this install session at:
 /u01/app/oraInventory/logs/installActions2023-06-20_06-36-21PM.log

你可能感兴趣的:(oracle,linux,数据库)