01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Methodology<br />

Viewing <strong>the</strong> generated <strong>the</strong> trace file helps you determine <strong>the</strong> actual time spent in<br />

fetching data versus <strong>the</strong> time spent in formatting <strong>the</strong> report. This helps you <strong>to</strong> identify<br />

performance bottlenecks.<br />

The following command line example generates a trace file, containing performance<br />

trace information, and replaces any previously existing trace file:<br />

rwrun module=emp.rdf userid=scott/tiger@orcl destype=file desformat=pdf<br />

desname=emp_pdf.pdf traceopts=trace_prf tracemode=trace_replace<br />

tracefile=emp_tr.txt<br />

Following is <strong>the</strong> outline of <strong>the</strong> information output <strong>to</strong> <strong>the</strong> emp_tr.txt trace file.<br />

Example 20–1 <strong>Reports</strong> Builder<br />

+------------------------------------------+<br />

| Report Builder Profiler statistics |<br />

+------------------------------------------+<br />

Total Elapsed Time: 8.00 seconds<br />

<strong>Reports</strong> Time: 7.00 seconds (87.50% of TOTAL)<br />

ORACLE Time: 1.00 seconds (12.50% of TOTAL)<br />

UPI: 0.00 seconds<br />

SQL: 1.00 seconds<br />

TOTAL CPU Time used by process: N/A<br />

Table 20–1 <strong>Reports</strong> Builder<br />

Field Description<br />

Total Elapsed Time Time spent in executing <strong>the</strong> report.<br />

<strong>Reports</strong> Time Time spent in formatting <strong>the</strong> retrieved data. Also displayed as<br />

a percentage of Total Elapsed Time.<br />

ORACLE Time Time spent in retrieving <strong>the</strong> data. Also displayed as a<br />

percentage of Total Elapsed Time.<br />

UPI SQL queries only. Time spent in establishing a database<br />

connection, <strong>the</strong>n parsing and executing <strong>the</strong> SQL.<br />

SQL Time taken by <strong>the</strong> database server <strong>to</strong> fetch <strong>the</strong> data (percent of<br />

time spent executing SRW.DO_SQL() statements, EXEC_SQL<br />

statements, PL/SQL cursors, and so on.)<br />

Note: If your data source is a non-SQL data source such as Text or<br />

an XML pluggable data source, <strong>the</strong> values for ORACLE Time, UPI,<br />

and SQL display as 0.<br />

In Example 20–1, focus your tuning efforts on formatting (<strong>Reports</strong> Time) <strong>the</strong> data<br />

ra<strong>the</strong>r than on querying and fetching it.<br />

20.1.1.2 Efficient SQL<br />

<strong>Oracle</strong> <strong>Reports</strong> uses SQL <strong>to</strong> retrieve data from <strong>the</strong> database.<br />

Note: <strong>Oracle</strong> <strong>Reports</strong> uses SQL for non-PDS queries only.<br />

Inefficient SQL can cripple performance especially in large reports. Thus, anyone<br />

tuning <strong>Oracle</strong> <strong>Reports</strong> must have a good working knowledge of SQL and understand<br />

Tuning <strong>Oracle</strong> <strong>Reports</strong> 20-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!