加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Oracle19c-19cRACInstallonCentOS7.4(vSphere5.1)-3

(2019-07-10 10:35:42)
分类: Oracle DBA
######################################
登陆到grid 用户,执行安装文件,在节点1执行;
 1、全面检查 
./runcluvfy.sh stage -pre crsinst -n 19c01,19c02 -verbose 
2、检查网络和等效性 
./runcluvfy.sh comp nodecon -n 19c01,19c02 -verbose 
3、安装 
./gridSetup.sh
4、安装后验证  
$ORACLE_HOME/runcluvfy.sh  stage -post  crsinst -n "19c01,19c02"  -verbose
######################################

su - grid

mkdir  -p $ORACLE_HOME
unzip LINUX.X64_193000_grid_home.zip -d $ORACLE_HOME


######################################第一次全面检查
cd $ORACLE_HOME
[grid@19c01 grid]$ ./runcluvfy.sh stage -pre crsinst -n 19c01,19c02 -verbose 

######################################检查网络和等效性 
[grid@19c01 grid]$ ./runcluvfy.sh comp nodecon -n 19c01,19c02 -verbose 



######################################Install GRID

我打开Xmanager5.0 - Passive,设置DISPLAY,调用gridSetup.sh启动OUI

[root@19c01 ~]# su - grid
[grid@19c01 ~]$ cd $ORACLE_HOME 
[grid@19c01 grid]$ export DISPLAY=192.168.7.103:0.0
[grid@19c01 grid]$ ./gridSetup.sh

Launching Oracle Grid Infrastructure Setup Wizard...

......


asm 密码  Helloroot7$

......





login as root:
/oracle/app/oraInventory/orainstRoot.sh
/oracle/software/root.sh


[root@19c01 ~]# /u01/app/oraInventory/orainstRoot.sh
[root@19c01 ~]# /u01/app/19.3.0/grid/root.sh


[root@19c02 tmp]# /u01/app/oraInventory/orainstRoot.sh
[root@19c02 tmp]# /u01/app/19.3.0/grid/root.sh



[root@19c01 ~]# su - grid
[grid@19c01 ~]$ crsctl status resource -t
[grid@19c01 grid]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.chad
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.net1.network
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.ons
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.19c01.vip
            ONLINE  ONLINE       19c01                    STABLE
ora.19c02.vip
            ONLINE  ONLINE       19c02                    STABLE
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.LISTENER_SCAN1.lsnr
            ONLINE  ONLINE       19c01                    STABLE
ora.OCRVOTE.dg(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.asm(ora.asmgroup)
            ONLINE  ONLINE       19c01                    Started,STABLE
            ONLINE  ONLINE       19c02                    Started,STABLE
            OFFLINE OFFLINE                               STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.cvu
            ONLINE  ONLINE       19c01                    STABLE
ora.qosmserver
            ONLINE  ONLINE       19c01                    STABLE
ora.scan1.vip
            ONLINE  ONLINE       19c01                    STABLE
--------------------------------------------------------------------------------


grid@19c01 bin]$  crsctl check has
CRS-4638: Oracle High Availability Services is online
[grid@19c01 bin]$ 
[grid@19c01 bin]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
[grid@19c01 bin]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online



安装后验证  
$ORACLE_HOME/runcluvfy.sh  stage -post  crsinst -n "19c01,19c02"  -verbose

[grid@19c01 bin]$ $ORACLE_HOME/runcluvfy.sh  stage -post  crsinst -n "19c01,19c02"  -verbose



创建ASM磁盘组

[grid@19c01 ~]$ id
uid=1100(grid) gid=1000(oinstall) groups=1000(oinstall),1020(asmadmin),1021(asmdba),1022(asmoper),1031(dba)
[grid@19c01 ~]$ export DISPLAY=192.168.7.103:0.0
[grid@19c01 ~]$ asmca

+DATA



######################################
登陆到oracle 用户,执行安装文件,在节点1执行;
 1、全面检查 
./runcluvfy.sh stage -pre dbinst -n 19c01,19c02 -verbose 
2、安装rdbms
 ./runInstaller
3、创建数据库
dbca
######################################
su - oracle
[oracle@19c01 tmp]$mkdir  -p $ORACLE_HOME
[oracle@19c01 tmp]$ unzip LINUX.X64_193000_db_home.zip -d $ORACLE_HOME



#################################################安装前检查
/u01/app/19.3.0/grid/runcluvfy.sh stage -pre dbinst -n "19c01,19c02"  -verbose

[oracle@19c01 db_1]$ /u01/app/19.3.0/grid/runcluvfy.sh stage -pre dbinst -n "19c01,19c02"  -verbose



######################################InstallRDBMS:
[oracle@19c01 db_1]$cd $ORACLE_HOME
[oracle@19c01 db_1]$ pwd
/u01/app/oracle/19.3/db_1
[oracle@19c01 db_1]$ ls -l runInstaller
-rwxr-x--- 1 oracle oinstall 1783 Jun 21 15:54 runInstaller
[oracle@19c02 db_1]$ 
[oracle@19c01 database]$ export DISPLAY=192.168.7.103:0.0
[oracle@19c01 database]$ ./runInstaller
Starting Oracle Universal Installer...
[13:46:15]Launching Oracle Grid Infrastructure Setup Wizard...
[13:46:15]
[14:12:01]The response file for this session can be found at:
[14:12:01] /u01/app/19.3.0/grid/install/response/grid_2019-06-21_01-46-00PM.rsp
[14:12:01]
[14:12:04]You can find the log of this install session at:
[14:12:04] /tmp/GridSetupActions2019-06-21_01-46-00PM/gridSetupActions2019-06-21_01-46-00PM.log
[14:37:52]Moved the install session logs to:
[14:37:52] /u01/app/oraInventory/logs/GridSetupActions2019-06-21_01-46-00PM





[root@19c01 oracle]# /oracle/app/oracle/19.3/db_1/root.sh


[grid@19c01 grid]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.chad
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.net1.network
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.ons
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.19c01.vip
            ONLINE  ONLINE       19c01                    STABLE
ora.19c02.vip
            ONLINE  ONLINE       19c02                    STABLE
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.LISTENER_SCAN1.lsnr
            ONLINE  ONLINE       19c01                    STABLE
ora.OCRVOTE.dg(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.asm(ora.asmgroup)
            ONLINE  ONLINE       19c01                    Started,STABLE
            ONLINE  ONLINE       19c02                    Started,STABLE
            OFFLINE OFFLINE                               STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.cvu
            ONLINE  ONLINE       19c01                    STABLE
ora.qosmserver
            ONLINE  ONLINE       19c01                    STABLE
ora.scan1.vip
            ONLINE  ONLINE       19c01                    STABLE
--------------------------------------------------------------------------------




创建数据库
su - oracle

[oracle@19c01 database]$export DISPLAY=192.168.7.119:0.0
[oracle@19c01 database]$ id
uid=54321(oracle) gid=54421(oinstall) groups=54421(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54327(asmdba),54330(racdba)
[oracle@19c01 database]$ dbca


Helloroot7$

[grid@19c01 ~]$  crsctl status resource -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.chad
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.net1.network
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
ora.ons
               ONLINE  ONLINE       19c01                    STABLE
               ONLINE  ONLINE       19c02                    STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.19c01.vip
            ONLINE  ONLINE       19c01                    STABLE
ora.19c02.vip
            ONLINE  ONLINE       19c02                    STABLE
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.DATA.dg(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            ONLINE  OFFLINE                               STABLE
ora.LISTENER_SCAN1.lsnr
            ONLINE  ONLINE       19c01                    STABLE
ora.OCRVOTE.dg(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.asm(ora.asmgroup)
            ONLINE  ONLINE       19c01                    Started,STABLE
            ONLINE  ONLINE       19c02                    Started,STABLE
            OFFLINE OFFLINE                               STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
            ONLINE  ONLINE       19c01                    STABLE
            ONLINE  ONLINE       19c02                    STABLE
            OFFLINE OFFLINE                               STABLE
ora.cndb.db
            ONLINE  ONLINE       19c01                    Open,HOME=/u01/app/o
                                                             racle/19.3/db_1,STAB
                                                             LE
            ONLINE  ONLINE       19c02                    Open,HOME=/u01/app/o
                                                             racle/19.3/db_1,STAB
                                                             LE
ora.cvu
            ONLINE  ONLINE       19c01                    STABLE
ora.qosmserver
            ONLINE  ONLINE       19c01                    STABLE
ora.scan1.vip
            ONLINE  ONLINE       19c01                    STABLE





0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有