35
OracleAS Reports Services

OracleAS Reports Services

  • Upload
    laurie

  • View
    39

  • Download
    0

Embed Size (px)

DESCRIPTION

OracleAS Reports Services. Problem Statement. To simplify the process of managing, creating and execution of Oracle Reports. What is a Report?. A document which dynamically retrieves, formats and distributes database information. A General Reporting System. - PowerPoint PPT Presentation

Citation preview

Page 1: OracleAS Reports Services

OracleAS Reports Services

Page 2: OracleAS Reports Services

Problem Statement

To simplify the process of managing, creating and execution of Oracle Reports.

Page 3: OracleAS Reports Services

What is a Report?

A document which dynamically retrieves, formats and distributes database information.

Page 4: OracleAS Reports Services

A General Reporting System

Page 5: OracleAS Reports Services

Oracle Report Service Architecture

Page 6: OracleAS Reports Services

Limitations of Oracle Solution

Embedded Parameter Form Lack of report categorization Lack of report access description Limited report parameter description Inability to build reports from the web Complete Dependence on Oracle Reports

Service to view reports Complete dependence on Oracle Report

Builder to create reports

Page 7: OracleAS Reports Services

Improvements in the Developed System

Single Dynamic Parameter Form Additional METADATA stored in oracle database to

handle Report Categorization User Access

Multiple Parameter Lookups NONE SQL Query Date LOV from Help Table

Page 8: OracleAS Reports Services

Improvements in the Developed System (contd)

Ability to Create Reports from the web Handled by XML Reports compliant with oracle

reports DTD Complete independence from Oracle Reports

Builder and Service Handled by the ADHOC reporting subsystem

Page 9: OracleAS Reports Services

Report Added Value

Page 10: OracleAS Reports Services

Report Types

RDF Legacy Systems with existing oracle reports Created using Oracle Reports Builder Published using Oracle reports Service Individual Parameter forms not required

Page 11: OracleAS Reports Services

Report Types

XML No dependence on Oracle Reports Builder Report is created on the fly using the system Based on the Metadata provided Adheres to the oracle reports DTD Report is automatically deployed.

Page 12: OracleAS Reports Services

Report Types

SCRIPTS(ADHOC) No dependence on Oracle reports builder or

Oracle Reports Service. Based on a simple parameterized query. Example

Select * from emp where emp.salary > ‘P_1’ and emp.age < ‘P_2’

Page 13: OracleAS Reports Services

Modules

Report MaintenanceADHOC Report ModuleXML Report Generator

Report SchedulerReport Execution & Viewer

Page 14: OracleAS Reports Services

Report Maintenance

Module used to prepare and create reports. A simple user interface provides this

functionality. Modules stores the metadata required for

every report in the database.

Page 15: OracleAS Reports Services

Report MaintenanceParameter Metadata

The metadata required for a report is stored in a child table referencing the Report Table

Provides the ability to specify Parameter Name, Description, Lookup Type and Sequence

Types of Lookup None SQL Date LOV from Help Table

Page 16: OracleAS Reports Services

XML Report Generator

A module to build reports based on report metadata stored.

Output XML file created and is deployed. Creates the following sections which are

required to publish a report Data Layout

Page 17: OracleAS Reports Services

Logic Flow – XML Report Generator

Parameterized SQL Query Stored in the database along with report METADATA

XML Generator parses the SQL query to identify parameters and columns

For each column identified, respective <field> elements are created

If the report has parameters then the parameter name is included within the <userParameter> element

The generator then creates a header section based on information stored in the database

An XML report is created and is deployed to a location specified by the REPORTS_PATH env variable

The report is ready and can viewed or scheduled

Page 18: OracleAS Reports Services

ADHOC Report Module

An independent reporting engine which simulates the Oracle Reports Service.

Provides Maximum uptime. Implemented as stored procedures. Advantage

Complete independence from Oracle Reports Builder and Oracle Reports Service

Page 19: OracleAS Reports Services

ADHOC Report Logic Flow

Parameterized SQL Query Stored in the database

Report Viewer Builds a dynamic Parameter form based on the metadata available for the report

User selected variables are passed to the stored procedure variable as a CSV

Report execution stored procedure identifies an ADHOC report

The Parameterized SQL query is retrieved from the database as a string

The string and the CSV are parsed and a dynamic sql query built

At this stage “Select * from Employee where salary > ‘P_1’ and age = ‘P_2’ select * from employee where salary > 100000 and age= 45

This is used as a reference cursor and data is retrieved

The mime type decides the output format

Page 20: OracleAS Reports Services

Report Scheduler

Module Used to Schedule Reports RDF/XML Reports scheduled on Oracle

Reports Service. ADHOC reports scheduled within the oracle

database. Reports can be scheduled daily, weekly or

monthly. Scheduled metadata extracted and stored in

the database table.

Page 21: OracleAS Reports Services

RW_SERVER_JOB_QUEUE

The reports service assigns a jobid to every report which is run against it.

Table stores information of every job submitted to the reports service.

A web interface queries the table to display a list of scheduled jobs

Ability to cancel scheduled jobs.

Page 22: OracleAS Reports Services

Report Scheduler Logic Flow

User Initiates a schedule along with list of email address.

Report type metadata is extracted from the database

The DESTYPE parameter is automatically set to PDF

If report_type = RDF or XML, then the report is scheduled on the oracle reports serviceIf report_type= ADHOC, then DBMS_JOB is used to schedule the report

RW_SERVER_QUEUE contains the submitted job information. and is displayed on the interface

Page 23: OracleAS Reports Services

Report Execution & Viewer

Report Selection A user interface allows users to select reports Reports are displayed as a hierarchical structure based on

the report category metadata Only user specific Reports visible based on metadata.

Report execution Dynamic Parameter Form displayed based on the

metadata RDF/XML/Adhoc reports can be scheduled or viewed

instantaneously

Page 24: OracleAS Reports Services

Dynamic Report Parameter Form Logic Flow

Report parameter metadata is stored in the database

The report name is passed to the dynamic parameter interface

Also, based on the lookup type a user input is created, which could be a result of a SQL query

Based on the report name , the parameter Descriptions, and Sequence are displayed on the screen

The user inputs the variable parameters along with the output format and scheduling preference

The report is executed by passing the dynamic query string created to the reports service or ADHOC engine

Hence creating a Dynamic Parameter form, overcoming the limitations of embedding them within the report

Page 25: OracleAS Reports Services

Security

Access Provided based on Database Roles Roles

USER_ROLE READ_ONLY_ROLE REPORT_USER_ROLE REPORT_SCHEDULER_ROLE

Page 26: OracleAS Reports Services

Advantages

No Knowledge of Report Builder Required to Build reports

No licensing costs involved (XML,ADHOC) Batch update reports easily (XML) Supports various types of reports –

RDF,XML,SCRIPTS Independence from Oracle Reports Builder or

Reports Service depending on type of report

Page 27: OracleAS Reports Services

Technology Used

Oracle Reports Service 10g Oracle Developer Suite 10g Oracle Database 10g PL/SQL JavaScript HTML PL/SQL web toolkit for interface development

and server side scripting.

Page 28: OracleAS Reports Services

Future Work

Representation of reports metadata in the form of XML

Batch processing of XML metadata. Providing a complete web interface for layout

description

Page 29: OracleAS Reports Services

Screenshots

Page 30: OracleAS Reports Services
Page 31: OracleAS Reports Services
Page 32: OracleAS Reports Services
Page 33: OracleAS Reports Services
Page 34: OracleAS Reports Services

References

Oracle Documentation

http://download.oracle.com/docs/cd/B10464_05/bi.904/b13673/pbr_arch.htm

Page 35: OracleAS Reports Services

End of lecture

Questions?