09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - 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.

Messaging Gateway Questions<br />

-2...An error occurred reading mgw.ora. Verify that the file is readable.<br />

-3...An error occurred creating the MGW log file. Verify that the log directory is<br />

writeable. The default location is /mgw/log.<br />

-100...The MGW agent JVM encountered a runtime exception or error on startup.<br />

-101...The MGW agent shut down due to a fatal error. Check the MGW log file.<br />

Why does the Messaging Gateway log file show "ORA-01034: ORACLE<br />

not available" when attempting to start Messaging Gateway agent?<br />

This error may indicate that the database has not been started or that the<br />

environment used by the Messaging Gateway agent to connect to the database is<br />

not correct.<br />

Example 1<br />

If the MGW log file shows the following two <strong>Oracle</strong> errors<br />

ORA-01034: ORACLE not available<br />

ORA-27101: shared memory realm does not exist<br />

<br />

then the gateway agent is attempting to connect to the database using a local IPC<br />

connection, but the ORACLE_SID value is not correct.<br />

A local connection is used when dbms_mgwadm.db_connect_info is called with<br />

a NULL value for the database parameter. If a local connection is desired, the correct<br />

ORACLE_SID value must be set in the MGW agent process. This can be done by<br />

adding the following line to mgw.ora.<br />

set ORACLE_SID = <br />

Note that ORACLE_SID need not be set if dbms_mgwadm.db_connect_info is<br />

called with a nonnull value for the database parameter. In this case the value should<br />

specify a net service name from tnsnames.ora.<br />

Can I use an AQ single consumer queue as a propagation source?<br />

No, only an AQ multi-consumer queue can be used as a propagation source queue.<br />

When is a Messaging Gateway subscriber flagged as DELETE_PENDING<br />

removed?<br />

An MGW subscriber will be flagged as DELETE_PENDING when dbms_<br />

mgwadm.remove_subscriber is called to remove the subscriber in a nonforced<br />

6-10 <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!