Giter Site home page Giter Site logo

cafedatabase / backup-report Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

This query shows a backup report to view at a glance the backup status and a kind of "scoring" for Ok, Warning and Critical situations.

License: GNU General Public License v3.0

backup-report's Introduction

backup report queries

This is a set of two queries I use to show up the status of the backups.

I took the initial query from Gavin Soorma's website and improve it to produce a detailed report for every database in the RMAN catalog. Here is the original query:

https://gavinsoorma.com.au/knowledge-base/script-query-the-rman-catalog-to-list-backup-completion-status/

The idea is to use BIPublisher or Oracle Analytics Server to create a report and use the two scripts as source.

With the "backup-report.sql" you get a detailed list of the last successfull backup of every type. With the "backup-report-graph.sql" you get the total of 'Warning/Ok!/Critical' databases.

As you may see, the criteria may be different for each script, so I use the two criterias I consider clearer to understand the backup situation of the databases.

The idea is getting the last DB Full backup, the last archivelogs backup, the last incremental level 0 and incremental level 1, and then stablish a scoring based on the ages you consider reasonable in your environment.

Here are the steps:

So, you have to run those scripts in the RMAN catalog database, or in the OEM repository database (in which case you need to create a dblink to the catalog owner of the RMAN repository).

1- Download all files in the OMS repository database or the RMAN catalog database.

backup-report.sql
backup-report-graph.sql

2- If you're running those scripts in the OEM repository, you should have a database link pointing to the RMAN catalog owner like this:

SQL> CREATE DATABASE LINK RMAN CONNECT TO <rman_catalog_owner> IDENTIFIED BY <password> USING '<RMAN_CONNECTION_STRING>';

NOTE: If you have issues, you should ensure you can reach the RMAN catalog like this:

sqlplus <rman_catalog_owner>/<password>@<RMAN_CONNECTION_STRING>

3- Run the scripts in sqlplus and check the results.

4- Now you can use those SQL scripts as data sources for your BI Publisher and Oracle Analytics Server reports.

Enjoy!

backup-report's People

Contributors

cafedatabase avatar

Stargazers

T_Royale avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.