爱游戏平台登录入口

  • oracle 11g RAC 爱游戏平台登录入口爱游戏平台登录入口利用号令清算分享
  • 2018年02月25日
  • 搜集搜集
1)、查抄集群状况:
  [grid@rac02 ~]$ crsctl check cluster
  CRS-4537: Cluster Ready Services is online
  CRS-4529: Cluster Synchronization Services is online
  CRS-4533: Event Manager is online

2)、一切 Oracle 实例 ―(数据库状况):
  [grid@rac02 ~]$ srvctl status database -d racdb
  Instance racdb1 is running on node rac01
  Instance racdb2 is running on node rac02

3)、查抄单个实例状况:
  [grid@rac02 ~]$ srvctl status instance -d racdb -i racdb1
  Instance racdb1 is running on node rac01

4)、节点利用法式状况:
  [grid@rac02 ~]$ srvctl status nodeapps
  VIP rac01-vip is enabled
  VIP rac01-vip is running on node: rac01
  VIP rac02-vip is enabled
  VIP rac02-vip is running on node: rac02
  Network is enabled
  Network is running on node: rac01
  Network is running on node: rac02
  GSD is disabled
  GSD is not running on node: rac01
  GSD is not running on node: rac02
  ONS is enabled
  ONS daemon is running on node: rac01
  ONS daemon is running on node: rac02
  eONS is enabled
  eONS daemon is running on node: rac01
  eONS daemon is running on node: rac02

5)、列出一切的设置爱游戏平台登录入口备摆设数据库:
  [grid@rac02 ~]$ srvctl config database
  racdb

6)、数据库设置爱游戏平台登录入口备摆设:
  [grid@rac02 ~]$ srvctl config database -d racdb -a
  Database unique name: racdb
  Database name: racdb
  Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
  Oracle user: oracle
  Spfile: +RACDB_DATA/racdb/spfileracdb.ora
  Domain: xzxj.edu.cn
  Start options: open
  Stop options: immediate
  Database role: PRIMARY
  Management policy: AUTOMATIC
  Server pools: racdb
  Database instances: racdb1,racdb2
  Disk Groups: RACDB_DATA,FRA
  Services:
  Database is enabled
  Database is administrator managed

7)、ASM状况和ASM设置爱游戏平台登录入口备摆设:
  [grid@rac02 ~]$ srvctl status asm
  ASM is running on rac01,rac02
  [grid@rac02 ~]$ srvctl config asm -a
  ASM home: /u01/app/11.2.0/grid
  ASM listener: LISTENER
  ASM is enabled.

8)、TNS监听器状况和设置爱游戏平台登录入口备摆设:
  [grid@rac02 ~]$ srvctl status listener
  Listener LISTENER is enabled
  Listener LISTENER is running on node(s): rac01,rac02
  [grid@rac02 ~]$ srvctl config listener -a
  Name: LISTENER
  Network: 1, Owner: grid
  Home: <CRS home>
  /u01/app/11.2.0/grid on node(s) rac02,rac01
  End points: TCP:1521

9)、SCAN状况和设置爱游戏平台登录入口备摆设:
  [grid@rac02 ~]$ srvctl status scan
  SCAN VIP scan1 is enabled
  SCAN VIP scan1 is running on node rac02
  [grid@rac02 ~]$ srvctl config scan
  SCAN name: rac-scan.xzxj.edu.cn, Network: 1/192.168.1.0/255.255.255.0/eth0
  SCAN VIP name: scan1, IP: /rac-scan.xzxj.edu.cn/192.168.1.55

10)、VIP各个节点的状况和设置爱游戏平台登录入口备摆设:
  [grid@rac02 ~]$ srvctl status vip -n rac01
  VIP rac01-vip is enabled
  VIP rac01-vip is running on node: rac01
  [grid@rac02 ~]$ srvctl status vip -n rac02
  VIP rac02-vip is enabled
  VIP rac02-vip is running on node: rac02
  [grid@rac02 ~]$ srvctl config vip -n rac01
  VIP exists.:rac01
  VIP exists.: /rac01-vip/192.168.1.53/255.255.255.0/eth0
  [grid@rac02 ~]$ srvctl config vip -n rac02
  VIP exists.:rac02
  VIP exists.: /rac02-vip/192.168.1.54/255.255.255.0/eth0

11)、节点利用法式设置爱游戏平台登录入口备摆设 ―(VIP、GSD、ONS、监听器)
  [grid@rac02 ~]$ srvctl config nodeapps -a -g -s -l
  -l option has been deprecated and will be ignored.
  VIP exists.:rac01
  VIP exists.: /rac01-vip/192.168.1.53/255.255.255.0/eth0
  VIP exists.:rac02
  VIP exists.: /rac02-vip/192.168.1.54/255.255.255.0/eth0
  GSD exists.
  ONS daemon exists. Local port 6100, remote port 6200
  Name: LISTENER
  Network: 1, Owner: grid
  Home: <CRS home>
  /u01/app/11.2.0/grid on node(s) rac02,rac01
  End points: TCP:1521

12)、考证一切集群节点间的时钟同步:
  [grid@rac02 ~]$ cluvfy comp clocksync -verbose
  Verifying Clock Synchronization across the cluster nodes
  Checking if Clusterware is installed on all nodes...
  Check of Clusterware install passed
  Checking if CTSS Resource is running on all nodes...
  Check: CTSS Resource running on all nodes
  Node Name Status
  ------------------------------------ ------------------------
  rac02 passed
  Result: CTSS resource check passed
  Querying CTSS for time offset on all nodes...
  Result: Query of CTSS for time offset passed
  Check CTSS state started...
  Check: CTSS state
  Node Name State
  ------------------------------------ ------------------------
  rac02 Active
  CTSS is in Active state. Proceeding with check of clock time offsets on all nodes...
  Reference Time Offset Limit: 1000.0 msecs
  Check: Reference Time Offset
  Node Name Time Offset Status
  ------------ ------------------------ ------------------------
  rac02 0.0 passed
  Time offset is within the specified limits on the following set of nodes:
  "[rac02]"
  Result: Check of clock time offsets passed
  Oracle Cluster Time Synchronization Services check passed
  Verification of Clock Synchronization across the cluster nodes was successful.

13)、集群爱游戏平台登录入口一切正在运转的实例 ― (SQL):
  SELECT inst_id , instance_number inst_no , instance_name inst_name , parallel , status ,
database_status db_status , active_state state , host_name host FROM gv$instance ORDER BY inst_id;
14)、一切数据库文件及它们地点的 ASM 磁盘爱游戏平台登录入口 ― (SQL):
15)、ASM 磁盘卷:
16)、启动和遏制集群:
  以下操纵需用root用户履行。
  (1)、在本地办事器上遏制Oracle Clusterware 体爱游戏平台登录入口:
  [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster

注: 在运转“crsctl stop cluster”号令以后,若是 Oracle Clusterware 办理的
资本爱游戏平台登录入口爱游戏平台登录入口任何一个还在运转,则全部号令失利。利用 -f 选项无前提地遏制一切资本并
遏制 Oracle Clusterware 体爱游戏平台登录入口。
  另请注重,可经由过程指定 -all 选项在集群爱游戏平台登录入口一切办事器上遏制 Oracle Clusterware
体爱游戏平台登录入口。以下所示,在rac01和rac02上遏制oracle clusterware体爱游戏平台登录入口:
  [root@rac02 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster �all
  在本地办事器上启动oralce clusterware体爱游戏平台登录入口:
  [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster
  注:可经由过程指定 -all 选项在集群爱游戏平台登录入口一切办事器上启动 Oracle Clusterware 体爱游戏平台登录入口。
  [root@rac02 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster �all
  还能够经由过程列出办事器(各办事器之间以爱游戏平台登录入口格分开)在集群爱游戏平台登录入口一个或多个指定的

办事器上启动 Oracle Clusterware 体爱游戏平台登录入口:
  [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster -n rac01 rac02
  利用 SRVCTL 启动/遏制一切实例:
  [oracle@rac01 ~]#srvctl stop database -d racdb
  [oracle@rac01 ~]#srvctl start database -d racdb