09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting Up Messaging Gateway<br />

following parameters are important to Messaging Gateway and must be<br />

specified according to your own situation.<br />

a. SID_NAME: provide the SID that is specified in the net service name in<br />

tnsnames.ora, for example, "mgwextproc".<br />

b. ORACLE_HOME: provide your ORACLE_HOME directory.<br />

c. PROGRAM: provide the name of the external procedure agent, which is<br />

"extproc".<br />

d. ENVS: set up the LD_LIBRARY_PATH environment needed for the external<br />

procedure to run.<br />

The LD_LIBRARY_PATH must contain the following paths:<br />

[ORACLE_HOME]/jdk/jre/lib/[PLATFORM_TYPE]<br />

[ORACLE_HOME]/lib<br />

Replace the bracketed item with the appropriate, spelled-out value (using<br />

$ORACLE_HOME does not work, for example). PLATFORM_TYPE is your<br />

platform type, for example, sparc.<br />

Example 5 Adding Static Service Information for the Listener: Example<br />

# Add a SID_DESC<br />

SID_LIST_LISTENER= (SID_LIST=<br />

(SID_DESC =<br />

(SID_NAME= mgwextproc)<br />

(ENVS="LD_LIBRARY_PATH=/private/oracle/orcl9i/jdk/jre/lib/<br />

sparc:/private/oracle/orcl9i/lib")<br />

(ORACLE_HOME=/private/oracle/orcl9i)<br />

(PROGRAM = extproc))<br />

.<br />

.<br />

.<br />

Modifying tnsnames.ora for the External Procedure<br />

Windows NT Only: You can ignore this step.<br />

For the external procedure, configure a net service name MGW_AGENT in<br />

tnsnames.ora whose connect descriptor matches the information configured in<br />

listener.ora. The net service name must be MGW_AGENT (this value is fixed).<br />

The KEY value must match the KEY value specified for the IPC protocol in<br />

listener.ora. The SID value must match the value specified for SID_NAME of<br />

the SID_DESC entry in listener.ora.<br />

18-8 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

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

Saved successfully!

Ooh no, something went wrong!