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.

Command Overview<br />

A.1.3 rwrun<br />

Example 10: Running scheduled reports<br />

rwclient server=myrepserver report=test.rdfSCHEDULE="every first fri<br />

of month from 15:53 Oct 23, 1999 retry 3 after 1 hour"destype=file<br />

desformat=pdf desname=test.pdf<br />

Example 11: Using a secured <strong>Reports</strong> Server<br />

AUTHIDrwclient server=myrepserv report=test.rdf<br />

userid=scott/tiger@mydb desformat=pdf destype=file<br />

desname=test.pdf =myadmin/myadmin<br />

Example 12: Running a report with e-mail notification<br />

rwclient server=myrepserver report=test.rdf<br />

userid=scott/tiger@mydb destype=file desformat=pdf<br />

desname=test.pdfNOTIFYSUCCESS="emp@comp.com"<br />

NOTIFYFAILURE="admin@comp.com"<br />

Example 13: Running a report that specifies a URL <strong>to</strong> be fetched with <strong>the</strong> URL<br />

engine:<br />

rwclient server=myrepserver report=test.rdf<br />

userid=scott/tiger@mydb destype=file desformat=pdf<br />

desname=test.pdfJOBTYPE=rwurl URLPARAMETER="http://www.oracle.com"<br />

Example 14: Running a report with <strong>the</strong> traceopts enabled<br />

rwclient server=myrepserver report=test.rdf<br />

userid=scott/tiger@mydb destype=file desformat=pdf<br />

desname=test.pdfTRACEOPTS=trace_prf TRACEMODE=trace_replace<br />

The rwrun command runs a report using <strong>the</strong> <strong>Oracle</strong>AS <strong>Reports</strong> Services in-process<br />

server. When you run a .rep file, <strong>the</strong> PL/SQL is already compiled and will not be<br />

recompiled. If you are running an .rdf file, <strong>the</strong> PL/SQL is au<strong>to</strong>matically recompiled, if<br />

necessary. It becomes necessary if <strong>the</strong> report wasn't compiled and saved from <strong>Reports</strong><br />

Builder or <strong>the</strong> platform or version on which you were running <strong>the</strong> report is<br />

incompatible with <strong>the</strong> platform on which it was last compiled and saved.<br />

Examples<br />

Example 1: Cus<strong>to</strong>mizing a report<br />

rwrun userid=scott/tiger@mydb<br />

report=emp.rdfCUSTOMIZE=empcus<strong>to</strong>mize.xml destype=file desformat=pdf<br />

desname=emp.pdf<br />

Example 2: Running a paper report <strong>to</strong> a browser (cache)<br />

rwrun report=test.rdf userid=scott/tiger@mydb desformat=pdf<br />

destype=cache<br />

Example 3: Sending report output <strong>to</strong> a file<br />

rwrun report=test.rdf userid=scott/tiger@mydb desformat=pdf DESTYPE=file<br />

DESNAME=c:\mydir\test.pdf<br />

A-6 <strong>Oracle</strong> Application Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong>

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

Saved successfully!

Ooh no, something went wrong!