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 />

Why does the database not shut down when the Messaging Gateway<br />

agent is running?<br />

The MGW agent establishes connections with the database and those connections<br />

prevent the database from shutting down for a SHUTDOWN NORMAL command. Call<br />

dbms_mgwadm.shutdown to shut down the MGW agent before shutting down the<br />

database.<br />

Why does MGW_GATEWAY view always show an AGENT_STATUS of<br />

START_SCHEDULED?<br />

Messaging Gateway uses job queues in the <strong>Oracle</strong> database to start the MGW agent<br />

process. At least one job queue process must be configured to execute queued jobs<br />

in the background. The gateway job is scheduled to execute immediately, but will<br />

not do so until a job queue process is available. If the gateway status remains<br />

START_SCHEDULED for an extended period of time, it may indicate that the<br />

database instance has been started with no or too few job queue processes. The<br />

Messaging Gateway holds its job queue process for the lifetime of that MGW agent<br />

session.<br />

You should verify that the database instances have been started, with enough job<br />

queue processes so one is available for use by Messaging Gateway. A minimum<br />

value of 2 is recommended.<br />

init.ora parameters:<br />

JOB_QUEUE_PROCESSES specifies the number of job queue processes for each<br />

instance.<br />

Dynamic parameters:<br />

ALTER SYSTEM SET JOB_QUEUE_PROCESSES = ;<br />

After starting the Messaging Gateway agent, why does the MGW_<br />

GATEWAY view show an AGENT_STATUS of NOT_STARTED?<br />

The MGW_GATEWAY view provides status information about the gateway agent. A<br />

NOT_STARTED status indicates that the agent is not running. If the MGW agent<br />

encounters a fatal error while starting or running, the LAST_ERROR_MSG field is<br />

nonnull.<br />

Do the following:<br />

1. Check if a MGW log file has been generated and whether it indicates any errors.<br />

If a log file is not present, the gateway agent process was probably not started.<br />

2. Verify that the listener has been started.<br />

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