rac

oracle 11g rac for linux delete node (11G RAC 节点删除步骤正常+异常情况)

你说的曾经没有我的故事 提交于 2020-04-03 04:48:01
说明: 测试的RAC只2个节点,整体步骤来自ORACLE 官方文档: https://docs.oracle.com/cd/E11882_01/rac.112/e41960/adddelunix.htm#RACAD7358 步骤 3从cluster中删除节点 来自ORACLE 官方文档(Deleting a Cluster Node on Linux and UNIX Systems): https://docs.oracle.com/cd/E11882_01/rac.112/e41959/adddelclusterware.htm#CWADD90992 注意: 一共两套实验,一套是正常删除ogg数据库;一套异常删除(orcl),即RAC 节点2服务器DOWN掉极端情况,集群资源RAC2 也相应全部停掉。 RAC2 down 掉只需要执行以下步骤删除节点2: 第一步:1.1或者1.2 第二步:1.3 删除后验证 第三步:2.2.3 第四步:3.2.2、3.3.3、3.3.4 如果被删除节点2情况介于两种之间,还有活动的集群资源,需要按照一步一步的手动执行文档中所有步骤(除了3.2.2)。 实验环境情况如下: 实验 节点名称 数据库实例名 操作系统 数据库版本 正常情况删除 rac1/rax2 orcl1/orcl2 Linux 6.X oracle11.2.0.4 异常情况删除

ORACLE RAC 11G 更改 /etc/hosts文件

早过忘川 提交于 2020-03-28 07:36:03
来自官方文档:(1)Can I change the public hostname in my Oracle Database 10g Cluster using Oracle Clusterware? Hostname changes are not supported in Oracle Clusterware (CRS), unless you want to perform a deletenode followed by a new addnode operation. The hostname is used to store among other things the flag files and Oracle Clusterware stack will not start if hostname is changed. (2)Does the hostname have to match the public name or can it be anything else? When there is no vendor clusterware, only Oracle Clusterware, then the public node name must match the host name. When vendor clusterware is

oracle RAC集群启动和关闭

戏子无情 提交于 2020-03-22 15:11:23
oracle 11G RAC集群启动和关闭: 1、停止数据库 $srvctl stop database –d oradb 2、停止集群服务 关闭集群需要root运行 #/u01/11.2.0/grid/bin/crsctl stop cluster -all --停止所有节点服务 #/u01/11.2.0/grid/bin/crsctl stop cluster --停止本节点服务 或者 停止HAS(High Availability Services),必须以root用户 [root@rac1 oracle]# cd /u01/grid/11.2.0/grid/bin [root@rac1 bin]# ./crsctl stop has –f --停止本节点服务 或者 /u01/app/11.2.0/grid/bin/crsctl stop crs 1、启动集群服务 #/u01/11.2.0/grid/bin/crsctl start cluste --会启动数据库 或者 #/u01/11.2.0/grid/bin/crsctl start has --启动数据库 或者 #/u01/11.2.0/grid/bin/crsctl start crs ------------------------------------------------------------------

RAC IP 地址修改

梦想与她 提交于 2020-03-21 17:03:42
RAC 修改IP: 版本信息: REDHAT AS5 ORACLE 11G R2, 两个节点。 修改如下: 1.修改/etc/host(rac1,rac2) 192.168.3.205 rac-scan --> 192.168.2.205 192.168.3.201 rac1 --> 192.168.2.201 192.168.3.203 rac2 --> 192.168.2.203 192.168.0.201 rac1-private 192.168.0.203 rac2-private 192.168.3.202 rac1-vip --> 192.168.2.202 192.168.3.204 rac2-vip --> 192.168.2.204 1.关闭服务 ./crs_stop -all ./crs_stop ora.DATA.dg ./crs_stop ora.RECOVERY.dg NAME=ora.RECOVERY.dg TYPE=ora.diskgroup.type TARGET=OFFLINE STATE=ONLINE on rac2 NAME=ora.asm TYPE=ora.asm.type TARGET=OFFLINE STATE=ONLINE on rac2 -------------------------------------------------

RAC环境上搭建DG

杀马特。学长 韩版系。学妹 提交于 2020-03-18 06:07:21
首先RAC要确实是开归档的状态 archive log list; 如果是非归档状态,需要执行下面几步 srvctl stop database -d +数据库实例名 关闭数据库 --节点1(要做DG主库的) sql>startup mount sql> alter database archivelog; sql>alter system set log_archive_dest_1='LOCATION=/oracleapp/arch' scope=spfile sid='prod1'; sql>shutdown immediate srvctl start database -d +数据库实例名 RAC环境上搭建DG 查看当前数据库的日志文件组 select group#,thread#,bytes/1024/1024,status from v$standby_log; 为主库添加几组组standby log文件,以便它们自动被传送到备库。(一般比主库多一组) alter database add standby logfile thread 1 group 11 size 50m; alter database add standby logfile thread 1 group 12 size 50m; alter database add standby logfile

RAC配置(启停库)

天大地大妈咪最大 提交于 2020-03-07 17:37:19
关库顺序 :先关闭数据库 然后关闭节点资源 [root@rac1 ~]# srvctl stop database -d 数据库名 [root@rac1 ~]# srvctl stop instance -d 数据库名 -i 实例1 [root@rac1 ~]# srvctl stop instance -d 数据库名 -i 实例2 [root@rac1 ~]# srvctl stop nodeapps -n 节点1 [root@rac1 ~]# srvctl start nodeapps -n 节点2 启库顺序相反 [root@rac1 ~]# srvctl start nodeapps -n 节点1 [root@rac1 ~]# srvctl start nodeapps -n 节点2 [root@rac1 ~]# srvctl start instance -d 数据库名 -i 实例1 [root@rac1 ~]# srvctl start instance -d 数据库名 -i 实例2 [root@rac1 ~]# srvctl start database -d 数据库名 [root@rac1 ~]# srvctl stop database -d prod root用户关库命令 [root@rac1 ~]# srvctl start database -d prod

Oracle卸载之正确卸载rac数据库的方法(MOS卸载方法)

半世苍凉 提交于 2020-03-04 17:20:20
一、关闭数据库和资源 1、节点1 [root@node1 bin]# pwd /u01/app/11.2.0/grid/bin [root@node1 bin]# ./crsctl stop crs CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'node1' CRS-2673: Attempting to stop 'ora.crsd' on 'node1' CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'node1' CRS-2673: Attempting to stop 'ora.LISTENER_SCAN3.lsnr' on 'node1' CRS-2673: Attempting to stop 'ora.oc4j' on 'node1' CRS-2673: Attempting to stop 'ora.GRIDDG.dg' on 'node1' CRS-2673: Attempting to stop 'ora.registry.acfs' on 'node1' CRS-2673: Attempting to stop 'ora.orcl

12c rac搭建随笔

和自甴很熟 提交于 2020-03-04 13:56:55
IPADDR=10.1.220.102 NETMASK=255.255.252.0 GATEWAY=10.1.220.1 10.1.220.101 ucloud-rac1-priv 10.1.220.100 ucloud-rac2-priv 10.168.0.117 ucloud-rac1-vip 10.168.0.118 ucloud-rac2-vip 10.168.0.107 ucloud-rac1 10.168.0.108 ucloud-rac2 10.168.0.127 ucloud-rac-scan scanip hostnamectl set-hostname ucloud-rac1 安装multipath defaults { user_friendly_names yes find_multipaths yes } vi /etc/sysctl.conf fs.file-max= 6815744 fs.aio-max-nr=1048576 net.ipv4.ip_local_port_range= 9000 65500 net.core.rmem_default= 262144 net.core.rmem_max= 4194304 net.core.wmem_default= 262144 net.core.wmem_max= 1048576 kernel.sem=

RAC 安装 Actual Result Unknown Host Exception has Occurred 错误解决方法

心不动则不痛 提交于 2020-03-04 01:14:16
安装 RAC Clusterware ,在验证的时候,有 2 个没有通过,内容如下: Checking local Cluster Synchronization Services (CSS) status ... Actual Result: Unknown Host Exception has Occurred :60.191.124.236. Check complete. The overall result of this check is: Not executed <<<< Recommendation: Cluster Synchronization Services (CSS) provide services for single-instance Automatic Storage Management (ASM) in addition to being part of the Oracle Clusterware stack. When configured stand-alone outside of the Oracle Clusterware, it is sometimes referred to as "local" CSS. Because you are installing Oracle Clusterware on a set of

oracle11g rac RMAN备份恢复至单机

帅比萌擦擦* 提交于 2020-03-03 00:25:01
在一节点上进行全备 确定备份路径,并赋予属组 mkdir /rmanbackup chown oracle:oinsatll /rmanbackup 进入rman进行全备 rman target / run { allocate channel d1 type disk; backup incremental level 0 format '/rmanbackup/orcl_full_%U' database include current controlfile; delete noprompt obsolete; sql 'alter system archive log current'; backup format '/rmanbackup/orcl_arch_full_%U' archivelog all not backed up delete input; crosscheck backup; delete noprompt expired backup; release channel d1; } 将生成的备份传到单机环境 cd /rmanbackup scp * oracle@192.168.100.199:/rmanbackup/ (单机上已备好此路径) 创建pfile文件并修改传送到单机环境对应目录下 SQL> create pfile='