I have a need to take down a database to perform a cold snapshot of the database’s files. This database is monitored by Enterprise Manager and I do not want to receive an alert when the database is down. So I need to figure out how to start a blackout in Enterprise Manager from the command line which will be included in our backup script.
On the database server, do the following:
cd $AGENT_HOME/bin
./emctl start blackout TestBlackoutEMCTL fgodba.acme.com
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Blackout TestBlackoutEMCTL added successfully
EMD reload completed successfully
We can verify the blackout is in effect in Enterprise Manager. Sign on to EM and click on Setup -> Blackouts. You should see something similar to the following:
Select the blackout radio button and click the View button.
We can verify that the blackout name contains the string that I denoted when I started the blackout with the date and time appended to it.
We can also query the status of the blackout on the command line:
./emctl status blackout
TMJ headache treatments may require rx viagra online more than just medication. This restorative medication viagra no rx has been clinically affirmed for expanding the enthusiasm of sexual action among the man and the mate. The psychotherapist helps us come to terms with the fact and investigate the cause http://donssite.com/family-day-at-the-beach.htm cialis for woman of the problem. I commander cialis http://www.donssite.com/steertech/freightliner-chrome-exhaust-steering-repair.htm did, and he showed me the self defense technique that he learned at the Kang Duk Won. Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Blackoutname = TestBlackoutEMCTL
Targets = (fgodba.acme.com:oracle_database,)
Time = ({2012-04-26|13:27:32,|} )
Expired = False
It is now time to end the blackout.
./emctl stop blackout TestBlackoutEMCTL
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Blackout TestBlackoutEMCTL stopped successfully
EMD reload completed successfully
This process is documented here:
http://docs.oracle.com/html/B12013_03/emctl.htm#i1030612
1 ping
[…] « Blackouts with EMCTL […]