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.

Configuring <strong>Reports</strong> Server<br />

The value JP identifies <strong>the</strong> environment element created previously in <strong>the</strong> <strong>Reports</strong><br />

Server configuration file. The initial engines will be spawned with <strong>the</strong> environment<br />

settings specified in this environment element. For more information on <strong>the</strong><br />

environment element, refer <strong>to</strong> engine.<br />

3.2.2.1 Examples<br />

The following examples illustrate <strong>the</strong> usage of <strong>the</strong> dynamic environment switching<br />

feature:<br />

Example 1<br />

Suppose that you need <strong>to</strong> run reports in Japanese from your <strong>Reports</strong> Server. An<br />

environment conducive <strong>to</strong> running reports in Japanese would include:<br />

■ NLS_LANG = Japanese_Japan.JA16SJIS<br />

■ The currency unit would be set <strong>to</strong> Yen (¥), <strong>the</strong> currency of Japan.<br />

■ If <strong>Reports</strong> Server is running on UNIX, <strong>the</strong>n DISPLAY would also need <strong>to</strong> be set.<br />

To begin, you would have <strong>to</strong> add an environment element <strong>to</strong> your <strong>Reports</strong> Server<br />

configuration file that looks something like <strong>the</strong> following:<br />

<br />

<br />

<br />

<br />

<br />

Once <strong>the</strong> environment element is in place, you could request a report with Japanese<br />

output using <strong>the</strong> following URL:<br />

http://your<strong>Web</strong>Server:port/reports/rwservlet?server=yourreportsserver<br />

&report=Japanese.rdf&userid=username/passwd@db&desformat=htmlcss<br />

&destype=cache&envid=jp<br />

When <strong>the</strong> URL is submitted <strong>to</strong> <strong>Reports</strong> Server, it detects <strong>the</strong> optional ENVID parameter<br />

and matches <strong>the</strong> specified id (in this case, JP) <strong>to</strong> <strong>the</strong> corresponding id in its<br />

configuration file. If <strong>Reports</strong> Server already has an engine running with <strong>the</strong>se<br />

characteristics, it will reuse <strong>the</strong> existing engine <strong>to</strong> process <strong>the</strong> job. If not, <strong>the</strong>n it spawns<br />

an engine using <strong>the</strong> current environment plus <strong>the</strong> three environment variables<br />

specified in <strong>the</strong> JP environment element. If spawning a new engine would cause<br />

<strong>Reports</strong> Server <strong>to</strong> exceed its maxEngines setting, <strong>Reports</strong> Server shuts down an<br />

engine before starting a new one. An engine may be shut down even though it has not<br />

exceeded its engLife setting.<br />

Once <strong>Reports</strong> Server has an engine with <strong>the</strong> correct environment running, <strong>the</strong> job is<br />

processed by that engine and <strong>the</strong> output is routed <strong>to</strong> <strong>the</strong> specified DESTYPE.<br />

envid is an optional parameter. If you do not pass this parameter with <strong>the</strong> job,<br />

<strong>Reports</strong> Server processes <strong>the</strong> request using an engine started with <strong>the</strong> defaultEnvId<br />

environment. If defaultEnvId is not specified for <strong>the</strong> engine element in your<br />

<strong>Reports</strong> Server configuration file, <strong>the</strong>n <strong>the</strong> engine will inherit <strong>the</strong> settings with which<br />

<strong>the</strong> <strong>Reports</strong> Server instance was started.<br />

<strong>Reports</strong> Server may forward <strong>the</strong> request <strong>to</strong> ano<strong>the</strong>r server on <strong>the</strong> cluster in cases where<br />

it cannot handle <strong>the</strong> request at that time. Even though <strong>the</strong> job may be routed <strong>to</strong> ano<strong>the</strong>r<br />

server on <strong>the</strong> cluster, <strong>the</strong> target server will reuse or spawn an engine with <strong>the</strong> required<br />

environment <strong>to</strong> process this job.<br />

3-28 <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!