Home » RDBMS Server » Server Administration » Monthly DB availability
Monthly DB availability [message #669262] Tue, 10 April 2018 14:35 Go to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Has anyone here developed a monthly SLA report for an Oracle environment that includes database availability? If so, how did you do it? For example, are you polling the databases every couple of minutes to see if they are up and store the result in a central repository? Any suggestions of how to approach this, or tools that can do it, will be highly appreciated.
Re: Monthly DB availability [message #669263 is a reply to message #669262] Tue, 10 April 2018 14:42 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Most of the monitoring tools like Nagios would have the reporting functionality built in.
We use a mixed setup of Nagios, splunk and custom built scripts (simple polling via cron).
Re: Monthly DB availability [message #669266 is a reply to message #669263] Wed, 11 April 2018 01:10 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Thank you Mahesh.

I assume most of these tools do periodic polling to check if the DBs are up. You can stop and start a database within the polling interval that will never be reported.

Instance startup times can be queried (v$instance.startup_time and even dba_hist_database_instance.startup_time), but shutdown times can be elusive (only controlled shutdowns are reported in the alert.log). A BEFORE SHUTDOWN system trigger is also not going to help much.

So, the best solution would probably be a combination of polling with startup time correction.
Re: Monthly DB availability [message #669273 is a reply to message #669266] Wed, 11 April 2018 09:34 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
I would also consider listener startup/shutdown.
Re: Monthly DB availability [message #669365 is a reply to message #669273] Tue, 17 April 2018 09:43 Go to previous messageGo to next message
Roachcoach
Messages: 1576
Registered: May 2010
Location: UK
Senior Member
We use Enterprise manager, it has a heap of out of the box stuff. Even splits out planned and unplanned downtime/agent issues:

Example:
Current Status		Up
Up Since		16-Apr-2018 21:47:25
Availability (%)		100
Target Down Time (minutes)		0
Blackout Time (minutes)		0
Notification Blackout for Maintenance Time (minutes)		60
Agent Down Time (minutes)		0
System Error Time (minutes)		0
Status Pending Time (minutes)		0
Remote Host Unreachable Time (minutes)		0
Availability (%) = Up time/(Up time + Target Down time + Agent Down time)
Re: Monthly DB availability [message #669366 is a reply to message #669365] Tue, 17 April 2018 10:55 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Yes, Cloud Control is brilliant for this sort of thing. But..... Licensing.

To get notifications, you need to licence the DB servers for Enterprise Edition plus Diagnostics Pack. This is infuriating. To get around it, you have to write a load of PL/SQL. Advanced Queueing is your friend (or enemy, more likely).

I do not know if the availability and SLA reports are available licence free. If not, you would have to write your own code to generate them by querying the OEM repository.
Re: Monthly DB availability [message #669404 is a reply to message #669366] Sun, 22 April 2018 02:37 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
The OEM views are also licensed (see Oracle Enterprise Manager Cloud Control Online Documentation Library, Release 13.1):

Enterprise Manager Licensing Information User Manual:
The following repository views are part of the Diagnostics Pack for Oracle Database:
...
"MGMT$AVAILABILITY_CURRENT
MGMT$AVAILABILITY_HISTORY
Quote:
Any and all methods of accessing Oracle Diagnostics Pack functionality, whether through Enterprise Manager Console, desktop widgets, command-line APIs, or direct access to the underlying data, require an Oracle Diagnostics Pack license.

Interesting enough, DBA_HIST_DATABASE_INSTANCE (unlike most DBA_HIST* views) is exempted from Diagnostics Pack Licenses.
Re: Monthly DB availability [message #669480 is a reply to message #669404] Tue, 24 April 2018 13:08 Go to previous message
steven_4U
Messages: 1
Registered: April 2018
Junior Member
You can create triggers when database starting up and that trigger insert some information table opened_time etc..
Previous Topic: ORA-28040: No matching authentication protocol error on fresh installation of Oracle 12c
Next Topic: Database Upgrade
Goto Forum:
  


Current Time: Thu Nov 28 11:29:32 CST 2024