zoukankan      html  css  js  c++  java
  • 檢查RAC狀態

    1.使用srvctl工具檢查RAC當前配置和狀態

    $ srvctl config database -h

    Displays the configuration for the database.

    Usage: srvctl config database [-d <db_unique_name> [-a] ] [-v]
        -d <db_unique_name>      Unique name for the database
        -a                       Print detailed configuration information
        -v                       Verbose output
        -h                       Print usage

    [root@phaws1 ~]# srvctl config database -d phaws
    Database unique name: phaws
    Database name: phaws
    Oracle home: /oracle/product/11.2.0
    Oracle user: oracle
    Spfile: +SYSDG1/phaws/spfilephaws.ora
    Domain:
    Start options: open
    Stop options: immediate
    Database role: PRIMARY
    Management policy: AUTOMATIC
    Server pools: phaws
    Database instances: phaws1,phaws2
    Disk Groups: SYSDG1,BACKUPDG,SYSDG2,DATADG
    Mount point paths:
    Services:
    Type: RAC
    Database is administrator managed

    Displays the current state of the database.

    Usage: srvctl status database -d <db_unique_name> [-f] [-v]
        -d <db_unique_name>      Unique name for the database
        -f                       Include disabled applications
        -v                       Verbose output
        -h                       Print usage

    [root@phaws1 ~]# srvctl status database -d phaws
    Instance phaws1 is running on node phaws1
    Instance phaws2 is running on node phaws2

    2.V$ACTIVE_INSTANCES view can also display the current status of the instances

    SQL> select INST_NAME from v$active_instances;

    INST_NAME
    --------------------------------------------------------------------------------
    phaws1:phaws1
    phaws2:phaws2

    不必太糾結于當下,也不必太憂慮未來
  • 相关阅读:
    hdu 5400 Arithmetic Sequence(模拟)
    hdu 5402 Travelling Salesman Problem(大模拟)
    hdu 5009 Paint Pearls (dp)
    poj 1236 Network of Schools(tarjan+缩点)
    hdu 3836 Equivalent Sets(tarjan+缩点)
    编程之美2015初赛第一场 hihoCoder #1156 : 彩色的树(染色问题)
    hdu 2807 The Shortest Path(矩阵+floyd)
    The Unique MST (判断是否存在多个最小生成树)
    Advanced Fruits(好题,LCS的模拟)
    Dark roads(kruskal)
  • 原文地址:https://www.cnblogs.com/guilingyang/p/5481759.html
Copyright © 2011-2022 走看看