文章导航
- 集群概念介绍(一)
- ORACLE集群概念和原理(二)
- RAC 工作原理和相关组件(三)
- 缓存融合技术(四)
- RAC 特殊问题和实战经验(五)
- ORACLE 11 G版本2 RAC在LINUX上使用NFS安装前准备(六)
- ORACLE ENTERPRISE LINUX 5.7下DATABASE 11G RAC集群安装(七)
- ORACLE ENTERPRISE LINUX 5.7下DATABASE 11G RAC数据库安装(八)
- ORACLE ENTERPRISE LINUX 5.7下DATABASE 11G RAC基本测试与使用(九)
转载自:http://www.cnblogs.com/baiboy/p/orc1.html\
转载目的:便于本人对看到的好文章进行分类整理,及根据实际需要进行进行适当的调整或补充,不用于适合商业用途。
检查RAC状态
主节点测试各个节点rac运行是否正常。显示rac节点详细信息
$ srvctl config database -d rac
Database unique name: rac
Database name: rac
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: /u01/oradata/rac/spfilerac.ora
Domain: localdomain
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: rac
Database instances: rac1,rac2
Disk Groups:
Services:
Database is administrator managed
$
$ srvctl status database -d rac
Instance rac1 is running on node rac1
Instance rac2 is running on node rac2
$
V$ACTIVE_INSTANCES视图还可以显示当前状态的实例。
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sat Sep 26 19:04:19 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> SELECT inst_name FROM v$active_instances;
INST_NAME
--------------------------------------------------------------------------------
rac1.localdomain:rac1
rac2.localdomain:rac2
SQL>
检查创建的数据库
srvctl工具可以显示当前的RAC数据库配置和状态。
显示AKA群集数据库的配置信息:
oracle@RAC1> srvctl config database -d AKA
所有实例和服务的状态:
oracle@RAC1> srvctl status database -d AKA
某个特定节点上应用程序状态:
oracle@RAC1> srvctl status nodeapps -n gentic
显示节点应用程序配置信息(VIP,GSD,ONS,监听器)
oracle@RAC1> srvctl config nodeapps -n gentic -a -g -s -l VIP exists.: /gentic-vip/192.168.138.130/255.255.255.0/eth0 GSD exists. ONS daemon exists. Listener exists.
群集中运行的所有实例:
sqlplus system/manager@AKA1
SELECT inst_id, instance_number, instance_name, parallel, status, database_status, active_state, host_name host FROM gv$instance ORDER BY inst_id;
视图V$ACTIVE_INSTANCES也可以显示当前实例的状态:
SELECT * FROM v$active_instances;
最后,GV$允许你显示整个RAC的全局信息:
SELECT inst_id, username, sid, serial# FROM gv$session WHERE username IS NOT NULL;
启动企业管理器控制台
企业管理控制台是整个群集共享的,在我们的例子中它在https://rac1:1158/em上监听。
全部参考文献
- Maclean教你一步一步使用Vbox在Linux 5上安装Oracle 11gR2 RAC: http://www.oracledatabase12g.com/archives/step-by-step-install-11gr2-rac-on-linux5-by-vbox.html
- tnsnames.ora 监听配置文件详解(博客园): http://www.cnblogs.com/freewater/archive/2011/05/23/2054859.html
- Oracle Database 11g RAC手册(第2版):http://book.51cto.com/art/201207/345816.htm
- 构建高可用Oracle数据库系统:Oracle 11gR2 RAC管理与性能优化:http://book.51cto.com/art/201208/353749.htm
- Oracle RAC安装配置-NFS(一):http://www.xingxingge.com/RAC/82.html
- linux下iscsi共享磁盘的实验:http://blog.chinaunix.net/uid-198791-id-3502369.html
- oracle官网:http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel4-092650.html
- 在RHEL6.0搭建Oracle 11gR2 RAC生产环境:http://www.tianqingbo.com/rhel-setup-oracle-11gr2-rac.html
- 大话ORACLE RAC
- 配置oracle 11g r2 RAC on rhel5.5:http://candon123.blog.51cto.com/704299/336002