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.

Setup Verification<br />

Creating a Messaging Gateway Administration User<br />

To perform gateway administration work, a database user with MGW_<br />

ADMINISTRATOR_ROLE privileges must be created.<br />

Creating an Administration User: Example<br />

CREATE USER IDENTIFED BY ;<br />

GRANT CONNECT, RESOURCE to ;<br />

GRANT MGW_ADMINISTRATOR_ROLE to ;<br />

Setting Up Messaging Gateway<br />

Creating a Messaging Gateway Agent User<br />

To establish the gateway agent’s connection back to the database, a database user<br />

with MGW_AGENT_ROLE privileges must be created.<br />

Creating an Agent User: Example<br />

CREATE USER IDENTIFED BY ;<br />

GRANT CONNECT, RESOURCE to ;<br />

GRANT MGW_AGENT_ROLE to ;<br />

Configuring Messaging Gateway Connection Information<br />

After the agent user is created, the administration user uses DBMS_MGWADM.DB_<br />

CONNECT_INFO to configure Messaging Gateway with the user name, password,<br />

and database connect string used by the gateway agent to connect back to database.<br />

Use the agent user name and password that are created in "Creating an Agent User:<br />

Example" on page 18-11. The database connect string parameter can be set to either<br />

a new service name in tnsnames.ora (with IPC protocol for better performance)<br />

or null. If null, the oracle_sid parameter must be set in mgw.ora.<br />

For release 9.2, always specify a nonnull value for the database connect string<br />

parameter when calling DBMS_MGW_DB_CONNECT_INFO( ).<br />

Using DBMS_MGWADM.DB_CONNECT_INFO: Example<br />

connect /<br />

exec dbms_mgwadm.db_connect_info('','', '');<br />

The following procedure verifies the installation and includes a simple startup and<br />

shutdown of the Messaging Gateway agent.<br />

Messaging Gateway 18-11

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

Saved successfully!

Ooh no, something went wrong!