view counter

BugDB Reporting

Thanks to Joel Kallman for this story

Sorry to do this on a public blog, but this is a posting which is only relevant to Oracle employees.

Oracle Virtualization and Cloud Consulting
view counter

It seems a lot of teams are looking to create an analysis application on top of the BugDB, to perform their own analysis of the BugDB data for their own product. There is a right way and a wrong way to get at this data. The wrong slow way to get at this data is to build a report on top of a query across the database link to the BugDB and query this data each and every page view in your application. The more efficient way to get at this data is to create a local table in your schema and then refresh from the BugDB into this local table, on demand. This results in much less load on the BugDB database itself, and is also a much faster application for your end users.

I actually cooked up something for someone else in Server Technologies. It will create all the necessary database objects to refresh from the BugDB and it also includes an Interactive Report on top of the primary BugDB table RPTHEAD. Anyone is welcome to use this application as a starting point. It’s also hooked up with SSO authentication, so if you import this into your workspace on the internal instance of Application Express at, you’ll be ready to go with internal single sign-on. All you need to do is:

  1. Download and unzip the application export BugReports_installer.sql from:
  2. Create a database link to the BugDB named ‘BUGDB.WORLD’ in your schema.
  3. Import and install the application export BugReports_installer.sql into your workspace (presumably on
  4. After installation, you’ll be prompted to Install Supporting Objects. You should simply click Next > through the wizard. Prior to this step, the database link BUGDB.WORLD must exist.

That’s all there is to it! Run the application, navigate to the Administration tab, choose your product and timeframe, click Refresh, and then click the Bugs tab to view the Interactive Report on top of your local data.

It may seem like a simple application, but with the Interactive Report on top of the BugDB RPTHEAD, each end user can create a variety of customized reports and save them. You can read about Interactive Reports here:

Read the entire article at its source

view counter