Home >Database >Oracle >How to turn off rac in oracle 11g

How to turn off rac in oracle 11g

WBOY
WBOYOriginal
2022-05-30 17:57:362048browse

方法:1、用“srvctl stop listener”关闭监听并kill会话;2、用“export ORACLE_HOME=...”和“export PATH=...”配置两个节点;3、用“crsctl stop has”关闭rac即可。

How to turn off rac in oracle 11g

本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。

oracle 11g怎么关闭rac

在11g由于CRS的信息也是放在ASM 实例里的,所以要关asm,必须关闭crs,在Oracle11g RAC的架构如下 

How to turn off rac in oracle 11g

1、关闭数据库前建议关闭监听和kill会话

srvctl stop listener
ps -ef|grep LOCAL=NO|awk -F' ' '{print $2}'|xargs kill -9

2、要关闭RAC,需在2个节点都配置好root的.bash_profile

export ORACLE_HOME=/u01/grid/product/11gr2
export PATH=$ORACLE_HOME/bin:$PATH

3、关闭RAC

[root@racnode1 ~]# crsctl stop has
[root@racnode2 ~]# crsctl stop has

扩展知识:

启动RAC

[root@racnode1 ~]# crsctl start has
[root@racnode2 ~]# crsctl start has

crsctl的其他选项,通过以下命令只需要在一个节点上启动关闭RAC  racnode1是节点的主机名

[root@racnode1 ~]# crsctl stop cluster -n racnode1 racnode2

启动RAC

[root@racnode1 ~]# crsctl start cluster -n racnode1 racnode2

推荐教程:《Oracle视频教程

The above is the detailed content of How to turn off rac in oracle 11g. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn