Академический Документы
Профессиональный Документы
Культура Документы
3/18/2013
DB2's GOT TALENT FINALS #2 BY Renu Sharma ACE DBA CONSULTING Inc 1
Requirement
Asked by e-commerce client to write input feed for Netezza data warehouse Data feed should land at staging server Delimited format as Column delimiter | (pipe) Character delimiter ` (acute) Decided to
It is a subset of Q Replication Its target is not a table It has not got Q Apply Q Capture puts the messages Into MQ websphere Queues The data messages are written in either XML or CSV format It can publish subset of columns and rows Application program reads destructively/nondestructively the message Queues
3/18/2013 DB2's GOT TALENT FINALS #2 BY Renu Sharma ACE DBA CONSULTING Inc
TARGET
Meta DATA MQ MESSAGE BROKER USER Application
DB2 Log
Q Capture
User Application
ADMINISTRATION
Replication Center Replication Monitor Replication Dashboard ASNCLP Commands
3/18/2013 DB2's GOT TALENT FINALS #2
pdbin006@aixdb313p Instance "pdbin006" uses "64" bits and DB2 code release "SQL09072" with level identifier "08030107". Informational tokens are "DB2 v9.7.0.2", "s100514", and Fix Pack "2". Product is installed at "/udb/ pdbin006/IBM/db2/V9.7". MQSERVER QMGR NAME : SQLP0232 RESTART QUEUE: ASN.RESTARTQ ADMINQ : ASN.ADMINQ SENDQ : NETEZZA.PUB.QL01 PUBLISHING QUEUE MAP : XCHREPP_EVP_TO_XCHTEZZA_EVP01
MQ CLIENT Name: WebSphere MQ Version: 6.0.2.10 CMVC level: p600-210-100825 BuildType: IKAP - (Production)
3/18/2013
4 DB2's GOT TALENT FINALS #2 BY Renu Sharma ACE DBA CONSULTING Inc
3/18/2013 DB2's GOT TALENT FINALS #2 BY Renu Sharma ACE DBA CONSULTING Inc
3/18/2013
Create Publication
ASNCLP SESSION SET TO Q REPLICATION; SET LOG "pub.err"; SET SERVER CAPTURE TO DB REPP ID DB2ADMIN password XXX; SET CAPTURE SCHEMA SOURCE EP1; SET OUTPUT CAPTURE SCRIPT "pub.sql"; SET RUN SCRIPT LATER; CREATE PUB USING PUBQMAP XCHREPP_EVP_TO_XCHTEZZA_EVP01 (PUBNAME "DEPARTMENT0001" DB2ADMIN.DEPARTMENT ALL CHANGED ROWS Y SUPPRESS DELETES Y); QUIT; asnclp f asnpublication.qrp db2 tvf pub.sql asnqcap capture_server=REPP capture_schema=EVP01 capture_path=/install/db2/caplog startmode=cold View the messages using :asnqmfmt NETEZZA.PUB.QL0 SQLP0232 Data was written at staging server using a JAVA CODE
8
3/18/2013 DB2's GOT TALENT FINALS #2 BY Renu Sharma ACE DBA CONSULTING Inc
Status of sendq:
SELECT sendq,state FROM EVP01.ibmqrep_sendqueues;
Status of restartq:
SELECT SUBSTR(qmgr,1,10) AS qmgr, SUBSTR(restartq,1,20) AS restartq FROM EVP01.ibmqrep_capparms ;
Status of Q subscription:
SELECT SUBSTR(subname,1,10) AS subname,state AS s, state_time FROM EVP01.ibmqrep_subs;
9 3/18/2013
DB2's GOT TALENT FINALS #2 BY Renu Sharma ACE DBA CONSULTING Inc
3/18/2013
DB2's GOT TALENT FINALS #2 BY Renu Sharma ACE DBA CONSULTING Inc
10