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

QUEUE_NAME FAILURES LAST_ERROR_MSG<br />

-----------------------------------------<br />

MGWUSER.SRCQ 0<br />

You can use the MGW_SCHEDULES view to check which schedules are configured<br />

and which are enabled.<br />

Checking for Configured and Enabled Schedules: Example<br />

SQL> select schedule_id, schedule_disabled from MGW_SCHEDULES;<br />

SCHEDULE_ID SCH<br />

------------------<br />

SCH_AQ2MQ N<br />

(N = not disabled; that is, enabled)<br />

Monitoring the Messaging Gateway Log File<br />

Messaging Gateway agent status, history, and errors are recorded in the Messaging<br />

Gateway log file. By default, it is located in the $ORACLE_HOME/mgw/log directory.<br />

You should monitor the log file because it is where both updates and errors are<br />

reported. A different log file is created each time the Messaging Gateway agent is<br />

started.<br />

Sample Log File<br />

The following sample log file shows the Messaging Gateway agent starting. Tracing<br />

information and errors are logged to this file.<br />

Mon Sep 10 10:27:35 2001<br />

MGW C-Bootstrap 0 process-id=4313<br />

Bootstrap program starting<br />

Mon Sep 10 10:27:36 2001<br />

MGW C-Bootstrap 0 process-id=4313<br />

JVM created -- heapsize = 64<br />

>>2001-09-10 10:27:38 MGW AdminMgr 0 LOG<br />

Connecting to database using connect string = jdbc:oracle:oci8:@<br />

>>2001-09-10 10:27:55 MGW Engine 0 1<br />

Agent is initializing...<br />

>>2001-09-10 10:27:56 MGW MQD 0 LOG<br />

Creating MQSeries messaging link:<br />

link : MQLINK<br />

queue manager : mars.queue.manager<br />

channel : kbchannel<br />

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