Using Information Publisher Reports in Oracle Enterprise Manager for RMAN backup reporting.

Dear Readers,

Recently one of BU person in my project requested us to send scheduled report for RMAN Backup completion for one of critical databases. As this requirement was from Business, I thought of having it simple & less techie. After exploring few options, I thought of using OEM reporting functionalities & found its really amazing.

This post will guide you on how to create custom information publisher report.

1. Login to OEM. This is how my home page looks:

2. Click on Enterprise ==> Reports ==> Information Publisher Reports

3. This is landing page for Information Publisher Reports. Click on “Create”.

4. Report creation basically has 4 steps: General, Elements, Schedule, Access.

5. Fill the details under “General” tab as per your requirement. Check the box “Run report using target privileges of report owner (SYSMAN)”

6. Click on “Elements” tab, click on “Add”:

7. As I need to run a query against repository database, I will select “Table from SQL” & click on “continue”.

8. Click on “Set parameters” icon & configure your custom query as per your need. In my case, I am using the below & then click “Continue”

SELECT start_time as "Start",
end_time as "End",
output_bytes / 1024 / 1024 / 1024 as "Size in GB",
elapsed_Seconds / 60 as "Time taken in Minutes",
input_type as "Type",
output_device_type as "Device",
status as "Status"
FROM sysman.DB_BACKUP_HISTORY_E
WHERE target_GUID = '<GUID of your database>' -- you may need to query SYSMAN.EM_ALL_TARGETS to get these details.
and start_time>sysdate-1
ORDER BY start_time;

9. Click on “Preview” to see if you are getting desired results. If yes, click on “Return to Create Report Definition”.

10. Click on “Schedule” tab & setup schedule as per your need. Once done click “OK”.

11. Your report is now ready.

12. Check for simple yet powerful report in your inbox 🙂

Hope u will find this post very useful.

Cheers

Regards,
Adityanath

20 replies

  1. You have made some really good points there. I checked on the net for more info about the issue and found most people will go along with your views on this web site.

  2. Hi,
    I’m getting the below error. Is it checking as sysman user?

    I don’t have sysman in my database.

    Error rendering element. Exception: ORA-00942: table or view does not exist

    • Hello,

      Can you please provide below output from OMS repository database:

      desc sysman.DB_BACKUP_HISTORY_E

      select object_name, OWNER,object_type,status
      from dba_objects
      where object_NAME = ‘DB_BACKUP_HISTORY_E’;

      Also provide version of repository database.

      Regards,
      Adi

  3. Hi Adi,

    Please find the details below.

    OBJECT_NAME OWNER OBJECT_TYPE STATUS
    ——————– ————— ——————– ——-
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE PARTITION VALID
    DB_BACKUP_HISTORY_E SYSMAN TABLE VALID

    36 rows selected.

    SQL> desc sysman.DB_BACKUP_HISTORY_E
    Name Null? Type
    —————————————– ——– —————————-
    TARGET_GUID NOT NULL RAW(16)
    COLLECTION_TIMESTAMP DATE
    SESSION_KEY NOT NULL NUMBER
    SESSION_RECID NOT NULL NUMBER
    SESSION_STAMP NOT NULL NUMBER
    NAME VARCHAR2(33)
    STATUS VARCHAR2(23)
    INPUT_TYPE VARCHAR2(13)
    OUTPUT_DEVICE_TYPE VARCHAR2(17)
    START_TIME DATE
    END_TIME DATE
    TIME_TAKEN_DISPLAY VARCHAR2(72)
    INPUT_BYTES NUMBER
    OUTPUT_BYTES NUMBER
    MEDIA VARCHAR2(65)
    KEEP_UNTIL DATE
    KEEP VARCHAR2(3)
    KEEP_OPTIONS VARCHAR2(11)
    COMPRESSION_RATIO NUMBER
    INCREMENTAL_LEVEL NUMBER
    ELAPSED_SECONDS NUMBER
    TAG NOT NULL VARCHAR2(32)
    CONTAINER VARCHAR2(600)
    COMPRESSED VARCHAR2(3)
    ENCRYPTED VARCHAR2(3)
    INPUT_BYTES_DISPLAY VARCHAR2(4000)
    OUTPUT_BYTES_DISPLAY VARCHAR2(4000)
    OUTPUT_BYTES_PER_SEC NUMBER
    OUTPUT_BYTES_PER_SEC_DISPLAY VARCHAR2(4000)
    CON_ID NUMBER

    SQL> select count(*) from sysman.DB_BACKUP_HISTORY_E;

    COUNT(*)
    ———-
    0

  4. Useful information. Fortunate me I discovered your website by accident, and I’m stunned why this accident didn’t happened in advance! I bookmarked it.

  5. Wow! This can be one particular of the most helpful blogs We’ve ever arrive across on this subject. Basically Wonderful. I’m also a specialist in this topic so I can understand your hard work.

  6. Hello there, I discovered your website by the use of Google at the same time as looking for a comparable topic, your site came up, it looks great. I’ve bookmarked it in my google bookmarks.

  7. Incredible! This blog looks just like my old one! It’s on a entirely different topic but it has pretty much the same page layout and design. Wonderful choice of colors!

  8. Great work! This is the type of info that should be shared around the web. Shame on Google for not positioning this post higher! Come on over and visit my site . Thanks =)

  9. Please let me know if you’re looking for a article writer for
    your blog. You have some really great articles and I feel I would be a good asset.
    If you ever want to take some of the load off, I’d absolutely love to write some
    material for your blog in exchange for a link back to
    mine. Please send me an email if interested. Many thanks!

  10. You should take part in a contest for one of the highest quality sites on the internet. I will recommend this web site!

  11. I’m no longer sure where you are getting your info, but great topic.
    I must spend some time studying more or working out
    more. Thank you for excellent information I used to be
    looking for this information for my mission.

  12. Amazing! This blog looks exactly like my old one! It’s on a totally different subject but it has pretty much the same layout and design. Excellent choice of colors!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s