1) Set the environment to the cloud control agent. You can agent name from /etc/oratab file.
myserver: $ . oraenv
ORACLE_SID = [ORCL] ? agent12c
2) Check which targets are being monitored by the cloud control agent on this server:
myserver: $ emctl config agent listtargets
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
[MYSERVER, host]
[MYSERVER:3872, oracle_emd]
[ORCL, oracle_database]
3) Check if there is any existing blackout of agent on this server:
myserver: $ emctl status blackout
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
No Blackout registered.
4) Start the blackout:
myserver: $ emctl start blackout orcl_down_20150204 ORCL:oracle_database
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Blackout orcl_down_20150204 added successfully
EMD reload completed successfully
5) Again check the status of the blackout:
myserver: $ emctl status blackout
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Blackoutname = orcl_down_20150204
Targets = (ORCL:oracle_database,)
Time = ({2015-02-04|16:51:37,|} )
Expired = False
6) Stop the blackout:
myserver: $ emctl stop blackout orcl_down_20150204
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Blackout orcl_down_20150204 stopped successfully
EMD reload completed successfully
7) Again check the status of blackout:
myserver: $ emctl status blackout
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
No Blackout registered.
myserver: $ . oraenv
ORACLE_SID = [ORCL] ? agent12c
2) Check which targets are being monitored by the cloud control agent on this server:
myserver: $ emctl config agent listtargets
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
[MYSERVER, host]
[MYSERVER:3872, oracle_emd]
[ORCL, oracle_database]
3) Check if there is any existing blackout of agent on this server:
myserver: $ emctl status blackout
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
No Blackout registered.
4) Start the blackout:
myserver: $ emctl start blackout orcl_down_20150204 ORCL:oracle_database
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Blackout orcl_down_20150204 added successfully
EMD reload completed successfully
5) Again check the status of the blackout:
myserver: $ emctl status blackout
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Blackoutname = orcl_down_20150204
Targets = (ORCL:oracle_database,)
Time = ({2015-02-04|16:51:37,|} )
Expired = False
6) Stop the blackout:
myserver: $ emctl stop blackout orcl_down_20150204
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Blackout orcl_down_20150204 stopped successfully
EMD reload completed successfully
7) Again check the status of blackout:
myserver: $ emctl status blackout
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
No Blackout registered.
No comments:
Post a Comment