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.

Working with Messaging Gateway<br />

1. Start the database listeners.<br />

Start the listener for the external procedure and other listeners for the regular<br />

database connection.<br />

2. Test the database connect string for the gateway agent user.<br />

Run sqlplus /@.<br />

If successful, the gateway agent is able to connect to the database.<br />

3. Start the gateway agent.<br />

a. Connect as and call DBMS_MGWADM.STARTUP to start the<br />

gateway agent.<br />

b. Using the MGW_GATEWAY view, wait for AGENT_STATUS to change to<br />

RUNNING and AGENT_PING to change to REACHABLE.<br />

4. Shut down the gateway agent.<br />

Unloading Messaging Gateway<br />

a. Connect as and call DBMS_MGWADM.SHUTDOWN.<br />

b. Using the MGW_GATEWAY view, wait for AGENT_STATUS to change to NOT_<br />

STARTED.<br />

To unload Messaging Gateway, do the following:<br />

1. Shut down Messaging Gateway.<br />

2. Remove any user-created queues whose payload is a Messaging Gateway<br />

canonical type (for example, MGW_BASIC_MSG_T).<br />

3. Using SQL*Plus, as user SYS as SYSDBA, run catnomgw.sql, located in the<br />

$ORACLE_HOME/mgw/admin directory.<br />

This drops the database objects used by Messaging Gateway, including the<br />

roles, tables, views, packages, object types, and synonyms.<br />

4. Remove entries for Messaging Gateway created in listener.ora and<br />

tnsnames.ora.<br />

Working with Messaging Gateway<br />

After Messaging Gateway is loaded and set up, it is ready to be configured and run.<br />

This chapter describes how to configure, start, and stop Messaging Gateway. It also<br />

18-12 <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!