Skip Headers
Oracle® Business Intelligence New Features Guide
Release 10.1.3.3.3
Part No. E10416-04
  Go To Documentation Library
Library
Go To Product List
Product
Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

14 Oracle BI Publisher Integration with Oracle BI Discoverer

Oracle BI Publisher uses a modern report architecture that separates the report data model from the report layout. By doing so, it allows users to create multiple layouts for a single data model. Oracle BI Publisher also supports many types of data sources such as SQL query against a database using JDBC, file data, HTTP feed, and web service.

Using the new Discoverer web service, you can create reports based on the data that is returned from Discoverer worksheets. Once you install the Discoverer web service and configure Oracle BI Publisher to use it, the web service will return data from selected worksheets that provide the data for Oracle BI Publisher reports.

Oracle BI Publisher 10.1.3.3 includes the ability to use Oracle BI Discoverer worksheets as the data set for a report. This provides three key benefits to Discoverer users. Discoverer users can now:

This chapter describes how to:

14.1 Configuring the Oracle BI Publisher and Discoverer Integration

The process to configure the Oracle BI Publisher and Discoverer integration includes the following steps:

Step 1: Install the Discoverer Web Service

Step 2: Install Oracle BI Publisher 10.1.3

Step 3: Configure Discoverer to Use Oracle Application Server Identity Management

Step 4: Set Up a Dedicated User to Access the Discoverer Web Service from Oracle BI Publisher

Step 5: Configure Oracle BI Publisher to Use the Discoverer Web Service

14.1.1 Step 1: Install the Discoverer Web Service

Install Application Server Patch Set 10.1.2.3 patch or the Discoverer one-off patch that includes the Discoverer Web Service. This will install and deploy the Discoverer Web Service file (discWS.jar) into the same Oracle Containers for J2EE (OC4J) that hosts Discoverer services. Once installed, the Discoverer web service will be accessible from:

http://<1012AppServer>:<port>/discoverer/wsi

14.1.2 Step 2: Install Oracle BI Publisher 10.1.3

The 10.1.3.3 version of Oracle BI Publisher supports access to Discoverer worksheets as data sets in Oracle BI Publisher reports. Oracle BI Publisher and Discoverer can, and in most cases will, be on separate machines.

14.1.3 Step 3: Configure Discoverer to Use Oracle Application Server Identity Management

To configure Discoverer to use Oracle Application Server Identity Management, see the Oracle Business Intelligence Discoverer Configuration Guide, Section 14.7 "Using Discoverer with Oracle Identity Management Infrastructure," which is available from the Documentation pages on the Oracle Technology Network (OTN) or directly at:

http://download.oracle.com/docs/html/B13918_03/security2.htm#i1021521

14.1.4 Step 4: Set Up a Dedicated User to Access the Discoverer Web Service from Oracle BI Publisher

The Discoverer web service is accessible only to trusted clients. The Administrator must set up the dedicated user that Oracle BI Publisher will use to access the web service.

To set up the user:

  1. Log in to an Application Server Control instance that has access to the Discoverer middle tier machine.

  2. Select the Discoverer middle tier machine.

  3. Select OC4J_BI_FORMS.

  4. Select the Applications.

  5. Select the deployed application named 'discoverer'.

  6. Under the Administration section, choose Security.

  7. Click the Add User button.

    This image shows the Security: Add User dialog.
  8. Map this user to security role sr_users by selecting the sr_users Security Role and clicking on the "Map Role to Principals" button. On the Role: sr_users page, check the box next to the newly created user in the "Map Role To Users" section and click Apply.

    This image is an example of the Role: sr_users dialog.

    The role sr_users is pre-defined in the Discoverer web.xml.

    For more information, refer to "Security Role Mapping" in the Oracle Application Server Containers for J2EE Security Guide 10g Release 2 (10.1.2), which is available from the Documentation pages on the Oracle Technology Network (OTN) or directly at:

    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14013/jaas_integrate.htm#sthref270

14.1.5 Step 5: Configure Oracle BI Publisher to Use the Discoverer Web Service

Configure the Discoverer web service in Oracle BI Publisher Admin pages using the Discoverer web service URL from Step 1: Install the Discoverer Web Service (http://<1012AppServer>:<port>/discoverer/wsi) and the dedicated user that you defined in Step 4: Set Up a Dedicated User to Access the Discoverer Web Service from Oracle BI Publisher.

This image shows the Oracle BI Publisher Admin page.

Note that in this release, any Oracle BI Publisher server or cluster of servers can be configured with only one Discoverer instance.

Restart the application server that is running Oracle BI Publisher to allow these changes to take effect.

14.1.6 Discoverer Web Service Configuration Settings

The following configuration parameters that control the behavior of the Discoverer web service can be set in the Discoverer configuration.xml file:

  • Loglevel — Can be set to any one of following: WARNING, DEBUG, FATAL, ERROR, TRACE, NOTIFICATION.

  • MaxSessionPoolSize — Determines the maximum number of Discoverer sessions that can be active and available at the same time.

These should be changed only under the direction of Oracle Support.

14.2 Creating Reports Based on Discoverer Worksheets

BI Publisher's modern report architecture provides benefits in report development and maintenance.

With this architecture, it is possible to have IT staff focus on extracting exactly the needed data with minimal impact on transactional systems. Then end users or IT staff can easily create as many layouts as needed for each query or data model. Layout development can even be done offline to further insulate transactional systems. Likewise it is a very straightforward process to create translations as needed for each layout.

14.2.1 About Creating a Report Based on a Discoverer Worksheet

In Oracle BI Publisher, each report has a data model that can be comprised of one or more data sets. Each data set is based on a data source that is defined in the Admin page.

For integration with Discoverer, the data source is configured through the Oracle BI Discoverer tab on the Integration page from the Oracle BI Publisher Admin page (see Section 14.1.5, "Step 5: Configure Oracle BI Publisher to Use the Discoverer Web Service"). When you want to create a report that uses data from Discoverer, you identify a Discoverer connection and select a worksheet that will define the data set. Note: A data model can include only one data set based on a Discoverer Worksheet.

There are two ways to create an Oracle BI Publisher report that uses a Discoverer Worksheet as a data set. One way is to create the report directly through the Oracle BI Publisher web interface. The other way is to indirectly create a report and data set while creating a layout template using the Oracle BI Publisher Template Builder for Word.

  • Creating a report directly through the Oracle BI Publisher web interface gives you control over the naming of the report and affords you the option of creating sample data for layout development. This is helpful when the Discoverer Worksheet returns substantial amounts of data or has parameters with default values that return no data. In general, creating a report directly through the web interface is the preferred method of creating the report and data model.

  • You may also create a report indirectly through the Oracle BI Publisher Template Builder add-in to Word. This method will create a report with a name that is of the form workbook.worksheet in the directory of your choosing in the Oracle BI Publisher report repository. This method does not allow you to change or set default parameter values or to limit the amount of data that is returned from the Discoverer worksheet. This method is recommended only if the Discoverer worksheet returns a relatively small amount of data and does not have default parameter values that return no data. If the worksheet returns too much data, it will overwhelm the Template Builder. See Section 14.2.4, "Prerequisites, Limitations, and Known Issues." Conversely, if the worksheet has parameters with default values such that no data is returned, then no sample data will be available to build the layout template.

14.2.2 Creating a Report Directly Through the Oracle BI Publisher Web Interface

To create a report and data model based on a Discoverer worksheet through the web interface to the Oracle BI Publisher server:

  1. Connect to Oracle BI Publisher through the browser (for example, myserver.company.com:7779/xmlpserver)

    This image is described in the surrounding text.
  2. Navigate to or make a directory to hold the report that you want to create.

    This image shows the Oracle BI Publisher Enterprise screen.
  3. Click Create a new report in the Folder and Report Tasks frame on the left side of the browser page. Provide a name and click Create.

    This image shows the Folder and Report Tasks frame.

    The report is displayed on the right-hand side of the screen.

  4. Click the Edit link under the report name.

    This image shows the Edit link under a report name.
  5. Select Data Model from the Report tree and click the New button at the top of the tree to create a new data set.

    This image is described in the surrounding text.
  6. Under the General Settings section of the data set, optionally name the data set and select Oracle BI Discoverer in the Type field.

    This image is described in the surrounding text.
  7. Under the Details section of the data set, click the flashlight icon to the right of the Connection field. Navigate to and select the Discoverer connection that owns the worksheet that you want to use in the report.

    This image is described in the surrounding text.
  8. After you have selected a connection, click the flashlight icon to the right of the Worksheet field. Navigate to and select the workbook and then the worksheet that you want to use in the report.

    This image is described in the surrounding text.

    The fully qualified path to the worksheet is entered in the Worksheet field.

    Regardless of whether the Discoverer worksheet is a tabular or crosstab layout, the Discoverer web service returns the data to Oracle BI Publisher as flat tabular data. This is by design so that you can take full advantage of the layout capabilities in BI Publisher. You can lay out this data as a crosstab in BI Publisher.

  9. Save the report by clicking the Save icon on the upper-left side of the page below the navigation links to the report.

    This image is described in the surrounding text.
  10. Once the report is saved, click the View link in the upper-right corner of the screen to the right of the navigation links to see that the Discoverer worksheet that you selected returns data to the report. If the worksheet contains parameters, then you might need to select values other than the default ones and click View to get the worksheet to return data.

    This image is described in the surrounding text.

    You have successfully created a report with a data model based on a Discoverer worksheet.

    At this point, you can continue by creating a layout template by using either the online method or offline method. Continue with the section entitled Section 14.2.3.1, "About Creating Layout Templates".

14.2.3 Creating a Report Indirectly Through Oracle BI Publisher Template Builder

You can also create a report using Oracle BI Publisher Template Builder, an Add-in to Microsoft Office Word.

If you have not installed Oracle BI Publisher Template Builder, then download it by clicking the Template Builder link in the Developer Tools section on the left side of any page, visible in the Oracle BI Publisher web interface when viewing any folder below Home in the report repository.

This image is an example of the Developer Tools section.

Then run the BIPublisherDesktop.exe that is downloaded. This installs Oracle BI Publisher Template Builder.

Note that you should exit all Microsoft Office products before installing and that you may also be prompted to download and install Microsoft .Net 2.0 if it is not already installed.

After the installation is finished, continue with the following steps.

  1. Start Microsoft Office Word. Connect to the Oracle BI Publisher server by selecting Log On from the Oracle BI Publisher menu.

    This image is described in the surrounding text.
  2. In the Oracle BI Publisher Login dialog, supply your Oracle BI Publisher user name and password. Note that, if this is the first time that you are logging into the Oracle BI Publisher server, then you must supply the report server URL (for example, myserver.company.com:7779/xmlpserver).

    This image is described in the surrounding text.

    After the first log in, you can select the Report Server from the drop-down list.

  3. Once connected, you see the Open Template dialog. Select Discoverer from the Workspace list.

    This image is described in the surrounding text.
  4. Complete the Select Data Connection dialog.

    This image is described in the surrounding text.
  5. Once you have selected a Discoverer connection, the Open Template dialog will show a list of workbooks on the left. As you select workbooks, the worksheets will show in the right pane. Navigate through the workbooks and select a worksheet by double-clicking the worksheet name.

    This image is described in the surrounding text.
  6. You are prompted to save the worksheet as an Oracle BI Publisher report. You can navigate through the Oracle BI Publisher report repository and choose the folder where the report will be created.

    This image is described in the surrounding text.

    A report will be created that has a name of the form workbook.worksheet and it will use that worksheet as the data set. You cannot name or rename the report from this dialog or from the Template Builder. If a report already exists with that name, then a new report will not be created and the existing report will remain as it is. If you want to rename the report, then use the web interface to the Oracle BI Publisher report server.

    At this point you can proceed with creating a layout template by following the online method described below. Continue with the section entitled Section 14.2.3.1, "About Creating Layout Templates".

14.2.3.1 About Creating Layout Templates

Oracle BI Publisher provides several types of layout templates. The most common are RTF layout templates created using the Template Builder. You can also create PDF templates in Adobe Acrobat, eText templates, and Adobe Flex templates. This document briefly describes only the process of creating an RTF layout template. See the Oracle Business Intelligence Publisher User's Guide for more details on creating other types of templates and for more depth on RTF templates.

Note that even though a layout template created with the Template Builder is in RTF format, at runtime the layout template is converted to Extensible Stylesheet Language Formatting Objects (XSL-FO) and the report output format can be PDF, HTML, Excel, PowerPoint, as well as RTF.

There are two methods you can use to create an RTF layout template for a report:

  • Offline - meaning not connected to the Oracle BI Publisher report server. Using the offline method, you will generate sample XML data for your report. This method has the advantage that you will be placing no load on the report server or underlying data source while creating your layout. It is also the preferred method if your report returns a large amount of data or has parameters that need to be set to limit the amount of data returned or to ensure that some data is returned.

  • Online - meaning connected to the Oracle BI Publisher report server. The online method allows you to connect directly to the report server to download report data. This method is suitable if your report has been set up to provide a reasonable amount of data. This method also can be seamlessly integrated with the indirect method of creating a Discoverer report as described above.

14.2.3.2 Creating a Layout Template Offline

  1. Generate sample XML data.

    From the Oracle BI Publisher web interface, navigate to the report that you want to create a layout against, and select View to see the report output.

    If there are parameters that can be set to either reduce the amount of data or to ensure that some data is returned, then set the parameter values and click the View button.

    Then select Data from the menu to the left of the View button and click the Export button.

    This image is described in the surrounding text.

    A new browser or tab opens that contains the exported XML data.

    This image is described in the surrounding text.

    Using the web browser File menu, save the file with an XML extension.

    If the size of the XML file is still excessive, then open it in a text editor and remove data from the file to get it to a smaller size. Ensure that you preserve the tag structure in the file. Ensure that you have enough data so that previewing the report shows how the actual report will be generated. For example, if you plan to group data by year, then ensure that you include some data from at least two years, so that you can confirm that the grouping displays as you want.

  2. Upload the sample XML data file to the Template Builder.

    After you generate the sample XML data file, move it to the machine where you are running the Template Builder. From the Oracle BI Publisher menu or the Template Builder toolbar, load the sample XML data.

    This image is described in the surrounding text.
  3. Create a layout template.

    Now that you have uploaded the sample XML data to the Template Builder, you can use the Template Builder Insert menu and toolbar to launch wizards and dialogs that help you create the layout template. You can also insert whatever boilerplate text you want as well as format fields and tables using standard Microsoft Office Word layout and formatting functionality.

    The following figure shows the Template Builder Insert Menu:

    This image is described in the surrounding text.

    The following figure shows the Template Builder Insert Toolbar:

    This image is described in the surrounding text.

    You can also manually include data field tags and other markup in the template using BI Publisher's simplified tags for XSL expressions. These tags associate the XML report data to the report layout. If you are familiar with XSL and prefer not to use the simplified tags, then Oracle BI Publisher also supports the use of pure XSL elements in the template.

    See the section "Creating an RTF Template" in the Oracle Business Intelligence Publisher User's Guide for more details, available from the Documentation pages on the Oracle Technology Network (OTN) or directly at:

    http://download.oracle.com/docs/cd/E10091_01/doc/bip.1013/b40017/T421739T481157.htm

  4. Save the layout template as an RTF file.

    From the File menu, select Save As. Ensure that you set the type to Rich Text Format (*.rtf).

    This image is an example of the Save As dialog.
  5. Preview the report output.

    After you have created and formatted the layout, you can preview it in the desired output format from the Template Builder to confirm that you have created the layout exactly as you want. Previewing will generate the output document, merging the layout template that you just created with the data that is loaded in the Template Builder.

    Select the desired output format from the Preview menu item on the Template Builder toolbar or from the Oracle BI Publisher menu.

    This image is described in the surrounding text.

    You will see the generated document in the application suitable for displaying the requested output format. The following figure shows an example of previewing PDF output in Adobe Reader.

    This image is described in the surrounding text.
  6. Upload the RTF template to the report.

    Once you have made the desired changes to the RTF template, save it to the file system. Return to the Oracle BI Publisher web interface and navigate to the report that is associated with this layout template.

    From within the report edit page of the Oracle BI Publisher web interface, select Layouts from the Report tree. In the Manage Template Files section of the Create Layouts frame, click the Browse button to select the RTF template. Once the RTF template is selected and the Upload Template field is populated with the full path to the RTF template, click the Upload button.

    This image is described in the surrounding text.

    You will then see the uploaded template in the Manage Template Files section of the page.

    This image is described in the surrounding text.
  7. Create a named layout and associate it with the template file.

    From the report tree, with Layouts still selected, click the New button at the top of the report tree. This will create a new layout.

    This image is described in the surrounding text.

    Provide a name for the layout and associate it with the template file that you uploaded. You can also optionally determine what output formats are available for this layout.

    This image is described in the surrounding text.
  8. Save the report.

    Ensure that you save the changes that you have made to the report by clicking the Save button below the path to the report.

    This image is described in the surrounding text.
  9. Continue with Section 14.2.3.4, "Viewing and Scheduling Reports".

14.2.3.3 Creating a Layout Template Online

  1. Connect to the Oracle BI Publisher report server through the Template Builder.


    Note:

    If you have followed the method above to create a report indirectly through the Oracle BI Publisher Template Builder, you will already be logged on to the Oracle BI Publisher Server and the report will already be open. Skip ahead to Step 3 Create a layout template.

    If you have not already logged on to the Oracle BI Publisher server, then do so by following these steps:

    1. Start Microsoft Office Word. Connect to the Oracle BI Publisher server by selecting Log On from the Oracle BI Publisher menu.

      This image is described in the surrounding text.
    2. In the Oracle BI Publisher Login dialog, supply your Oracle BI Publisher user name and password. Note that if this is the first time that you are logging into the Oracle BI Publisher server, then you must supply the report server URL (for example, myserver.company.com:7779/xmlpserver).

      This image is described in the surrounding text.
  2. Create or open the desired report.

    The method for creating a report indirectly through the Template Builder is described above in the section entitled Section 14.2.3, "Creating a Report Indirectly Through Oracle BI Publisher Template Builder".

    To open a report that is already created, in the Open Template dialog, select BI Publisher as the Workspace. Navigate through the folder tree until the report that you want appears in the list of reports.

    This image is described in the surrounding text.

    Select the report name and click Open Report. Alternatively, select the report and then select <New> or any one of the existing layout templates listed in the Layout Templates section and click Open Layout Template.

    Once you have opened an existing report or layout template or created a new report or new layout template, the data model definition and fields and data will be loaded into the Template Builder and you can start to create the layout template.

  3. Create a layout template.

    Now that you have opened or created a report based on a Discoverer worksheet, you can use the Template Builder Insert menu and toolbar to build the layout template.

    See Step 3 in Section 14.2.3.2, "Creating a Layout Template Offline" for guidance on creating a layout template.

  4. Save the layout template as an RTF file.

    From the File menu, select Save As. Ensure that you set the type to Rich Text Format (*.rtf).

    See Step 4 in Section 14.2.3.2, "Creating a Layout Template Offline".

  5. Preview the report output.

    See Step 5 in Section 14.2.3.2, "Creating a Layout Template Offline".

  6. Upload the RTF layout template to the Oracle BI Publisher server.

    Once you have completed the layout template, upload it to the BI server. Select Upload Template As from the Oracle BI Publisher menu.

    This image is described in the surrounding text.

    If this is a new template, then you are prompted for a template name. Enter the template name and click OK.

    This image is described in the surrounding text.

    Once the template is uploaded, you see a notification dialog. Click OK.

    This image is described in the surrounding text.

    The template has been added to the report.

  7. Continue with Section 14.2.3.4, "Viewing and Scheduling Reports".

14.2.3.4 Viewing and Scheduling Reports

See "Viewing and Scheduling Reports" in the Oracle BI Publisher User's Guide available from the Documentation pages on the Oracle Technology Network (OTN) or directly at:

http://download.oracle.com/docs/cd/E10091_01/doc/bip.1013/b40017/T421739T421742.htm

14.2.4 Prerequisites, Limitations, and Known Issues

This section describes the prerequisites, limitation, and known issues in this release.

14.2.4.1 Prerequisites

The following are prerequisites for this release:

  • Oracle BI Publisher 10.1.3.3

  • Oracle BI Discoverer 10.1.2.3 or Discoverer 10.1.2.2 with a Discoverer one-off patch that includes the Discoverer Web Service

  • Discoverer configured to use Oracle Application Server Identity Management

14.2.4.2 Limitations

The following are limitations with this release:

  • Only one Discoverer Web Service may be configured per Oracle BI Publisher server or cluster.

  • An Oracle BI Publisher report may only contain one data set based on a Discoverer worksheet.

  • Discoverer web service does not support Oracle Applications Single Sign On (SSO), Oracle Applications ICX and non-SSO modes.

14.2.4.3 Known Issues

The following are known issues in this release:

Issue: Unable to enter parameter values directly for parameters that have associated list of values.

Description: For Discoverer worksheets that have parameter based on a List of Values (LOV) or an underlying item has an associated LOV, BI Publisher will only allow parameter value selection from the LOV. Users cannot directly enter parameter values as they can in Discoverer.

Workaround: If users want to allow users to enter parameter values directly, then they must remove the associated LOV in the Discoverer worksheet or item.

Issue: Oracle BI Publisher cannot communicate with Discoverer web service when Discoverer is configured with Secure Socket Layer (SSL) (i.e. uses https://)

Description: You might be unable to make any calls to the Discoverer web service. You might see errors such as "SSL received a record that exceeded the maximum permissible length."

Workaround: When using a web service that is protected via SSL, you might need to export the certificate from the web server that is hosting the web service and import it into the Java keystore on the machine that is running BI Publisher. This step should not be required if the server certificate is linked to some certificate authority (such as Verisign); the default Java keystore can handle that. But if the web service server is using some self-generated certificate (e.g., in a testing environment), then you must perform the export and import.

Issue: Discoverer server CPU hits 100%.

Description: If a report that is based on a Discoverer worksheet takes several minutes to return data and a user becomes impatient and repeatedly clicks the View or Export buttons, then this can overwhelm the Discoverer Server with requests and it might stop responding.

Workaround: There is no workaround for this issue except to not repeatedly click on the View or Export buttons while waiting for a report to return data.

Issue: Oracle BI Publisher does not return values for a Discoverer worksheet parameter's list of values past the 1000th value.

Description: Oracle BI Publisher limits the number of values in a list of values to 1000.

Workaround: Administrators can change this limit by setting the property DISCO_LOV_LIMIT in the xmlp-server-config.xml file. Example:

<property name=" DISCO_LOV_LIMIT " value="2000"/>

Note that the larger the list of values, the slower it will render.

Issue: See the following error when trying to open a report in the Template Builder: "'Error occurred. Please check the settings and try again.'"

Description: You might be loading a report that returns too much data for the Template Builder to handle.

Workaround: Use the method described above for creating a layout template offline. Ensure that you reduce the amount of data in the generated XML file.