HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
hdstrcedit (edit an activity trace file)
The hdstrcedit command edits a trace file that has been output during source or target Datareplicator operation and outputs the edited contents to another file (or to the standard output). The command analyzes the entire contents of the activity trace file, and then outputs to the file.
If there are multiple errors based on the specified options, the command outputs as many error messages as it can check. Because the command stores the option analysis results in its local memory.
hdstrcedit -f activity-trace-filename [,activity-trace-filename]
[ -l { glbl|perf1|perf2 }]
[ -p process-ID [ -p process-ID ] ...] |
[ -t start-date-and-time [,end-date-and-time ]]
[ -o destination-filename ][ -O shortfmt ]
| Trace file information that is output | -l option value | ||
|---|---|---|---|
| glbl | perf1 | perf2 | |
|
Y | Y | Y |
|
Y | Y | Y |
|
Y | Y | Y |
|
-- | Y | Y |
|
-- | -- | Y |
|
Y | Y | Y |
To determine the command's execution results, check the command's return value or check for an error message. The following are the command's return values:
| Return value | Termination status | Description |
|---|---|---|
| 0 | Normal termination | Datareplicator has finished reading and editing all data in the input trace files. |
| 1 | Abnormal termination |
|
| Undefined | Abnormal termination | Signal interrupt occurred (hdstrcedit command does not handle signals). |
Table 7-17 Process codes
| Process code | Process name |
|---|---|
| TRCR# | Trace information collection process |
| MSTR | Extraction master process or import master process |
| NMST | Extraction node master process |
| SNDR | Transmission process |
| SNDM | |
| SNDC | |
| CAPT | Extraction process |
| RCVT | Reception process (TCP/IP communication) |
| RCVO | Reception process (OSI communication) |
| DEFS | Import definition server process |
| RFCT | Import process |
| SQLE | Import SQL process |
| UOCG | Import UOC process |
Table 7-18 Relationship between the process code and identification name
| Process code | Value displayed for Cpn | Trace level | Description | Additional information that is output simultaneously |
|---|---|---|---|---|
| TRCR | QRCVST | GL | Start of activity trace collection | Message queue ID |
| MSTR | R_INIT | GL | INITENV (initialization) request issuance trace collection | Request type, object of request |
| R_STRT | GL | START request issuance trace collection | Request type, object of request | |
| R_STOP | GL | STOP request issuance trace collection | Request type, object of request | |
| R_STTE | GL | STATE request issuance trace collection | Request type, object of request | |
| R_WTCH | GL | WATCH (monitoring) request issuance trace collection | Request type, object of request | |
| NMST | R_INIT | GL | INITENV (initialization) request reception trace collection | N/A |
| R_STRT | GL | START request reception trace collection | Request type, object of request | |
| R_STOP | GL | STOP request reception trace collection | Request type, object of request | |
| R_STTE | GL | STATE request reception trace collection | Request type, object of request | |
| R_WTCH | GL | WATCH (monitoring) request reception trace collection | Request type, object of request | |
| SNDR | SNDSTR | ST | Start of transmission process | Displays hdesender start. |
| SNDPPT | P1 | Collection of port check transmission performance | Displays Sendperformance: portcheck send. | |
| SNDPDF | P1 | Collection of extraction definition transmission performance | Displays Sendperformance: extract definition send. | |
| SNDPTW | P2 | Collection of transaction management performance | Displays Sendperformance: transaction watch. | |
| SNDPEX | P1 | Collection of update information transmission performance (transmission of all data during the transmission interval). | Displays Sendperformance: sendinterval. | |
| SNDEND | ST | Termination of transmission process | Displays hdesender stop. | |
| SNCPSD | P1 | Collection of update information transmission performance (transmission of only one data segment) | Displays the transmission split type, number of transmitted transactions, number of update information items, and length in bytes. | |
| SNCPAU | P2 | Collection of the ADT constructor information creation UOC performance | Displays ADT UOC call. | |
| SNDR | SNCPLB | P2 | Collection of the queue file storage format assembly performance | Displays EB Log. |
| SNCPLC | P2 | Collection of the queue file storage format assembly performance | Displays EC Log. | |
| SNCPUC | P2 | Collection of the transmission checking UOC performance | Displays the UOC's return value. | |
| SNCPCV | P2 | Collection of the send data editing performance (repetition column) | Displays hde_edt_extcnv2() call. | |
| SNCPCV | P2 | Collection of the send data editing performance | Displays hde_edt_extcnv() call. | |
| SNDLYT | P1 | Collection of the transmission delay period | Delay period | |
| SNDM | SNMSTR | ST | Start of the extraction node master process | Displays hdesenmst start. |
| SNMEND | ST | Termination of the extraction node master process | Displays hdesenmst end. | |
| SNDC | SNPSTR | ST | Start of the transmission process | Displays hdesndprc start. |
| SNPPEX | P1 | Collection of the update information transmission performance (transmission of all data during the transmission interval) | Displays Sendperformance: sendinterval. | |
| SNPEND | ST | Termination of the transmission process | Displays hdesndprc end. | |
| SNPPPT | P1 | Collection of the port check transmission performance | Displays Sendperformance: portcheck send. | |
| SNPPDF | P1 | Collection of the extraction definition transmission performance | Displays Sendperformance: extract definition send. | |
| SNDLYT | P1 | Collection of the transmission delay period | Delay period | |
| CAPT | REDINI | ST | Collection of the READ start point immediately after the start of process | READ point information (binary format) |
| SYNCQU SYNCRD |
LC | Trace of READ and WRITE point synchronization processing | System log READ point and queue file WRITE point | |
| CMDTRC | LC | Trace of command acceptance | Details about the command request | |
| CPDLYT | P1 | Collection of the extraction delay period | Delay period | |
| RCVT | RCVDP1 | P1 | Data reception | Data reception status |
| TCPSOP | ER | socket open error | Function's return value, errno | |
| TCPSOP | GL | Termination of socket open | Function's return value | |
| TCPSBN | ER | bind error | Function's return value, errno | |
| TCPSBN | GL | Termination of bind | Function's return value | |
| TCPSLI | GL | Result of listen | Function's return value | |
| TCPSCP | GL | Wait for accept | N/A | |
| TCPSCP | GL | accept return | Function's return value, errno | |
| TCPFRK | GL | fork error | Function's return value, errno | |
| RCVO | OSITOP | GL | Result of t_open | Function's return value, errno |
| OSITBN | GL | Termination of t_bind | Function's return value, errno | |
| OSITAL | GL | Termination of t_alloc | Function's return value, errno | |
| OSITLI | GL | Wait for t_listen | N/A | |
| OSITLI | GL | Result of t_listen | Function's return value, errno | |
| OSITOP | GL | Result of t_open | Function's return value, errno | |
| OSITBN | GL | Result of t_bind | Function's return value, errno | |
| OSITAC | GL | Result of t_accept | Function's return value, errno | |
| OSIFRK | GL | Result of fork | Function's return value, errno | |
| DEFS | DFINIT | ST | Start of process | Data linkage identifier |
| DFEXIT | ST | Termination of process | N/A | |
| DEFMKP | LE | Start of subprocess (INIT) | Event code, process ID | |
| DEFMKP | LC | Start of subprocess (NORMAL) | Event code, process ID | |
| DEFMKP | LC | Start of subprocess (RERUN) | Event code, process ID | |
| DEFCOM | LC | Detection of command entry | Command name | |
| DEFMKP | LC | Start of subprocess (event) | Event code, process ID | |
| DEFMKP | LC | Start of subprocess (hdsstop) | Event code, process ID | |
| RFCT | RFINIT | ST | Start of import process | Datareplicator identifier, data linkage identifier |
| EVSTOP | GL | Termination due to the previous event termination | Event ID | |
| IMSTOP | GL | Immediate termination during start processing | N/A | |
| RFSTRT | GL | Start of import processing | Start mode, queue file offset | |
| RFSIGS | LE | Signal reception | Received signal | |
| RFQGET | P1 | Detection of end of queue file | Queue file offset | |
| RFQGET | P1 | Input of queue file data | Queue file offset, update information (first 128 bytes) | |
| RFTRNC | P1 | Transaction entry in the update information | Transaction counter, number of update information items in transaction | |
| EVENTC | LE | Event detection | Event ID, process status code 1, 2 | |
| RFTERM | ST | Termination of import process | Termination mode, queue file offset | |
| RFPIPR | P2 | Reception of SQL execution result | Destination entry, read size or return code | |
| RFPIPW | P2 | Transmission of SQL execution instruction to the SQL process or UOC process | Destination entry, write size, SQL assembly information (first 128 bytes) | |
| RFRCVR | P1 | Transaction recovery result during rerun (2-phase commit only) | Return code | |
| RFCT | RFCOMT | P1 | Result of COMMIT | Reason for commit, return code |
| RFENDC | P1 | Result of END/DISCONNECT | Type, return code | |
| RFEXIT | ST | Termination of import process | Type, return code | |
| RFDLYT | P1 | Collection of the import delay period | Delay period | |
| SQLE | SQINIT | ST | Start of process | Start mode (dsid, group name, segment number) |
| SQEXIT | ST | Termination of process | Termination mode (NORMAL, FORCE, ERROR) | |
| SQEREQ | GL | Acceptance of termination request | N/A | |
| XARERN | LC | Recovery execution (2-phase commit method) | Recovery type | |
| TRETRY | LC | Transaction retry | N/A | |
| CNCT_S | P2 | Before execution of connect | N/A | |
| CNCT_E | P2 | After execution of connect | SQLCODE | |
| PINS_S | P2 | Before execution of prepare (insert) | SQL statement (127 bytes maximum) | |
| PINS_E | P2 | After execution of prepare (insert) | SQLCODE | |
| PUPD_S | P2 | Before execution of prepare (update) | SQL statement (127 bytes maximum) | |
| PUPD_E | P2 | After execution of prepare (update) | SQLCODE | |
| PDEL_S | P2 | Before execution of prepare (delete) | SQL statement (127 bytes maximum) | |
| PDEL_E | P2 | After execution of prepare (delete) | SQLCODE | |
| EINS_S | P2 | Before execution of execute (insert) | Table name | |
| EINS_E | P2 | After execution of execute (insert) | SQLCODE | |
| EUPD_S | P2 | Before execution of execute (update) | Table name | |
| EUPD_E | P2 | After execution of execute (update) | SQLCODE | |
| SQLE | EDEL_S | P2 | Before execution of execute (delete) | Table name |
| EDEL_E | P2 | After execution of execute (delete) | SQLCODE | |
| EXEI_S | P2 | Before execution of execute immediate | SQL statement (127 bytes maximum) | |
| EXEI_E | P2 | After execution of execute immediate | SQLCODE | |
| CMIT_S | P2 | Before execution of commit | N/A | |
| CMIT_E | P2 | After execution of commit | SQLCODE | |
| RLBK_S | P2 | Before execution of rollback | N/A | |
| RLBK_E | P2 | After execution of rollback | SQLCODE | |
| XAOP_S | P2 | Before execution of xa_open() | N/A | |
| XAOP_E | P2 | After execution of xa_open() | Return value of xa_open() | |
| XAPR_S | P2 | Before execution of xa_prepare() | N/A | |
| XAPR_E | P2 | After execution of xa_prepare() | Return value of xa_prepare() | |
| XACM_S | P2 | Before execution of xa_commit() | N/A | |
| XACM_E | P2 | After execution of xa_commit() | Return value of xa_commit() | |
| XARL_S | P2 | Before execution of xa_rollback() | N/A | |
| XARL_E | P2 | After execution of xa_rollback() | Return value of xa_rollback() | |
| DISC_S | P2 | Before execution of disconnect | N/A | |
| DISC_E | P2 | After execution of disconnect | SQLCODE | |
| SQPIPR | P2 | Read update information | Request type, read size | |
| PWRT_A | P2 | Transmission of PRE-C result | Execution result, write size | |
| SQPIPW | P2 | Transmission of COMMIT result | Execution result, write size | |
| SQLE | CUOC_S | P2 | Before execution of column UOC | Column UOC function type |
| CUOC_E | P2 | After execution of column UOC | Column UOC function type, column UOC function execution result | |
| CUOC_S | P2 | Before execution of column UOC | Column UOC function type | |
| CUOC_E | P2 | After execution of column UOC | Column UOC function type, column UOC function execution result | |
| SQPIPW | P2 | Transmission of update result (up to the synchronization point) | Execution result, write size | |
| UOCG | UCINIT | ST | Start of process | Start mode |
| UCEXIT | ST | Termination of process | Termination mode (NORMAL, FORCE, ERROR) | |
| UBE1_S | GL | Call to hds_ubegin() | N/A | |
| UEDT_S | GL | Call to hds_uedit() | N/A | |
| UEND_S | GL | Call to hds_uend() | N/A | |
| UCPIPR | P2 | Read SQL execution instruction | N/A | |
| UBE1_E | P2 | Return from hds_ubegin() | N/A | |
| UEDT_E | P2 | Return from hds_uedit() | N/A | |
| UEND_E | P2 | Return from hds_uend() | N/A | |
| UCPIPW | P2 | Transmission of update result (up to the synchronization point) | N/A | |
| UCEREQ | GL | Acceptance of termination request | N/A |
The following is an example of an activity trace collected at a target Datareplicator. This example collected the activity trace under the following conditions:
If you specify p2 for the activity trace collection level and -l perf2 in the hdstrcedit command, each SQL statement's issuance and completion time is displayed in addition to the information shown above.
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.