Reports2017-11-18T12:27:27+00:00

DIS Worksheet SQLs

Description
Categories: Application, Enginatics
Discoverer worksheet SQL queries. While the workbook documents are stored in a binary format in eul5_documents.doc_document and it's difficult extract their content (... Discoverer worksheet SQL queries.
While the workbook documents are stored in a binary format in eul5_documents.doc_document and it's difficult extract their content (https://community.oracle.com/thread/2494216), there is an active trigger function
select ef.* from eul_us.eul5_functions ef where ef.fun_name='eul_trigger$post_save_document'
writing each worksheets' SQL query to table ams_discoverer_sql
  more

select
ads.workbook_name workbook,
ads.worksheet_name Worksheet,
xxen_util.disco_user_name(ads.workbook_owner_name) workbook_owner,
eqs.access_count,
eqs.last_accessed,
xxen_util.disco_worksheet_sql(ads.workbook_owner_name, ads.workbook_name, ads.worksheet_name) worksheet_sql,
xxen_util.user_name(ads.last_updated_by) last_updated_by,
xxen_util.client_time(ads.last_update_date) last_update_date
from
(
select distinct
ads.workbook_owner_name,
ads.workbook_name,
ads.worksheet_name,
max(ads.last_updated_by) over (partition by ads.workbook_owner_name, ads.workbook_name, ads.worksheet_name) last_updated_by,
max(ads.last_update_date) over (partition by ads.workbook_owner_name, ads.workbook_name, ads.worksheet_name) last_update_date
from
ams_discoverer_sql ads
where
1=1
) ads,
(
select
eqs.qs_doc_owner,
eqs.qs_doc_name,
eqs.qs_doc_details,
count(*) access_count,
max(eqs.qs_created_date) last_accessed
from
&eul.eul5_qpp_stats eqs
where
2=2
group by
eqs.qs_doc_owner,
eqs.qs_doc_name,
eqs.qs_doc_details
) eqs
where
3=3 and
ads.workbook_name=eqs.qs_doc_name(+) and
ads.worksheet_name=eqs.qs_doc_details(+)
order by
ads.last_update_date desc

Parameter Name SQL text Validation
Show Active Only
eqs.qs_doc_name is not null
LOV
End User Layer
<parameter_value>
LOV
Access Count within x Days
eqs.qs_created_date>sysdate-:days
Number
Worksheet
ads.worksheet_name=:worksheet
LOV
Workbook
ads.workbook_name=:workbook
LOV

By continuing to use the site, you agree to the use of cookies. Accept