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.

Messaging Gateway Questions<br />

mgwadm.db_connect_info. This resulted in the MGW agent being unable to<br />

establish database connections.<br />

>>2002-01-15 15:45:12 MGW AdminMgr 0 LOG<br />

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

>>2002-01-15 15:45:15 MGW Engine 0 3<br />

Agent is shutdown.<br />

oracle.mgw.admin.MgwAdminException: [241] Failed to connect to database. SQL<br />

error: 12154, connect string: jdbc:oracle:oci8:@BAD_SERVICE_NAME<br />

[…Java stack trace here…]<br />

[Linked-exception]<br />

java.sql.SQLException: ORA-12154: TNS:could not resolve service name<br />

[…Java stack trace here…]<br />

How do I know if the Messaging Gateway agent is running?<br />

Use the MGW_GATEWAY view to show gateway status information. The AGENT_<br />

STATUS and AGENT_PING fields indicate the current agent status and whether it is<br />

active and responsive to pings. AGENT_STATUS progresses through the following<br />

values when the MGW agent is started:<br />

1. NOT_STARTED<br />

2. START_SCHEDULED<br />

3. STARTING<br />

4. INITIALIZING<br />

5. RUNNING<br />

Will the Messaging Gateway agent automatically restart if the database<br />

shuts down or crashes while the agent is running?<br />

The MGW agent may or may not automatically restart after a database shutdown or<br />

crash. The MGW agent should always be shut down before shutting down the<br />

database. If the MGW agent is running when a database SHUTDOWN NORMAL is<br />

done, the database will not shut down due to the database connections held by the<br />

MGW agent. For IMMEDIATE or ABORT the agent will not restart if the agent has<br />

time to exit normally; otherwise the agent will restart the next time the database is<br />

started.<br />

Frequently Asked Questions 6-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!