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

cannot be altered when Messaging Gateway is running. Entering a value of NULL<br />

does not alter the maximum memory attribute.<br />

The following example, when executed with the Messaging Gateway agent<br />

running, updates the maximum number of connections to 3. The maximum<br />

memory is unchanged.<br />

SQL> exec dbms_mgwadm.alter_agent(3, NULL)<br />

Startup and Shutdown<br />

After Messaging Gateway is installed and configured, start it as follows:<br />

SQL> exec dbms_mgwadm.startup<br />

You can determine the status of the Messaging Gateway agent by using the MGW_<br />

GATEWAY view and by monitoring the log file. Refer to "Monitoring the Messaging<br />

Gateway Log File" on page 18-26.<br />

Monitor the Messaging Gateway agent using the MGW_GATEWAY view as follows:<br />

SQL> select * from mgw_gateway;<br />

AGENT_STATUS AGENT_PING AGENT_JOB AGENT_USER AGENT_DATABASE LAST_ERRO<br />

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

RUNNING REACHABLE 213 MGWAGENT<br />

(Continued) LAST_ERR LAST_ERROR_MSG MAX_CONNECTIONS MAX_MEMORY<br />

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

3 64<br />

When Messaging Gateway has completed initialization, the AGENT_STATUS<br />

column shows the value RUNNING and the AGENT_PING column shows the value<br />

REACHABLE.<br />

The first column, AGENT_STATUS, shows the status of the gateway agent. This<br />

column has the following possible values: NOT_STARTED, START_SCHEDULED,<br />

INITIALIZING, STARTING, RUNNING, and SHUTTING_DOWN. The second column,<br />

AGENT_PING, pings the Messaging Gateway agent. Its value is either REACHABLE<br />

or UNREACHABLE. The columns LAST_ERROR_MSG, LAST_ERROR_DATE, and<br />

LAST_ERROR_TIME give valuable information if an error in starting or running the<br />

Messaging Gateway agent occurs.<br />

See Also: <strong>Oracle</strong>9i Supplied PL/SQL Packages and Types Reference,<br />

DBMS_MGWADM, for database view information<br />

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