Oracle19c-19cRACInstallonCentOS7.4(vSphere5.1)-3
(2019-07-10 10:35:42)| 分类: Oracle DBA |
######################################
登陆到grid 用户,执行安装文件,在节点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
ora.chad
ora.net1.network
ora.ons
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.19c01.vip
ora.19c02.vip
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
ora.LISTENER_SCAN1.lsnr
ora.OCRVOTE.dg(ora.asmgroup)
ora.asm(ora.asmgroup)
ora.asmnet1.asmnetwork(ora.asmgroup)
ora.cvu
ora.qosmserver
ora.scan1.vip
--------------------------------------------------------------------------------
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执行;
./runcluvfy.sh stage -pre dbinst -n 19c01,19c02
-verbose
2、安装rdbms
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
ora.chad
ora.net1.network
ora.ons
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.19c01.vip
ora.19c02.vip
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
ora.LISTENER_SCAN1.lsnr
ora.OCRVOTE.dg(ora.asmgroup)
ora.asm(ora.asmgroup)
ora.asmnet1.asmnetwork(ora.asmgroup)
ora.cvu
ora.qosmserver
ora.scan1.vip
--------------------------------------------------------------------------------
创建数据库
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
ora.chad
ora.net1.network
ora.ons
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.19c01.vip
ora.19c02.vip
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
ora.DATA.dg(ora.asmgroup)
ora.LISTENER_SCAN1.lsnr
ora.OCRVOTE.dg(ora.asmgroup)
ora.asm(ora.asmgroup)
ora.asmnet1.asmnetwork(ora.asmgroup)
ora.cndb.db
ora.cvu
ora.qosmserver
ora.scan1.vip

加载中…