Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Apex logs and interactive reports

913249Jan 25 2012 — edited Jan 25 2012
Hi everyone! This is my first post, so apologies if I sound like an idiot :). Anyway, my problem is as follows.

I'm on APEX version 4.0 (about to move to 4.1) and I'm trying to tie the APEX_WORKSPACE_ACTIVITY_LOG to the APEX_APPLICATION_PAGE_IR_RPT view. So, here's my query:
SELECT
 L.IR_SAVED_REPORT_ID,
 R.INTERACTIVE_REPORT_ID,
 R.REPORT_NAME
FROM
 APEX_WORKSPACE_ACTIVITY_LOG L,
 APEX_APPLICATION_PAGE_IR_RPT R
WHERE
 L.IR_SAVED_REPORT_ID IS NOT NULL
 AND L.IR_SAVED_REPORT_ID = R.INTERACTIVE_REPORT_ID
I don't get any returned values. The IR_SAVED_REPORT_ID column from APEX_WORKSPACE_ACTIVITY_LOG is, according to its description:
SELECT
 comments
FROM
 apex_dictionary
WHERE
 apex_view_name like '%ACTIVITY%LOG%' 
 AND column_name = 'IR_SAVED_REPORT_ID';
=> "Identifies the Saved Interactive Report ID foreign key to the APEX_APPLICATION_PAGE_IR_RPT view"

and the INTERACTIVE_REPORT_ID column from APEX_APPLICATION_PAGE_IR_RPT:
SELECT
 comments
FROM
 apex_dictionary
WHERE
 apex_view_name = 'APEX_APPLICATION_PAGE_IR_RPT' 
 AND column_name = 'INTERACTIVE_REPORT_ID';
=> "ID of the interactive report"

it seemed like the only ID column from that view that made any sense to join to. The return values from IR_SAVED_REPORT_ID looked like this:

9.67721361230999E15
9.90492074306116E15
[snip a few dozen rows]

and INTERACTIVE_REPORT_ID looked very similar (6.62360604127979E15, 5.94051162387204E15, etc.). Am I missing something here?

At the end of the day, all I'm trying to do here is make a metadata report on reports. Specifically, I wanted a report that told me which saved reports people were accessing, and how often they were doing it. I thought this was the way to go about it, but it seems I'm mistaken. I would appreciate any help you guys could provide.

Edited by: 910246 on Jan 25, 2012 9:18 AM

Edited by: 910246 on Jan 25, 2012 9:19 AM

Edited by: 910246 on Jan 25, 2012 9:19 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2012
Added on Jan 25 2012
3 comments
653 views