ITPub博客

首页 > Linux操作系统 > Linux操作系统 > RAC--lsnodes & srvctl 命令實例說明

RAC--lsnodes & srvctl 命令實例說明

原创 Linux操作系统 作者:vongates 时间:2019-07-05 22:18:04 0 删除 编辑
=============== lsnodes =========================
=============== srvctl ==========================

--=============== lsnodes =========================
[oracle@prod1 oracle]$ lsnodes -h
lsnodes: invalid option -- h
Usage: lsnodes [-l] [-n] [-v]
  where:
-l get local node name
-n print node numbers also
-v verbose error reporting
[oracle@prod1 oracle]$ lsnodes
prod1
prod2
[oracle@prod1 oracle]$ lsnodes -l
prod1
[oracle@prod1 oracle]$ lsnodes -n
prod1        0
prod2        1
[oracle@prod1 oracle]$ lsnodes -v
prod1
prod2
[oracle@prod1 oracle]$ lsnodes -l -n
prod1        0
[oracle@prod1 oracle]$

=============== srvctl ======================================
[oracle@prod2 oracle]$ srvctl -h
Usage: srvctl [-V]
    -V                  Show version
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl -V
srvctl version: 9.2.0.1.0
[oracle@prod1 oracle]$ srvctl
Usage: srvctl verb noun [options]
    verbs: start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config
    nouns: database|instance
For detailed help on each verb and noun and its options use:
    srvctl verb noun -h
[oracle@prod1 oracle]$ srvctl start database -h
Usage: srvctl start database -d [-o ] [-c ] [-S ]
    -d         Specified cluster database
    -o   Options to startup command (e.g. open, mount, or nomount)
    -c         Connect string (default: / as sysdba)
    -S           Intermediate status level for OEM Console
    -h                  Print usage
[oracle@prod1 oracle]$ srvctl start instance -h
Usage: srvctl start instance -d -i [-o ] [-c ] [-S ]
    -d         Specified cluster database
    -i        Comma separated instance names
    -o   Options to startup command (e.g. open, mount, or nomount)
    -c         Connect string (default: / as sysdba)
    -S           Intermediate status level for OEM Console
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl stop database -h
Usage: srvctl stop database -d [-o ] [-c ] [-S ]
    -d         Specified cluster database
    -o    Options to shutdown command (e.g. normal, transactional, immediate, or abort)
    -c         Connect string (default: / as sysdba)
    -S           Intermediate status level for OEM Console
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl stop instance -h
Usage: srvctl stop instance -d -i [-o ] [-c ] [-S ]
    -d         Specified cluster database
    -i        Comma separated instance names
    -o    Options to shutdown command (e.g. normal, transactional, immediate, or abort)
    -c         Connect string (default: / as sysdba)
    -S           Intermediate status level for OEM Console
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl status database -h
Usage: srvctl status database -d [-S ]
    -d         Specified cluster database
    -S           Intermediate status level for OEM Console
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl status instance -h
Usage: srvctl status instance -d -i [-S ]
    -d         Specified cluster database
    -i        Comma separated instance names
    -S           Intermediate status level for OEM Console
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl config database -h
Usage: srvctl config database [-d ]
    -d         Specified cluster database
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl setenv database -h
Usage: srvctl setenv database -d -t =[,=,...]
    -d         Specified cluster database
    -t =,... Names and values of environment variables
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl setenv instance -h
Usage: srvctl setenv instance -d [-i ] -t =[,=,...]
    -d         Specified cluster database
    -i            Instance name
    -t =,... Names and values of environment variables
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl getenv database -h
Usage: srvctl getenv database -d [-t ]
    -d         Specified cluster database
    -t       Names of environment variables
    -h                  Print usage
[oracle@prod2 oracle]$ srvctl getenv instance -h
Usage: srvctl getenv instance -d -i [-t ]
    -d         Specified cluster database
    -i            Instance name
    -t       Names of environment variables
    -h                  Print usage
[oracle@prod2 oracle]$

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

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

注册时间:2018-09-11

  • 博文量
    448
  • 访问量
    290369