11G RAC 简单命令

1、查看集群状态:

[[email protected] ~]# su - grid

[[email protected] ~]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

2、数据库实例状态:

[[email protected] ~]$ srvctl status database -d yoon
Instance yoon1 is running on node rac1
Instance yoon2 is running on node rac2

3、单实例状态:

[[email protected] ~]$ srvctl status instance -d yoon -i yoon1
Instance yoon1 is running on node rac1

[[email protected] ~]$ srvctl status instance -d yoon -i yoon2
Instance yoon2 is running on node rac2

4、node应用程序状态:

[[email protected] ~]$ srvctl status nodeapps
VIP rac1-vip is enabled
VIP rac1-vip is running on node: rac1
VIP rac2-vip is enabled
VIP rac2-vip is running on node: rac2
Network is enabled
Network is running on node: rac1
Network is running on node: rac2
GSD is disabled
GSD is not running on node: rac1
GSD is not running on node: rac2
ONS is enabled
ONS daemon is running on node: rac1
ONS daemon is running on node: rac2

5、所有的配置数据库:

[[email protected] ~]$ srvctl config database
yoon

7、数据库配置信息:

[[email protected] ~]$ srvctl config database -d yoon -a
Database unique name: yoon
Database name: yoon
Oracle home: /u01/app/oracle/11.2.0/db_1
Oracle user: oracle
Spfile: +DATA/yoon/spfileyoon.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: yoon
Database instances: yoon1,yoon2
Disk Groups: DATA,FLUSH
Mount point paths:
Services:
Type: RAC
Database is enabled
Database is administrator managed

8、ASM状态:

[[email protected] ~]$ srvctl status asm
ASM is running on rac2,rac1

9、ASM配置信息:

[[email protected] ~]$ srvctl config asm -a
ASM home: /u01/app/grid/11.2.0
ASM listener: LISTENER
ASM is enabled.

10、监听状态:

[[email protected] ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): rac2,rac1

11、监听配置信息:

[[email protected] ~]$ srvctl config listener -a
Name: LISTENER
Network: 1, Owner: grid
Home:
/u01/app/grid/11.2.0 on node(s) rac2,rac1
End points: TCP:1521

12、SCAN状态:

[[email protected] ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac2

13、SCAN配置信息:

[[email protected] ~]$ srvctl config scan
SCAN name: rac-scan, Network: 1/192.168.1.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-scan/192.168.1.10

14、节点VIP状态:

[[email protected] ~]$ srvctl status vip -n rac1
VIP rac1-vip is enabled
VIP rac1-vip is running on node: rac1

[[email protected] ~]$ srvctl status vip -n rac2
VIP rac2-vip is enabled
VIP rac2-vip is running on node: rac2

15、VIP配置信息:

[[email protected] ~]$ srvctl config vip -n rac1
VIP exists: /rac1-vip/192.168.1.18/192.168.1.0/255.255.255.0/eth0, hosting node rac1

[[email protected] ~]$ srvctl config vip -n rac2
VIP exists: /rac2-vip/192.168.1.19/192.168.1.0/255.255.255.0/eth0, hosting node rac2

16、节点应用程序配置系信息:

[[email protected] ~]$ srvctl config nodeapps -a -g -s -l
Warning:-l option has been deprecated and will be ignored.
Network exists: 1/192.168.1.0/255.255.255.0/eth0, type static
VIP exists: /rac1-vip/192.168.1.18/192.168.1.0/255.255.255.0/eth0, hosting node rac1
VIP exists: /rac2-vip/192.168.1.19/192.168.1.0/255.255.255.0/eth0, hosting node rac2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
Name: LISTENER
Network: 1, Owner: grid
Home:
/u01/app/grid/11.2.0 on node(s) rac2,rac1
End points: TCP:1521

17、启动和停止集群:

[[email protected] ~]#/u01/app/grid/11.2.0/bin/crsctl stop cluster -all

[[email protected] ~]#/u01/app/grid/11.2.0/bin/crsctl start cluster -all

[[email protected] ~]#srvctl stop database -d yoon

[[email protected] ~]#srvctl start database -d yoon

时间: 2024-10-24 14:25:26

11G RAC 简单命令的相关文章

管理oracle 11g RAC 常用命令

1).检查集群状态: [[email protected] ~]$ 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 实例 —(数据库状态): [[email protected] ~]$ srvctl status da

Oracle 11g rac 生产环境部署详录

作者:田逸([email protected]) 基本规划 ◎设备选型 1.服务器:Dell R620 两台.cpu 8 core,内存64G,600G 15000转sas硬盘,双电源,hba卡一块,连接存储线缆一根(连接hba卡和共享存储). 2.存储:dell MD3200 一台.双控制器,12块600G 15000转sas硬盘.为追求最高可用性,使用的raid级别是raid10. 3.交换机:华为3com两台,型号为h3c S5048E.注意:网络端口最好是全千兆. 4.网线:2-3米机制

【Oracle 集群】ORACLE DATABASE 11G RAC 知识图文详细教程之RAC 特殊问题和实战经验(五)

RAC 特殊问题和实战经验(五) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总.然后形成体系的总结,一则进行回顾复习,另则便于查询使用.本图文文档亦源于此.阅读Oracle RAC安装与使用教程前,笔者先对这篇文章整体构思和形成进行梳理.由于阅读者知识储备层次不同,我将从Oracle RAC安装前的准备与规划开始进行整体介绍安装部署Oracle RAC.始于唐博士指导,对数据库集群进行配置安装,前

oracle 11g rac dbca建库时提示创建监听

Oracle 11g rac dbca建库时提示创建监听 在安装oracle 11g rac时,使用dbca建库的过程中提示需要创建监听: Default Listener "LISTENER" is not configured in Grid Infrantructure home.Use NetCA to configure Default Listener and return DBCA 解决步骤如下 因为oracle 11g rac在安装过程中会自动创建监听,无需手动创建,首

11g RAC集群启动关闭、各种资源检查、配置信息查看汇总。

简要:一:集群的启动与关闭 1. rac集群的手动启动[[email protected] bin]# ./crsctl start cluster -all2. 查看rac集群的状态[[email protected] bin]# ./crsctl stat res -t3. rac集群的关闭[[email protected] bin]# ./crscrl stop cluster -all--------------------------------二:集群的各种资源状态的检查 1. 检

LINUX 11G RAC ASM磁盘组在线增加磁盘扩容

[javascript] view plain copy LINUX 11G RAC ASM磁盘组在线增加磁盘扩容 1.操作系统版本 OEL 6.1 [[email protected] ~]# more /etc/redhat-release Red Hat Enterprise Linux Server release 6.1 (Santiago) 2.数据库版本 oracle 11g rac SQL> select * from v$version; BANNER ------------

Oracle 11g RAC oc4j/gsd Offline

Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形.即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, WLM在 11.2.0.2 才可用.GSD则是用于支持dbca,srvctl,oem等的交互工具.本文描述将这两个服务切换到online. [python] view plain copy print? 1.环境 [[email protected] ~]# cat /etc/issue Ente

Oracle 11g RAC 的启动与关闭

在Oracle 10g中CRS Resource 包括GSD(Global Serveice Daemon),ONS(Oracle Notification Service),VIP, Database, Instance 和 Service 在11gR2里面启动CRS的时候,会提示ohasd已经启动. 那么这个OHASD到底包含哪些资源. [[email protected] ~]# crsctl status resource -t -----------------------------

Installing Oracle 11G RAC on Linux 6

vi /etc/hosts 10.254.28.11jwdb01 10.254.28.12jwdb02 10.254.28.13    jwdb01-vip 10.254.28.14jwdb02-vip 6.6.7.101jwdb01-priv 6.6.7.102jwdb02-priv 10.254.28.15jwdb-scan vi /etc/sysctl.conf #oracle rac config parameter fs.aio-max-nr = 1048576 fs.file-max