[toc]

查看CRS是否随操作系统自动启动

1
crsctl config crs

[root@rac02 ~]# crsctl config crs

CRS-4622: Oracle High Availability Services ==autostart is enabled==.

启用 CRS 系统重启而自动启动

1
crsctl enable crs

禁用开机自动启动CRS

1
crsctl disable crs

启动集群

默认开机自启动

手动启动集群

1
crsctl start crs

关闭集群

默认正常关机会自动关闭集群

手动关闭集群:

1
crsctl stop crs

注意:crsctl start/stop crs 需要在每个节点上执行

查看状态

查看集群状态

1
2
3
crsctl status res -t
crs_stat -t
crsctl check crs

输出如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[root@rac02 ~]# crsctl status res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE rac02 STABLE
ONLINE ONLINE rac04 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE rac02 STABLE
ONLINE ONLINE rac04 STABLE
ora.OCR.dg
ONLINE ONLINE rac02 STABLE
ONLINE ONLINE rac04 STABLE
ora.asm
ONLINE ONLINE rac02 STABLE
ONLINE ONLINE rac04 Started,STABLE
ora.net1.network
ONLINE ONLINE rac02 STABLE
ONLINE ONLINE rac04 STABLE
ora.ons
ONLINE ONLINE rac02 STABLE
ONLINE ONLINE rac04 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac02 STABLE
ora.MGMTLSNR
1 ONLINE ONLINE rac02 169.254.166.15 192.1
68.64.59,STABLE
ora.cvu
1 ONLINE ONLINE rac02 STABLE
ora.mgmtdb
1 ONLINE ONLINE rac02 Open,STABLE
ora.oc4j
1 ONLINE ONLINE rac02 STABLE
ora.rac02.vip
1 ONLINE ONLINE rac02 STABLE
ora.rac04.vip
1 ONLINE ONLINE rac04 STABLE
ora.scan1.vip
1 ONLINE ONLINE rac02 STABLE
ora.tmdb.db
1 ONLINE ONLINE rac02 Open,STABLE
2 ONLINE ONLINE rac04 Open,STABLE
--------------------------------------------------------------------------------
[root@rac02 ~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DATA.dg ora....up.type ONLINE ONLINE rac02
ora....ER.lsnr ora....er.type ONLINE ONLINE rac02
ora....N1.lsnr ora....er.type ONLINE ONLINE rac02
ora.MGMTLSNR ora....nr.type ONLINE ONLINE rac02
ora.OCR.dg ora....up.type ONLINE ONLINE rac02
ora.asm ora.asm.type ONLINE ONLINE rac02
ora.cvu ora.cvu.type ONLINE ONLINE rac02
ora.mgmtdb ora....db.type ONLINE ONLINE rac02
ora....network ora....rk.type ONLINE ONLINE rac02
ora.oc4j ora.oc4j.type ONLINE ONLINE rac02
ora.ons ora.ons.type ONLINE ONLINE rac02
ora....SM1.asm application ONLINE ONLINE rac02
ora....02.lsnr application ONLINE ONLINE rac02
ora.rac02.ons application ONLINE ONLINE rac02
ora.rac02.vip ora....t1.type ONLINE ONLINE rac02
ora....SM2.asm application ONLINE ONLINE rac04
ora....04.lsnr application ONLINE ONLINE rac04
ora.rac04.ons application ONLINE ONLINE rac04
ora.rac04.vip ora....t1.type ONLINE ONLINE rac04
ora.scan1.vip ora....ip.type ONLINE ONLINE rac02
ora.tmdb.db ora....se.type ONLINE ONLINE rac02
[root@rac04 ~]# crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

查看数据库状态

1
2
3
[root@rac02 ~]# srvctl status database -db tmdb
实例 tmdb1 正在节点 rac02 上运行
实例 tmdb2 正在节点 rac04 上运行

查看数据库的配置信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
srvctl config database -d utmdb

[oracle@rac02 ~]$ srvctl config database -d utmdb
Database unique name: utmdb
Database name: tmdb
Oracle home: /u01/app/oracle/product/12.1.0/dbhome_1
Oracle user: oracle
Spfile: +DATA/UTMDB/PARAMETERFILE/spfileutmdb.ora
Password file: +DATA/TMDB/PASSWORD/pwdtmdb.256.982090469
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups: DATA
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances: tmdb1,tmdb2
Configured nodes: rac02,rac04
Database is administrator managed

查看集群对象的状态

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[root@rac02 ~]# srvctl status -h
SRVCTL status 命令显示对象的当前状态。
用法: srvctl status database {-db <db_unique_name> [-serverpool <serverpool_name>] | -serverpool <serverpool_name> | -thisversion | -thishome} [-force] [-verbose]
用法: srvctl status instance -db <db_unique_name> {-node <node_name> | -instance <inst_name_list>} [-force] [-verbose]
用法: srvctl status service {-db <db_unique_name> [-service "<service_name_list>"] | -serverpool <serverpool_name> [-db <db_unique_name>]} [-force] [-verbose]
用法: srvctl status nodeapps [-node <node_name>]
用法: srvctl status vip {-node <node_name> | -vip <vip_name>} [-verbose]
用法: srvctl status listener [-listener <lsnr_name>] [-node <node_name>] [-verbose]
用法: srvctl status asm [-proxy] [-node <node_name>] [-detail] [-verbose]
用法: srvctl status scan [[-netnum <network_number>] [-scannumber <scan_ordinal_number>] | -all] [-verbose]
用法: srvctl status scan_listener [[-netnum <network_number>] [-scannumber <scan_ordinal_number>] | -all] [-verbose]
用法: srvctl status srvpool [-serverpool <pool_name>] [-detail]
用法: srvctl status server -servers "<server_list>" [-detail]
用法: srvctl status oc4j [-node <node_name>] [-verbose]
用法: srvctl status rhpserver
用法: srvctl status rhpclient
用法: srvctl status home -oraclehome <oracle_home> -statefile <state_file> -node <node_name>
用法: srvctl status filesystem [-device <volume_device>] [-verbose]
用法: srvctl status volume [-device <volume_device>] [-volume <volume_name>] [-diskgroup <group_name>] [-node <node_list> | -all]
用法: srvctl status diskgroup -diskgroup <dg_name> [-node "<node_list>"] [-detail] [-verbose]
用法: srvctl status cvu [-node <node_name>]
用法: srvctl status gns [-node <node_name>] [-verbose]
用法: srvctl status mgmtdb [-verbose]
用法: srvctl status mgmtlsnr [-verbose]
用法: srvctl status exportfs [-name <expfs_name> |-id <havip id>]
用法: srvctl status havip [-id <id>]
用法: srvctl status mountfs -name <mountfs_name>
有关各个命令和对象的详细帮助, 请使用:
srvctl <command> <object> -help [-compatible]

查看集群对象状态示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
查看实例状态
[root@rac02 ~]# srvctl status instance -db tmdb -node rac02
实例 tmdb1 正在节点 rac02 上运行
查看scan状态
[root@rac02 ~]# srvctl status scan
SCAN VIP scan1 已启用
SCAN VIP scan1 正在节点 rac02 上运行
查看监听状态
[root@rac02 ~]# srvctl status listener
监听程序 LISTENER 已启用
监听程序 LISTENER 正在节点上运行: rac04,rac02
[root@rac02 ~]# srvctl status asm -a
ASM 正在 rac04,rac02 上运行
ASM 已启用。

启动数据库

启动集群中所有节点的数据库

1
[root@rac02 ~]#srvctl start database -db tmdb

启动数据详细参数

1
2
3
4
5
6
7
8
9
10
[root@rac04 ~]# srvctl start database -h
启动数据库。
用法: srvctl start database -db <db_unique_name> [-startoption <start_options>] [-startconcurrency <start_concurrency>] [-node <node>] [-eval] [-verbose]
-db <db_unique_name> 数据库的唯一名称
-startoption <start_options> 启动命令选项 (例如 OPEN, MOUNT, 或 "READ ONLY")
-startconcurrency <start_concurrency> 要同时启动的实例数 (或 0, 对于空 start_concurrency 值)
-node <node> 要启动数据库的节点 (仅用于 RAC One Node 数据库)
-eval 评估事件的效果, 不对系统进行任何更改
-verbose 详细输出
-help 输出用法

启动集群中单个节点的数据库

1
srvctl start instance -db tmdb -node rac02

或者

1
2
3
4
oracle 用户登入操作系统,登入sqlplus / as sysdba 执行 startup
su - oracle
如:sqlplus / as sysdba
然后输入:startup

查看数据库状态

1
2
3
4
5
6
7
8
9
10
11
12
13
select name,open_mode from v$database; 
select instance_name,status from v$instance;
SQL> select name,open_mode from v$database;

NAME OPEN_MODE
------------------ ----------------------------------------
TMDB READ WRITE

SQL> select instance_name,status from v$instance;

INSTANCE_NAME STATUS
-------------------------------- ------------------------
tmdb1 OPEN

关闭数据库

关闭集群中所有节点的数据库

1
[root@rac04 ~]# srvctl stop database -db tmdb

关闭数据库详细参数

1
2
3
4
5
6
7
8
9
10
[root@rac04 ~]# srvctl stop database -h
停止数据库。
用法: srvctl stop database -db <db_unique_name> [-stopoption <stop_options>][-stopconcurrency ] [-force][-eval] [-verbose]
-db <db_unique_name> 数据库的唯一名称
-stopoption <stop_options> 关闭命令选项 (例如 NORMAL, TRANSACTIONAL, IMMEDIATE 或 ABORT)
-stopconcurrency <stop_concurrency> 要同时停止的实例数 (或 0, 对于空 stop_concurrency 值)
-eval 评估事件的效果, 不对系统进行任何更改
-force 强制停止, 将停止数据库和任何已关联的服务以及任何相关资源
-verbose 详细输出
-help 输出用法

关闭集群中单个节点的数据库

1
srvctl stop instance -db tmdb -node rac02

或者

1
2
3
4
oracle 用户登入操作系统,登入sqlplus / as sysdba 执行shutdown immediate
su - oracle
如:sqlplus / as sysdba
然后输入:shutdown immediate

日志

CRS 日志

1
$CRS_BASE/diag/crs/$(hostname)/crs/trace/alert.log

ASM 日志

节点1、2的ASM日志如下,如有其他节点依次类推

1
2
$CRS_BASE/diag/asm/+asm/+ASM1/trace/vi alert_+ASM1.log
$CRS_BASE/diag/asm/+asm/+ASM2/trace/vi alert_+ASM2.log

数据库日志

其中db name 为tmdb,以下是节点1、2的日志,如有其他节点依次类推

1
2
$ORACLE_BASE/diag/rdbms/tmdb/tmdb1/trace/alert_tmdb1.log
$ORACLE_BASE/diag/rdbms/tmdb/tmdb2/trace/alert_tmdb2.log

其他资源日志

1
$CRS_BASE/diag/crs/$(hostname)/crs/trace/*.trc

附 srvctl 使用帮助

srvctl 的命令参数繁多,平时使用的时候通过 -h来查看帮助信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
[root@rac02 trace]# srvctl -h
用法: srvctl [-V]
用法: srvctl add database -db <db_unique_name> -oraclehome <oracle_home> [-dbtype {RACONENODE | RAC | SINGLE} [-server <server_list>] [-instance <inst_name>] [-timeout <timeout>]] [-domain <domain_name>] [-spfile <spfile>] [-pwfile <password_file_path>] [-role {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY | SNAPSHOT_STANDBY | FAR_SYNC}] [-startoption <start_options>] [-stopoption <stop_options>] [-startconcurrency <start_concurrency>] [-stopconcurrency <stop_concurrency>] [-dbname <db_name>] [-policy {AUTOMATIC | MANUAL | NORESTART}] [-serverpool "<serverpool_list>" [-pqpool <pq_server_pools>]] [-node <node_name>] [-diskgroup "<diskgroup_list>"] [-acfspath "<acfs_path_list>"] [-eval] [-fixed] [-verbose]
用法: srvctl config database [-db <db_unique_name> [-all] | -serverpool <serverpool_name>] [-verbose]
用法: srvctl start database -db <db_unique_name> [-startoption <start_options>] [-startconcurrency <start_concurrency>] [-node <node>] [-eval] [-verbose]
用法: srvctl stop database -db <db_unique_name> [-stopoption <stop_options>] [-stopconcurrency <stop_concurrency>] [-force] [-eval] [-verbose]
用法: srvctl status database {-db <db_unique_name> [-serverpool <serverpool_name>] | -serverpool <serverpool_name> | -thisversion | -thishome} [-force] [-verbose]
用法: srvctl enable database -db <db_unique_name> [-node <node_name>]
用法: srvctl disable database -db <db_unique_name> [-node <node_name>]
用法: srvctl modify database -db <db_unique_name> [-dbname <db_name>] [-instance <instance_name>] [-oraclehome <oracle_home>] [-user <oracle_user>] [-server <server_list>] [-timeout <timeout>] [-domain <domain>] [-spfile <spfile>] [-pwfile <password_file_path>] [-role {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY | SNAPSHOT_STANDBY}] [-startoption <start_options>] [-stopoption <stop_options>] [-startconcurrency <start_concurrency>] [-stopconcurrency <stop_concurrency>][-policy {AUTOMATIC | MANUAL | NORESTART}] [-serverpool "<serverpool_list>" [-node <node_name>]] [-pqpool <pq_server_pools>] [-diskgroup "<diskgroup_list>"|-nodiskgroup] [-acfspath "<acfs_path_list>"] [-force] [-eval] [-verbose]
用法: srvctl remove database -db <db_unique_name> [-force] [-noprompt] [-verbose]
用法: srvctl getenv database -db <db_unique_name> [-envs "<name>[,...]"]
用法: srvctl setenv database -db <db_unique_name> {-envs "<name>=<val>[,...]" | -env "<name>=<val>"}
用法: srvctl unsetenv database -db <db_unique_name> -envs "<name>[,...]"
用法: srvctl predict database -db <database_name> [-verbose]
用法: srvctl convert database -db <db_unique_name> -dbtype RAC [-node <node>]
用法: srvctl convert database -db <db_unique_name> -dbtype RACONENODE [-instance <inst_name>] [-timeout <timeout>]
用法: srvctl relocate database -db <db_unique_name> {[-node <target>] [-timeout <timeout>] [-stopoption <stop_option>] | -abort [-revert]} [-verbose]
用法: srvctl upgrade database -db <db_unique_name> -oraclehome <oracle_home>
用法: srvctl downgrade database -db <db_unique_name> -oraclehome <oracle_home> -targetversion <to_version>
用法: srvctl update database -db <db_unique_name> [-startoption <start_options> [-node <node_name]]
用法: srvctl add instance -db <db_unique_name> -instance <inst_name> -node <node_name> [-force]
用法: srvctl start instance -db <db_unique_name> {-node <node_name> [-instance <inst_name>] | -instance <inst_name_list>} [-startoption <start_options>]
用法: srvctl stop instance -db <db_unique_name> {-node <node_name> | -instance <inst_name_list>} [-stopoption <stop_options>] [-force] [-failover]
用法: srvctl status instance -db <db_unique_name> {-node <node_name> | -instance <inst_name_list>} [-force] [-verbose]
用法: srvctl enable instance -db <db_unique_name> -instance "<inst_name_list>"
用法: srvctl disable instance -db <db_unique_name> -instance "<inst_name_list>"
用法: srvctl modify instance -db <db_unique_name> -instance <inst_name> -node <node_name>
用法: srvctl remove instance -db <db_unique_name> -instance <inst_name> [-force] [-noprompt]
用法: srvctl update instance -db <db_unique_name> {-instance <instance_name> | -node <node_name>} -startoption <start_options>
用法: srvctl add service -db <db_unique_name> -service <service_name> {-preferred "<preferred_list>" [-available "<available_list>"] [-tafpolicy {BASIC | NONE | PRECONNECT}] | -serverpool <pool_name> [-cardinality {UNIFORM | SINGLETON}] } [-netnum <network_number>] [-role "[PRIMARY][,PHYSICAL_STANDBY][,LOGICAL_STANDBY][,SNAPSHOT_STANDBY]"] [-policy {AUTOMATIC | MANUAL}] [-notification {TRUE|FALSE}] [-dtp {TRUE|FALSE}] [-clbgoal {SHORT|LONG}] [-rlbgoal {NONE|SERVICE_TIME|THROUGHPUT}] [-failovertype {NONE|SESSION|SELECT|TRANSACTION}] [-failovermethod {NONE|BASIC}] [-failoverretry <failover_retries>] [-failoverdelay <failover_delay>] [-edition <edition>] [-pdb <pluggable_database>] [-global {TRUE|FALSE}] [-maxlag <max_lag_time>] [-sql_translation_profile <sql_translation_profile>] [-commit_outcome {TRUE|FALSE}] [-retention <retention>] [-replay_init_time <replay_initiation_time>] [-session_state {STATIC|DYNAMIC}] [-pqservice <pq_service>] [-pqpool <pq_pool_list>] [-gsmflags <gsm_flags>] [-force] [-eval] [-verbose]
用法: srvctl add service -db <db_unique_name> -service <service_name> -update {-preferred "<new_pref_inst>" | -available "<new_avail_inst>"} [-force] [-verbose]
用法: srvctl config service {-db <db_unique_name> [-service <service_name>] | -serverpool <serverpool_name> [-db <db_unique_name>]} [-verbose]
用法: srvctl enable service -db <db_unique_name> -service "<service_name_list>" [-instance <inst_name> | -node <node_name>] [-global_override]
用法: srvctl disable service -db <db_unique_name> -service "<service_name_list>" [-instance <inst_name> | -node <node_name>] [-global_override]
用法: srvctl status service {-db <db_unique_name> [-service "<service_name_list>"] | -serverpool <serverpool_name> [-db <db_unique_name>]} [-force] [-verbose]
用法: srvctl predict service -db <database_name> -service <service_name> [-verbose]
用法: srvctl modify service -db <db_unique_name> -service <service_name> -oldinst <old_inst_name> -newinst <new_inst_name> [-force]
用法: srvctl modify service -db <db_unique_name> -service <service_name> -available <avail_inst_name> -toprefer [-force]
用法: srvctl modify service -db <db_unique_name> -service <service_name> -modifyconfig -preferred "<preferred_list>" [-available "<available_list>"] [-force]
用法: srvctl modify service -db <db_unique_name> -service <service_name> [-serverpool <pool_name>] [-pqservice <pqsvc_name>] [-pqpool <pq_pool_list>] [-cardinality {UNIFORM | SINGLETON}] [-tafpolicy {BASIC|NONE}] [-role [PRIMARY][,PHYSICAL_STANDBY][,LOGICAL_STANDBY][,SNAPSHOT_STANDBY]] [-policy {AUTOMATIC | MANUAL}][-notification {TRUE|FALSE}] [-dtp {TRUE|FALSE}] [-clbgoal {SHORT|LONG}] [-rlbgoal {NONE|SERVICE_TIME|THROUGHPUT}] [-failovertype {NONE|SESSION|SELECT|TRANSACTION}] [-failovermethod {NONE|BASIC}] [-failoverretry <integer>] [-failoverdelay <integer>] [-edition <edition>] [-pdb <pluggable_database>] [-sql_translation_profile <sql_translation_profile>] [-commit_outcome {TRUE|FALSE}] [-retention <retention>] [-replay_init_time <replay_initiation_time>] [-session_state {STATIC|DYNAMIC}] [-maxlag <max_lag_time>] [-gsmflags <gsm_flags>] [-global_override] [-eval] [-verbose] [-force]
用法: srvctl relocate service -db <db_unique_name> -service <service_name> {-oldinst <old_inst_name> -newinst <new_inst_name> | -currentnode <current_node> -targetnode <target_node>} [-pq] [-force [-noreplay]] [-eval] [-verbose]
用法: srvctl remove service -db <db_unique_name> -service <service_name> [-instance <inst_name>] [-global_override] [-force]
用法: srvctl start service -db <db_unique_name> [-service "<service_name_list>"] [-serverpool <pool_name>] [-node <node_name> | -instance <inst_name>] [-pq] [-global_override] [-startoption <start_options>] [-eval] [-verbose]
用法: srvctl stop service -db <db_unique_name> [-service "<service_name_list>"] [-serverpool <pool_name>] [-node <node_name> | -instance <inst_name>] [-pq] [-global_override] [-force [-noreplay]] [-eval] [-verbose]
用法: srvctl add nodeapps { { -node <node_name> -address {<vip_name>|<ip>}/<netmask>[/if1[|if2...]] [-skip]} | { -subnet <subnet>/<netmask>[/if1[|if2...]] } } [-emport <em_port>] [-onslocalport <ons_local_port>] [-onsremoteport <ons_remote_port>] [-remoteservers <host>[:<port>][,<host>[:<port>]...]] [-clientdata <file>] [-pingtarget "<pingtarget_list>"] [-verbose]
用法: srvctl config nodeapps [-viponly] [-onsonly]
用法: srvctl modify nodeapps {[-node <node_name> -address {<vip_name>|<ip>}/<netmask>[/if1[|if2...]] [-skip]] | [-subnet <subnet>/<netmask>[/if1[|if2|...]]]} [-nettype {STATIC|DHCP|AUTOCONFIG|MIXED}] [-emport <em_port>] [ -onslocalport <ons_local_port> ] [-onsremoteport <ons_remote_port> ] [-remoteservers <host>[:<port>][,<host>[:<port>]...]] [-clientdata <file>] [-pingtarget "<pingtarget_list>"] [-verbose]
用法: srvctl start nodeapps [-node <node_name>] [-adminhelper | -onsonly] [-verbose]
用法: srvctl stop nodeapps [-node <node_name>] [-adminhelper | -onsonly | -relocate] [-force] [-verbose]
用法: srvctl status nodeapps [-node <node_name>]
用法: srvctl enable nodeapps [-adminhelper] [-verbose]
用法: srvctl disable nodeapps [-adminhelper] [-verbose]
用法: srvctl remove nodeapps [-force] [-noprompt] [-verbose]
用法: srvctl getenv nodeapps [-viponly] [-onsonly] [-envs "<name>[,...]"]
用法: srvctl setenv nodeapps {-envs "<name>=<val>[,...]" | -env "<name>=<val>"} [-viponly | -onsonly] [-verbose]
用法: srvctl unsetenv nodeapps -envs "<name>[,...]" [-viponly | -onsonly] [-verbose]
用法: srvctl add vip -node <node_name> -netnum <network_number> -address {<name>|<ip>}/<netmask>[/if1[|if2...]] [-skip] [-verbose]
用法: srvctl config vip {-node <node_name> | -vip <vip_name>}
用法: srvctl disable vip -vip <vip_name> [-verbose]
用法: srvctl enable vip -vip <vip_name> [-verbose]
用法: srvctl remove vip -vip <vip_name_list> [-force] [-noprompt] [-verbose]
用法: srvctl getenv vip -vip <vip_name> [-envs "<name>[,...]"]
用法: srvctl start vip {-node <node_name> [-netnum <network_number>] | -vip <vip_name>} [-verbose]
用法: srvctl stop vip {-node <node_name> [-netnum <network_number>] | -vip <vip_name>} [-force] [-relocate] [-verbose]
用法: srvctl relocate vip -vip <vip_name> [-node <node_name>] [-force] [-verbose]
用法: srvctl status vip {-node <node_name> | -vip <vip_name>} [-verbose]
用法: srvctl setenv vip -vip <vip_name> {-envs "<name>=<val>[,...]" | -env "<name>=<val>"} [-verbose]
用法: srvctl unsetenv vip -vip <vip_name> -envs "<name>[,...]" [-verbose]
用法: srvctl predict vip -vip <vip_name> [-verbose]
用法: srvctl add network [-netnum <network_number>] -subnet <subnet>/<netmask>[/if1[|if2...]] [-nettype {STATIC|DHCP|AUTOCONFIG|MIXED}] [-pingtarget "<pingtarget_list>"] [-leaf] [-verbose]
用法: srvctl config network [-netnum <network_number>]
用法: srvctl modify network [-netnum <network_number>] [-subnet <subnet>/<netmask>[/if1[|if2...]]] [-nettype {STATIC|DHCP|AUTOCONFIG|MIXED}] [-iptype {IPV4|IPV6|BOTH}] [-pingtarget "<pingtarget_list>"] [-verbose]
用法: srvctl remove network {-netnum <network_number> | -all} [-force] [-verbose]
用法: srvctl predict network [-netnum <network_number>] [-verbose]
用法: srvctl add asm [-listener <lsnr_name>] [-pwfile <password_file_path>] [-flex [-count {<number_of_instances>|ALL}]|-proxy]
用法: srvctl start asm [-proxy] [-node <node_name>] [-startoption <start_options>]
用法: srvctl stop asm [-proxy] [-node <node_name>] [-stopoption <stop_options>] [-force]
用法: srvctl config asm [-proxy] [-detail]
用法: srvctl status asm [-proxy] [-node <node_name>] [-detail] [-verbose]
用法: srvctl enable asm [-proxy] [-node <node_name>]
用法: srvctl disable asm [-proxy] [-node <node_name>]
用法: srvctl modify asm [-listener <lsnr_name>] [-pwfile <password_file_path>] [-count {<number_of_instances>|ALL}] [-force]
用法: srvctl remove asm [-proxy] [-force]
用法: srvctl relocate asm -currentnode <current_node> [-targetnode <target_node>] [-force]
用法: srvctl getenv asm [-envs "<name>[,...]"]
用法: srvctl setenv asm {-envs "<name>=<val>[,...]" | -env "<name>=<value>"}
用法: srvctl unsetenv asm -envs "<name>[,...]"
用法: srvctl predict asm [-node <node_name>] [-verbose]
用法: srvctl start diskgroup -diskgroup <dg_name> [-node "<node_list>"]
用法: srvctl stop diskgroup -diskgroup <dg_name> [-node "<node_list>"] [-force]
用法: srvctl status diskgroup -diskgroup <dg_name> [-node "<node_list>"] [-detail] [-verbose]
用法: srvctl enable diskgroup -diskgroup <dg_name> [-node "<node_list>"]
用法: srvctl disable diskgroup -diskgroup <dg_name> [-node "<node_list>"]
用法: srvctl remove diskgroup -diskgroup <dg_name> [-force]
用法: srvctl predict diskgroup -diskgroup <diskgroup_name> [-verbose]
用法: srvctl add listener [-listener <lsnr_name>] {[-netnum <network_number>] [-oraclehome <path>] [-user <oracle_user>] | -asmlistener [-subnet <subnet>] | -leaflistener [-subnet <subnet>]} [-skip] [-endpoints "[TCP:]<port>[, ...][/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]"] [-invitednodes <node_list>] [-invitedsubnets <subnet_list>]
用法: srvctl config listener [-listener <lsnr_name> | -asmlistener | -leaflistener] [-all]
用法: srvctl start listener [-listener <lsnr_name>] [-node <node_name>]
用法: srvctl stop listener [-listener <lsnr_name>] [-node <node_name>] [-force]
用法: srvctl status listener [-listener <lsnr_name>] [-node <node_name>] [-verbose]
用法: srvctl enable listener [-listener <lsnr_name>] [-node <node_name>]
用法: srvctl disable listener [-listener <lsnr_name>] [-node <node_name>]
用法: srvctl modify listener [-listener <lsnr_name>] [-oraclehome <path>] [-endpoints "[TCP:]<port>[, ...][/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]"] [-user <oracle_user>] [-netnum <network_number>]
用法: srvctl remove listener [-listener <lsnr_name> | -all] [-force]
用法: srvctl getenv listener [-listener <lsnr_name>] [-envs "<name>[,...]"]
用法: srvctl setenv listener [-listener <lsnr_name>] {-envs "<name>=<val>[,...]" | -env "<name>=<value>"}
用法: srvctl unsetenv listener [-listener <lsnr_name>] -envs "<name>[,...]"
用法: srvctl predict listener -listener <listener_name> [-verbose]
用法: srvctl add scan -scanname <scan_name> [-netnum <network_number>]
用法: srvctl config scan [[-netnum <network_number>] [-scannumber <scan_ordinal_number>] | -all]
用法: srvctl start scan [-netnum <network_number>] [-scannumber <scan_ordinal_number>] [-node <node_name>]
用法: srvctl stop scan [-netnum <network_number>] [-scannumber <scan_ordinal_number>] [-force]
用法: srvctl relocate scan -scannumber <scan_ordinal_number> [-netnum <network_number>] [-node <node_name>]
用法: srvctl status scan [[-netnum <network_number>] [-scannumber <scan_ordinal_number>] | -all] [-verbose]
用法: srvctl enable scan [-netnum <network_number>] [-scannumber <scan_ordinal_number>]
用法: srvctl disable scan [-netnum <network_number>] [-scannumber <scan_ordinal_number>]
用法: srvctl modify scan -scanname <scan_name> [-netnum <network_number>]
用法: srvctl remove scan [-netnum <network_number>] [-force] [-noprompt]
用法: srvctl predict scan -scannumber <scan_ordinal_number> [-netnum <network_number>] [-verbose]
用法: srvctl add scan_listener [-netnum <network_number>] [-listener <lsnr_name_prefix>] [-skip] [-endpoints [TCP:]<port>[/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]] [-invitednodes <node_list>] [-invitedsubnets <subnet_list>]
用法: srvctl config scan_listener [[-netnum <network_number>] [-scannumber <scan_ordinal_number>] | -all]
用法: srvctl start scan_listener [-netnum <network_number>] [-scannumber <scan_ordinal_number>] [-node <node_name>]
用法: srvctl stop scan_listener [-netnum <network_number>] [-scannumber <scan_ordinal_number>] [-force]
用法: srvctl relocate scan_listener -scannumber <scan_ordinal_number> [-netnum <network_number>] [-node <node_name>]
用法: srvctl status scan_listener [[-netnum <network_number>] [-scannumber <scan_ordinal_number>] | -all] [-verbose]
用法: srvctl enable scan_listener [-netnum <network_number>] [-scannumber <scan_ordinal_number>]
用法: srvctl disable scan_listener [-netnum <network_number>] [-scannumber <scan_ordinal_number>]
用法: srvctl modify scan_listener {-update|-endpoints [TCP:]<port>[/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]} [-netnum <network_number>] [-invitednodes <node_list>] [-invitedsubnets <subnet_list>]
用法: srvctl update scan_listener
用法: srvctl remove scan_listener [-netnum <network_number>] [-force] [-noprompt]
用法: srvctl predict scan_listener -scannumber <scan_ordinal_number> [-netnum <network_number>] [-verbose]
用法: srvctl add srvpool -serverpool <pool_name> [-min <min>] [-max <max>] [-importance <importance>] [-servers "<server_list>" | -category <server_category>] [-force] [-eval] [-verbose]
用法: srvctl config srvpool [-serverpool <pool_name>]
用法: srvctl status srvpool [-serverpool <pool_name>] [-detail]
用法: srvctl status server -servers "<server_list>" [-detail]
用法: srvctl relocate server -servers "<server_list>" -serverpool <pool_name> [-force] [-eval] [-verbose]
用法: srvctl modify srvpool -serverpool <pool_name> [-min <min>] [-max <max>] [-importance <importance>] [-servers "<server_list>" | -category <server_category>] [-force] [-eval] [-verbose]
用法: srvctl remove srvpool -serverpool <pool_name> [-eval] [-verbose]
用法: srvctl add oc4j [-verbose]
用法: srvctl config oc4j
用法: srvctl start oc4j [-node <node_name>] [-verbose]
用法: srvctl stop oc4j [-force] [-verbose]
用法: srvctl relocate oc4j [-node <node_name>] [-verbose]
用法: srvctl status oc4j [-node <node_name>] [-verbose]
用法: srvctl enable oc4j [-node <node_name>] [-verbose]
用法: srvctl disable oc4j [-node <node_name>] [-verbose]
用法: srvctl modify oc4j [-rmiport <oc4j_rmi_port>] [-httpport <oc4j_http_port>] [-verbose] [-force]
用法: srvctl remove oc4j [-force] [-verbose]
用法: srvctl predict oc4j [-verbose]
用法: srvctl add rhpserver -storage <base_path> -diskgroup <dg_name>
用法: srvctl config rhpserver
用法: srvctl start rhpserver [-node <node_name>]
用法: srvctl stop rhpserver
用法: srvctl relocate rhpserver [-node <node_name>]
用法: srvctl status rhpserver
用法: srvctl enable rhpserver [-node <node_name>]
用法: srvctl disable rhpserver [-node <node_name>]
用法: srvctl modify rhpserver [-port <rmi_port> [-force]]
用法: srvctl remove rhpserver [-force]
用法: srvctl add havip -id <id> -address {<name>|<ip>} [-netnum <network_number>] [-description <text>] [-skip] [-homenode <node_name>]
用法: srvctl config havip [-id <id>]
用法: srvctl start havip -id <id> [-node <node_name>]
用法: srvctl stop havip -id <id> [-node <node_name>] [-force]
用法: srvctl relocate havip -id <id> [-node <node_name>] [-force]
用法: srvctl status havip [-id <id>]
用法: srvctl enable havip -id <id> [-node <node_name>]
用法: srvctl disable havip -id <id> [-node <node_name>]
用法: srvctl modify havip -id <id> [-address {<name>|<ip>} [-netnum <network_number>] [-skip]] [-description <text>] [-homenode <node_name>]
用法: srvctl remove havip -id <id> [-force]
用法: srvctl add exportfs -name <expfs_name> -id <id> -path <exportpath> [-clients <export_clients>] [-options <export_options>]
用法: srvctl config exportfs [-name <expfs_name> | -id <havip id>]
用法: srvctl start exportfs {-name <expfs_name> | -id <havip id> }
用法: srvctl stop exportfs {-name <expfs_name> | -id <havip id> } [-force]
用法: srvctl status exportfs [-name <expfs_name> |-id <havip id>]
用法: srvctl enable exportfs -name <expfs_name>
用法: srvctl disable exportfs -name <expfs_name>
用法: srvctl modify exportfs -name <expfs_name> [-path <exportpath>] [-clients <export_clients>] [-options <export_options>]
用法: srvctl remove exportfs -name <expfs_name> [-force]
用法: srvctl add rhpclient -clientdata <file> [-diskgroup <dg_name> -storage <base_path>]
用法: srvctl config rhpclient
用法: srvctl start rhpclient [-node <node_name>]
用法: srvctl stop rhpclient
用法: srvctl relocate rhpclient [-node <node_name>]
用法: srvctl status rhpclient
用法: srvctl enable rhpclient [-node <node_name>]
用法: srvctl disable rhpclient [-node <node_name>]
用法: srvctl modify rhpclient [-clientdata <file>] [-port <rmi_port>] [-diskgroup <dg_name> -storage <base_path>]
用法: srvctl remove rhpclient [-force]
用法: srvctl start home -oraclehome <oracle_home> -statefile <state_file> -node <node_name>
用法: srvctl stop home -oraclehome <oracle_home> -statefile <state_file> -node <node_name> [-stopoption <stop_options>] [-force]
用法: srvctl status home -oraclehome <oracle_home> -statefile <state_file> -node <node_name>
用法: srvctl add filesystem -device <volume_device> -path <mountpoint_path> [-volume <volume_name>] [-diskgroup <dg_name>] [-node <node_list> | -serverpool <serverpool_list>] [-user <user_list>] [-fstype {ACFS|EXT3|EXT4}] [-fsoptions <options>] [-description <description>] [-appid <application_id>] [-autostart {ALWAYS|NEVER|RESTORE}] [-auxvolumes <volume_device>]
用法: srvctl config filesystem [-device <volume_device>]
用法: srvctl start filesystem -device <volume_device> [-node <node_name>]
用法: srvctl stop filesystem -device <volume_device> [-node <node_name>] [-force]
用法: srvctl relocate filesystem -device <volume_device> [-node <node_name>] [-force] [-verbose]
用法: srvctl status filesystem [-device <volume_device>] [-verbose]
用法: srvctl enable filesystem -device <volume_device>
用法: srvctl disable filesystem -device <volume_device>
用法: srvctl modify filesystem -device <volume_device> [-user {[/+ | /-]<user> | <user_list>}] [-path <mountpoint_path>] [-node <node_list> | -serverpool <serverpool_list>] [-fsoptions <options>] [-description <description>] [-autostart {ALWAYS|NEVER|RESTORE}] [-force]
用法: srvctl remove filesystem -device <volume_device> [-force]
用法: srvctl predict filesystem -device <volume_device> [-verbose]
用法: srvctl config volume [-volume <volume_name>] [-diskgroup <group_name>] [-device <volume_device>]
用法: srvctl start volume {-volume <volume_name> -diskgroup <group_name> | -device <volume_device>} [-node <node_list>]
用法: srvctl stop volume {-volume <volume_name> -diskgroup <group_name> | -device <volume_device>} [-node <node_list>] [-force]
用法: srvctl status volume [-device <volume_device>] [-volume <volume_name>] [-diskgroup <group_name>] [-node <node_list> | -all]
用法: srvctl enable volume {-volume <volume_name> -diskgroup <group_name> | -device <volume_device>} [-node <node_name>]
用法: srvctl disable volume {-volume <volume_name> -diskgroup <group_name> | -device <volume_device>} [-node <node_name>]
用法: srvctl start gns [-loglevel <log_level>] [-node <node_name>] [-verbose]
用法: srvctl stop gns [-node <node_name>] [-force] [-verbose]
用法: srvctl config gns [-detail] [-subdomain] [-multicastport] [-node <node_name>] [-port] [-status] [-version] [-query <name>] [-list] [-clusterguid] [-clustername] [-clustertype] [-loglevel] [-network] [-verbose]
用法: srvctl status gns [-node <node_name>] [-verbose]
用法: srvctl enable gns [-node <node_name>] [-verbose]
用法: srvctl disable gns [-node <node_name>] [-verbose]
用法: srvctl relocate gns [-node <node_name>] [-verbose]
用法: srvctl add gns {-vip {<vip_name> | <ip>} [-skip] [-domain <domain>] [-verbose] | -clientdata <filename>}
用法: srvctl modify gns {-loglevel <log_level> | [-resolve <name>] [-verify <name>] [-parameter <name>:<value>[,<name>:<value>...]] [-vip {<vip_name> | <ip>} [-skip]] [-clientdata <filename>] [-verbose]}
用法: srvctl remove gns [-force] [-verbose]
用法: srvctl import gns -instance <filename>
用法: srvctl export gns {-instance <filename> | -clientdata <filename>}
用法: srvctl update gns {-advertise <name> -address <address> [-timetolive <time_to_live>] | -delete <name> [-address <address>] | -alias <alias> -name <name> [-timetolive <time_to_live>] | -deletealias <alias> | -createsrv <service> -target <target> -protocol <protocol> [-weight <weight>] [-priority <priority>] [-port <port_number>] [-timetolive <time_to_live>] [-instance <instance_name>] | -deletesrv <service_name> -target <target> -protocol <protocol> [-instance <instance_name>] | -createtxt <name> -target <target> [-timetolive <time_to_live>] [-namettl <name_ttl>] | -deletetxt <name> -target <target> | -createptr <name> -target <target> [-timetolive <time_to_live>] [-namettl <name_ttl>] | -deleteptr <name> -target <target>} [-verbose]
用法: srvctl add cvu [-checkinterval <check_interval_in_minutes>]
用法: srvctl config cvu
用法: srvctl start cvu [-node <node_name>]
用法: srvctl stop cvu [-force]
用法: srvctl relocate cvu [-node <node_name>]
用法: srvctl status cvu [-node <node_name>]
用法: srvctl enable cvu [-node <node_name>]
用法: srvctl disable cvu [-node <node_name>]
用法: srvctl modify cvu -checkinterval <check_interval_in_minutes>
用法: srvctl remove cvu [-force]
用法: srvctl add mgmtdb [-domain <domain_name>]
用法: srvctl config mgmtdb [-verbose] [-all]
用法: srvctl start mgmtdb [-startoption <start_option>] [-node <node_name>]
用法: srvctl stop mgmtdb [-stopoption <stop_option>] [-force]
用法: srvctl update mgmtdb -startoption <start_options>
用法: srvctl status mgmtdb [-verbose]
用法: srvctl enable mgmtdb [-node <node_name>]
用法: srvctl disable mgmtdb [-node <node_name>]
用法: srvctl modify mgmtdb [-pwfile <password_file_path>] [-spfile <server_parameter_file>]
用法: srvctl remove mgmtdb [-force] [-noprompt] [-verbose]
用法: srvctl getenv mgmtdb [-envs "<name>[,...]"]
用法: srvctl setenv mgmtdb {-envs "<name>=<value>[,...]" | -env "<name=value>"}
用法: srvctl unsetenv mgmtdb -envs "<name>[,..]"
用法: srvctl relocate mgmtdb [-node <node_name>]
用法: srvctl add mgmtlsnr [-endpoints "[TCP:]<port>[, ...][/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]"] [-skip]
用法: srvctl config mgmtlsnr [-all]
用法: srvctl start mgmtlsnr [-node <node_name>]
用法: srvctl stop mgmtlsnr [-node <node_name>] [-force]
用法: srvctl status mgmtlsnr [-verbose]
用法: srvctl enable mgmtlsnr [-node <node_name>]
用法: srvctl disable mgmtlsnr [-node <node_name>]
用法: srvctl modify mgmtlsnr -endpoints "[TCP:]<port>[,...][/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]"
用法: srvctl remove mgmtlsnr [-force]
用法: srvctl getenv mgmtlsnr [ -envs "<name>[,...]"]
用法: srvctl setenv mgmtlsnr { -envs "<name>=<val>[,...]" | -env "<name>=<value>"}
用法: srvctl unsetenv mgmtlsnr -envs "<name>[,...]"
用法: srvctl add mountfs -name <mountfs_name> -path <mount_path> -exportserver <server_name> -exportpath <path> [-mountoptions <mount_options>] [-user <user>]
用法: srvctl config mountfs [-name <mountfs_name>]
用法: srvctl start mountfs -name <mountfs_name> [-node <node_list>]
用法: srvctl stop mountfs -name <mountfs_name> [-node <node_list>] [-force]
用法: srvctl status mountfs -name <mountfs_name>
用法: srvctl enable mountfs -name <mountfs_name> [-node <node_list>]
用法: srvctl disable mountfs -name <mountfs_name> [-node <node_list>]
用法: srvctl modify mountfs -name <mountfs_name> [-path <mount_path>] [-exportserver <server_name>] [-exportpath <path>] [-mountoptions <mount_options>] [-user <user>]
用法: srvctl remove mountfs -name <mountfs_name> [-force]

原文作者: liups.com

原文链接: http://liups.com/posts/1ba86a36/

许可协议: 知识共享署名-非商业性使用 4.0 国际许可协议