教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 范文大全 > 文秘资料 >

管理oracle_11g_RAC_常用命令

来源:网络收集 时间:2026-09-06
导读: 管理oracle_11g_RAC_常用命令 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实例—(数

管理oracle_11g_RAC_常用命令

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

管理oracle_11g_RAC_常用命令

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: http://www.77cn.com.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

管理oracle_11g_RAC_常用命令

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: http://www.77cn.com.cn, Network: 1/192.168.1.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /http://www.77cn.com.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、监听器)

管理oracle_11g_RAC_常用命令

[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

管理oracle_11g_RAC_常用命令

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 ~] …… 此处隐藏:11186字,全部文档内容请下载后查看。喜欢就下载吧 ……

管理oracle_11g_RAC_常用命令.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/fanwen/1993709.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)