11
Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Embed Size (px)

Citation preview

Page 1: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Database weekly reports

Zbigniew Baranowski

Carlos Fernando Gamboa

Page 2: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Database weekly reports

• Based on reports used for experiments database reporting

• HTML format• Content of DB report

– Top 5 active users/sites– Sessions per user and per service– Resource utilization by users – Short connections– Broken jobs & Invalid objects– Queries not using bind variables– Connection errors & passwords expiring & not used

schema– Fragmented table & Disk space usage per schema

2

Page 3: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Top 5 Sites & Users

3

Page 4: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Database weekly reports

• Database activity overview

4

Page 5: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Database weekly reports

• Queries not using bind variables

5

Page 6: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Database weekly reports

6

Page 7: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Architecture

• USERMON schema - containing audit data local repository on each monitored database

• PHP script – report generator– Located on your web server– Uses USERMON schema to generate report based on

session activity data and other db diagnostic views

RAL

BNL

3d Web Server

T1

Authorized user

Get reports for DB

Get data

Get data

7

Page 8: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Deployment

• PL/SQL installation script– To be run as sys– Creates USERMON schema– Moves AUD$ table to USERMON tablespace (takes care

about reasonable size of it)– Creates and schedule daily collector job– Enables CREATE SESSION auditing

• Registration of DB (USERMON credentials)– Via web

8

Page 9: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Reports access

• Who :Experiments DBAs & T1 administrators• Where : CERN web server for 3D

https://oms3d.cern.ch:1159/admin/t1reports.php

• How:– Via web repository interface– Authentication (reuse of accounts for T1)– Limitations (each site can access to own reports only)

9

Page 10: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Reports repository

10

Page 11: Database weekly reports Zbigniew Baranowski Carlos Fernando Gamboa

Questions?