1. 程式人生 > >Oracle11g RAC叢集啟動關閉

Oracle11g RAC叢集啟動關閉

1.切換到叢集使用者grid

[root@rac1 ~]# su - grid
  • 1
  • 1

2.檢視叢集資源狀態(ora.gsd 11G不使用此資源 所以OFFLINE為正常狀態)

[[email protected] ~]$ crs_stat -t
Name           Type           Target    State     Host        
ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    rac1        
ora.DATADG.dg  ora....up.type ONLINE    ONLINE    rac1        
ora....ER
.lsnr ora....er.type ONLINE ONLINE rac1 ora....N1.lsnr ora....er.type ONLINE ONLINE rac2 ora.asm ora.asm.type ONLINE ONLINE rac1 ora.bnuoa.db ora....se.type ONLINE ONLINE rac1 ora.cvu ora.cvu.type ONLINE ONLINE rac2 ora.gsd
ora.gsd.type OFFLINE OFFLINE ora....network ora....rk.type ONLINE ONLINE rac1 ora.oc4j ora.oc4j.type ONLINE ONLINE rac2 ora.ons ora.ons.type ONLINE ONLINE rac1 ora....SM1.asm application ONLINE ONLINE rac1 ora....C
1.lsnr application ONLINE ONLINE rac1 ora.rac1.gsd application OFFLINE OFFLINE ora.rac1.ons application ONLINE ONLINE rac1 ora.rac1.vip ora....t1.type ONLINE ONLINE rac1 ora....SM2.asm application ONLINE ONLINE rac2 ora....C2.lsnr application ONLINE ONLINE rac2 ora.rac2.gsd application OFFLINE OFFLINE ora.rac2.ons application ONLINE ONLINE rac2 ora.rac2.vip ora....t1.type ONLINE ONLINE rac2 ora....ry.acfs ora....fs.type ONLINE ONLINE rac1 ora.scan1.vip ora....ip.type ONLINE ONLINE rac2
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25

3.關閉伺服器步驟

1)關閉資料庫(兩個節點都要執行) ORACLE使用者
-------第一節點
[[email protected] ~]# su - oracle
[[email protected] ~]$ echo $ORACLE_SID
bnuoa1
[[email protected] ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue Oct 20 09:59:29 2015
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>

-------第二節點
[[email protected] ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Tue Oct 20 10:02:27 2015
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>

(2)關閉叢集(一個節點執行即可,等待時間較長)ROOT使用者
[[email protected] ~]# cd /u01/app/11.2.0/grid/bin/
[[email protected] bin]# ./crsctl  stop  cluster  -all
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.CRSDG.dg' on 'rac2'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac2'
CRS-2673: Attempting to stop 'ora.DATADG.dg' on 'rac2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.CRSDG.dg' on 'rac1'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac1'
CRS-2673: Attempting to stop 'ora.DATADG.dg' on 'rac1'
CRS-2677: Stop of 'ora.DATADG.dg' on 'rac1' succeeded
CRS-2677: Stop of 'ora.DATADG.dg' on 'rac2' succeeded
CRS-2677: Stop of 'ora.registry.acfs' on 'rac1' succeeded
CRS-2677: Stop of 'ora.registry.acfs' on 'rac2' succeeded
CRS-2677: Stop of 'ora.CRSDG.dg' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2677: Stop of 'ora.CRSDG.dg' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac2'
CRS-2677: Stop of 'ora.net1.network' on 'rac2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac2' has completed
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac1'
CRS-2677: Stop of 'ora.net1.network' on 'rac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac1' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac2'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac2'
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac1'
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.evmd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac2'
CRS-2677: Stop of 'ora.ctssd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac2'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.cssd' on 'rac2' succeeded

(3)檢視叢集狀態。
[[email protected] ~]$ crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
(4)當前可正常關閉伺服器。
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91

4.開啟伺服器步驟

1)正常情況下重啟伺服器,叢集會自動啟動(等待時間15-20分鐘)
(2)手動啟動,先檢視叢集狀態
[[email protected] bin]# su - grid
[[email protected] ~]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.CRSDG.dg   ora....up.type OFFLINE   OFFLINE               
ora.DATADG.dg  ora....up.type OFFLINE   OFFLINE               
ora....ER.lsnr ora....er.type OFFLINE   OFFLINE               
ora....N1.lsnr ora....er.type OFFLINE   OFFLINE               
ora.asm        ora.asm.type   OFFLINE   OFFLINE               
ora.bnuoa.db   ora....se.type OFFLINE   OFFLINE               
ora.cvu        ora.cvu.type   OFFLINE   OFFLINE               
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type OFFLINE   OFFLINE               
ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE               
ora.ons        ora.ons.type   OFFLINE   OFFLINE               
ora....SM1.asm application    OFFLINE   OFFLINE               
ora....C1.lsnr application    OFFLINE   OFFLINE               
ora.rac1.gsd   application    OFFLINE   OFFLINE               
ora.rac1.ons   application    OFFLINE   OFFLINE               
ora.rac1.vip   ora....t1.type OFFLINE   OFFLINE               
ora....SM2.asm application    OFFLINE   OFFLINE               
ora....C2.lsnr application    OFFLINE   OFFLINE               
ora.rac2.gsd   application    OFFLINE   OFFLINE               
ora.rac2.ons   application    OFFLINE   OFFLINE               
ora.rac2.vip   ora....t1.type OFFLINE   OFFLINE               
ora....ry.acfs ora....fs.type OFFLINE   OFFLINE               

(3)手動啟動,啟動叢集(一個節點執行即可) ROOT使用者
[[email protected] ~]# cd /u01/app/11.2.0/grid/bin/
[[email protected] bin]# ./crsctl start cluster -n rac1 rac2
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac2'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac2'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac2'
CRS-2676: Start of 'ora.evmd' on 'rac1' succeeded
CRS-2676: Start of 'ora.evmd' on 'rac2' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac2'
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac2'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
CRS-2676: Start of 'ora.crsd' on 'rac2' succeeded

2.檢視叢集資源狀態(ora.gsd 11G不使用此資源 所以OFFLINE為正常狀態)
[[email protected] ~]$ crs_stat -t
Name           Type           Target    State     Host
------------------------------------------------------------
ora.CRSDG.dg   ora....up.type ONLINE    ONLINE    rac1
ora.DATADG.dg  ora....up.type ONLINE    ONLINE    rac1
ora....ER.lsnr ora....er.type ONLINE    ONLINE    rac1
ora....N1.lsnr ora....er.type ONLINE    ONLINE    rac1
ora.asm        ora.asm.type   ONLINE    ONLINE    rac1
ora.bnuoa.db   ora....se.type ONLINE    ONLINE    rac1
ora.cvu        ora.cvu.type   ONLINE    ONLINE    rac1
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE
ora....network ora....rk.type ONLINE    ONLINE    rac1
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    rac1
ora.ons        ora.ons.type   ONLINE    ONLINE    rac1
ora....SM1.asm application    ONLINE    ONLINE    rac1
ora....C1.lsnr application    ONLINE    ONLINE    rac1
ora.rac1.gsd   application    OFFLINE   OFFLINE
ora.rac1.ons   application    ONLINE    ONLINE    rac1
ora.rac1.vip   ora....t1.type ONLINE    ONLINE    rac1
ora....SM2.asm application    ONLINE    ONLINE    rac2
ora....C2.lsnr application    ONLINE    ONLINE    rac2
ora.rac2.gsd   application    OFFLINE   OFFLINE
ora.rac2.ons   application    ONLINE    ONLINE    rac2
ora.rac2.vip   ora....t1.type ONLINE    ONLINE    rac2
ora....ry.acfs ora....fs.type ONLINE    ONLINE    rac1
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    rac1

相關推薦

Oracle11g RAC叢集啟動關閉

1.切換到叢集使用者grid [root@rac1 ~]# su - grid11 2.檢視叢集資源狀態(ora.gsd 11G不使用此資源 所以OFFLINE為正常狀態) [[email protected] ~]$ crs_stat -t Name

11g RAC叢集啟動關閉、各種資源檢查、配置資訊檢視彙總。

簡要: 一:叢集的啟動與關閉 1. rac叢集的手動啟動 [[email protected] bin]# ./crsctl start cluster -all 2. 檢視rac叢集的狀態 [[email protected] bin]# ./cr

oracle11g rac crs啟動錯誤一例

虛擬機器的測試環境中,開啟後,crs沒有啟動,使用root手工啟動,提示: ./crsctl start crs CLSU-00100: Operating System function: ope

Elasticsearch叢集啟動關閉重啟操作

ES叢集如果節點較多,在重啟,關閉,啟動等操作的時候,需要一個一個操作,非常麻煩,下面提供一種方式,可以通過指令碼的方式,在一臺節點上操作即可: 一、配置節點之間免密碼登入; 具體配置方法,請百度搜索下就有了。 二、建立一下指令碼完成操作: 叢

ORACLE11G RAC啟動關閉步驟

1、(ORACLE)檢視叢集中的資料庫執行狀態,最後接著是RAC名,不是例項的名稱。 srvctlstatus database -d tax Oracle@svrtrpc001:~>srvctl status database -d tax Instanc

ORACLE RAC 叢集啟動關閉

  RAC叢集的啟動和關閉,貌似非常的簡單,敲來敲去也就是那五六個命令。但是深入理解下去,非常有助於我們瞭解RAC的構架.  啟動和關閉rac一般使用三種方式:sqlplus,srvctl以及dbconsole或者Oracle grid control,本節中簡要介紹下

linux下oracle11g R2的啟動關閉監聽、數據庫

source app var copy time lac started success let 一、啟動監聽與數據庫 1、啟動監聽: [html] view plain copy [[email protected]/* */ oracle]# s

11g RAC集群啟動關閉、各種資源檢查、配置信息查看匯總。

11g RAC集群啟動關閉、各種資源檢查簡要:一:集群的啟動與關閉1. rac集群的手動啟動[root@node1 bin]# ./crsctl start cluster -all2. 查看rac集群的狀態[root@node1 bin]# ./crsctl stat res -t3. rac集群的關閉[r

oracle11g】整體啟動關閉

lsnrctl1.關閉數據庫【默認orcl】 sqlplus /nolog conn sys/sys as sysdba; shutdown immediate; --關閉所有實例 lsnrctl stop2.單獨關閉的數據庫實例,目前啟動不了了【uu】 sqlplus /nolog conn sys/

RAC 11GR2 叢集啟動指令碼

讀書筆記:   11GR2版本 來看看11GR2版本叢集的/etc/inittab檔案。 #run xdm in runlevel 5 x:5:respawn:/etc/X11/perfdm -nodaemon h1:35:respawn:/etc/init.d

RAC 10G叢集啟動指令碼

11GR2版本GI中新增加的重要元件OHAS(Oracle High Availability Service)和其他相關的元件,資源,下圖是11GR2版本中GI元件之間啟動關係。   OHAS  OHAS是11GR2版本新推出的一個重要的元件,隨著這個元件

一鍵啟動關閉zookeeper叢集指令碼

一共需要編寫三個檔案 第一個檔案:slave用於存放叢集主機的host地址 內容如下: node-1 node-2 node-3 第二個檔案:啟動指令碼startzk.sh 內容如下:(路徑為自定義執行指令碼路徑) cat /export/server

rac叢集的例項啟動不了

GD_HYWG_MDSP_DB01:oracle:mdspdb1 > crs_stat -t -vName           Type           R/RA   F/FT   Target    State     Host        ----------

Oracle RAC啟動關閉

情況1:保養資料庫及作業系統,伺服器,需要關閉DB(所有例項),OS及SERVER a.首先停止oracle10g環境   $ lsnrctl sop (每個節點上停止監聽,也可以用srvctl來操作)   $ emctl stop dbconsole(每個節點停止dbco

Oracle11g RAC 啟動流程梳理(二)OHASD簡析和啟停實驗

簡單說明: 11gRAC啟動分為四個層次,第一個層次是OHASD和子代理程序啟動: init——>init.ohasd——>ohasd——>agent子程序啟動 即: OS啟動——>/etc/rc.d/init.d/init.o

CentOS6u9 Oracle11g RAC 搭建部署(三)叢集安裝和PSU補丁升級

6-叢集安裝: 1° 安裝grid: # 將安裝包上傳到某一個節點即可 chown grid: /tmp/p13390677_112040_Linux-x86-64_3of7.zip su - grid cd /tmp/ unzip p13390677_

hadoop叢集配置無密碼登陸 啟動關閉namenode輸入密碼的解決方法

最近做hadoop學習,按網上的資料照本宣科做的,發現死活搞不懂為啥在啟動和關閉namenode的時候都要輸入密碼。上網查詢半天都沒摸到頭腦,後來仔細研究了下ssh後才發現,原來是一直沒在namenode主機上加入ssh本地免驗證authorized_keys檔案,ssh

hadoop叢集啟動後datanode和namenodemanager關閉問題解決

成功啟動hadoop集群后,在matser機器上執行jps命令,可以看到: Jps ResourceManager NameNode SecondaryNameNode 在slave節點上可以看到: DataNode Jps Node

Oracle 10g RAC啟動關閉步驟

在運維過程中,需要重啟資料庫服務,步驟如下: 1、在終端執行  su - oracle   ,切換至oracle使用者。在終端執行 su 命令 ,切換至root 使用者  ,但此時保留了 oracle 使用者的環境變數,並且得到了root使用者的許可權。 2、在終端執行

hadoop叢集啟動關閉shell指令碼

說明: 1、先啟動zookeeper,再啟動hdfs,再啟動yarn。 2、user為hadoop使用的linux使用者。 3、採用SSH登陸到其他機器執行指令碼的方式,且配置了ssh免金鑰登陸。 start-hadoop.sh user=hadoop