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.

Using a Key Map File<br />

An exception <strong>to</strong> this is if you use <strong>the</strong> cmdkey command line keyword, and express <strong>the</strong><br />

key name as its value: cmdkey=keyname. In this case, you can place <strong>the</strong> key name<br />

anywhere in <strong>the</strong> query string within <strong>the</strong> report request URL. The cmdkey keyword can<br />

be used with jobs run as JSPs and with <strong>the</strong> rwservlet command.<br />

13.11.1 Enabling Key Mapping<br />

Note: You’ll find more information about <strong>the</strong> cmdkey keyword in<br />

Command Line Options.<br />

Key mapping is enabled when any of <strong>the</strong>se conditions are met:<br />

■ A valid file with <strong>the</strong> standard file name, cgicmd.dat, is present in <strong>the</strong> default<br />

location: <strong>the</strong> ORACLE_HOME\reports\conf\ direc<strong>to</strong>ry on <strong>the</strong> <strong>Web</strong> server<br />

machine (on ei<strong>the</strong>r Windows or UNIX).<br />

■ A valid key map file is entered in <strong>the</strong> <strong>Reports</strong> Servlet configuration file<br />

(rwservlet.properties) under <strong>the</strong> KEYMAPFILE parameter.<br />

■ When rwcgi is used, when <strong>the</strong> REPORTS_CGIMAP environment variable on <strong>the</strong><br />

<strong>Web</strong> server machine specifies <strong>the</strong> name of a valid key map file. See<br />

<strong>Reports</strong>-Related Environment Variables for more information.<br />

13.11.2 Adding Key Mapping Entries <strong>to</strong> a Key Map File<br />

To add key mapping entries <strong>to</strong> a key map file:<br />

1. Navigate <strong>to</strong> <strong>the</strong> cgicmd.dat file on <strong>the</strong> machine that hosts your <strong>Reports</strong> Server,<br />

and open it with a text edi<strong>to</strong>r.<br />

You'll find this file in <strong>the</strong> following direc<strong>to</strong>ry on both Windows and UNIX:<br />

ORACLE_HOME\reports\server\conf\cgicmd.dat<br />

2. Add a key mapping entry. For example:<br />

key1: report=your_report.rdf userid=username/password@my_db desformat=html<br />

SERVER=server_name.cluster_name (if present)> destype=cache<br />

In this example, key1 is <strong>the</strong> name of <strong>the</strong> key.<br />

Except for <strong>the</strong> special parameters that are described in <strong>the</strong> file itself, <strong>the</strong> command<br />

line options follow <strong>the</strong> syntax rules of rwclient. See Command Line Options for<br />

more information.<br />

3. Add or update <strong>the</strong> hyperlinks on your <strong>Web</strong> page.<br />

For more information, see Specifying a Report Request from a <strong>Web</strong> Browser.<br />

13.11.3 Using a Key with Everything but JSPs<br />

When you place a key name in a report request URL, it must always be <strong>the</strong> first value<br />

within <strong>the</strong> query string (immediately after <strong>the</strong> question mark). For example:<br />

http://…/rwservlet?keyname<br />

Below is an example of a key mapping for a restricted run with a parameter form.<br />

The URL might be:<br />

http://web_server.domain_name:port/cgi-bin/rwcgi.exe?key&par1&par2&parN<br />

Running Report Requests 13-19

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

Saved successfully!

Ooh no, something went wrong!