ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle RAC日常基本维护命令

Oracle RAC日常基本维护命令

原创 Linux操作系统 作者:marvinoracle 时间:2011-10-17 13:33:44 0 删除 编辑
Oracle RAC日常基本维护命令

所有实例和服务的状态
[oracle@fcdb1 admin]$ srvctl status database -d centerdb
Instance centerdb1 is running on node fcdb1
Instance centerdb2 is running on node fcdb2

单个实例的状态
[oracle@fcdb1 admin]$ srvctl status instance -d centerdb -i centerdb1
Instance centerdb1 is running on node fcdb1

特定节点上节点应用程序的状态
[oracle@fcdb1 admin]$ srvctl status nodeapps -n fcdb1
VIP is running on node: fcdb1
GSD is running on node: fcdb1
Listener is running on node: fcdb1
ONS daemon is running on node: fcdb1

ASM 实例的状态
[oracle@fcdb1 admin]$ srvctl status asm -n fcdb1
ASM instance +ASM1 is running on node fcdb1.


显示 RAC 数据库的配置
[oracle@fcdb1 admin]$ srvctl config database -d centerdb
fcdb1 centerdb1 /u01/app/oracle/product/11.1.0/db_1
fcdb2 centerdb2 /u01/app/oracle/product/11.1.0/db_1

显示节点应用程序的配置 —(VIP、GSD、ONS、监听器)
[oracle@fcdb1 admin]$ srvctl config nodeapps -n fcdb1 -a -g -s -l
VIP exists.: /fcdb1-vip/10.50.50.20/255.255.255.0/eth2
GSD exists.
ONS daemon exists.
Listener exists.

显示 ASM 实例的配置
[oracle@fcdb1 admin]$ srvctl config asm -n fcdb1
+ASM1 /u01/app/oracle/product/11.1.0/db_1

启动/停止所有实例

[oracle@fcdb1 admin]$ srvctl start database -d centerdb
[oracle@fcdb1 admin]$ srvctl stop database -d centerdb


启动与停止某个节点的listener
[oracle@fcdb1 admin]$ srvctl start listener -n centerdb1
[oracle@fcdb1 admin]$ srvctl stop listener -n centerdb1

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24531354/viewspace-709233/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-09-02

  • 博文量
    67
  • 访问量
    191815