REMOTE_JOURNAL_INFO view
The REMOTE_JOURNAL_INFO view returns information about every remote journal defined for a local or remote journal on the IBM® i where this view is referenced. The remote journals returned by this service exist on a different IBM i, as noted by the remote database (RDB) name.
This information is similar to what is returned by the Retrieve Journal Information (QjoRetrieveJournalInformation) API.
- *EXECUTE authority to the library containing the journal, and
- *OBJOPR authority and some data authority other than *EXECUTE to the journal.
The following table describes the columns in the view. The system name is RMT_JRNS. The schema is QSYS2.
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
SOURCE_JOURNAL_LIBRARY | SRC_JRNLIB | VARCHAR(10) | The library that contains SOURCE_JOURNAL. |
SOURCE_JOURNAL | SRC_JRN | VARCHAR(10) | The name of the journal that has the remote journal defined. |
REMOTE_DATABASE_NAME | RMT_RDB | VARCHAR(18) | The name of the remote database that is the target and contains the remote journal. |
REMOTE_JOURNAL_LIBRARY | RMT_JRNLIB | VARCHAR(10) | The library that contains REMOTE_JOURNAL. |
REMOTE_JOURNAL | RMT_JRN | VARCHAR(10) | The name of the remote journal that is the target for remote journaling. |
REMOTE_JOURNAL_RECEIVER_LIBRARY | RMT_RCVLIB | VARCHAR(10) | The library name of the remote journal receiver that is the target
for remote journaling. The special value of *SRCRCVLIB indicates the journal receivers are created on the target system in the same library as they exist on the source system. |
REMOTE_JOURNAL_STATE | RMT_STATE | VARCHAR(8) | The state of the remote journaling.
|
REMOTE_JOURNAL_TYPE | RMT_JTYPE | VARCHAR(6) | The type of remote journal that was created. The type influences
characteristics of the remote journal such as journal receiver restore options, redirection
capabilities, and remote journal association support.
|
DELIVERY_MODE | DELIVERY | VARCHAR(10) Nullable
|
The remote journal delivery mode that is being used to replicate
journal entries to the remote journal.
Contains the null value if REMOTE_JOURNAL_STATE is not ACTIVE or CTLINACT. |
DATA_PORT_SERVICES_NODE_ID | NODE_ID | VARCHAR(8) Nullable
|
The node identifier being used by data port services to identify
the target system in a cluster environment. If a node identifier and at least one internet address
is retrieved, then data port services is being used as an alternate communication method to the
target system. Contains the null value if the remote journal is not configured for data port services. |
DATA_PORT_SERVICES_ADDRESS_1 | IP_ADDR1 | VARCHAR(45) Nullable
|
The first internet address being used by data port services to
communicate to the target system. Contains the null value if the remote journal is not configured for data port services. |
DATA_PORT_SERVICES_ADDRESS_2 | IP_ADDR2 | VARCHAR(45) Nullable
|
The second internet address being used by data port services to
communicate to the target system. Contains the null value if the remote journal is not configured for data port services or there are less than two internet addresses being used. |
DATA_PORT_SERVICES_ADDRESS_3 | IP_ADDR3 | VARCHAR(45) Nullable
|
The third internet address being used by data port services to
communicate to the target system. Contains the null value if the remote journal is not configured for data port services or there are less than three internet addresses being used. |
DATA_PORT_SERVICES_ADDRESS_4 | IP_ADDR4 | VARCHAR(45) Nullable
|
The fourth internet address being used by data port services to
communicate to the target system. Contains the null value if the remote journal is not configured for data port services or there are less than four internet addresses being used. |
VALIDITY_CHECKING | VALID_CHK | VARCHAR(9) Nullable
|
The validity checking status. When communications validity checking
is turned on, the remote journal environment provides additional checking to verify that the data
which is received by the target system matches the data that was sent from the source system. If the
data does not match, the data will not be written to the target system, the remote journal
environment will be inactivated, and messages indicating the communications failure will be issued
to the journal message queue and QHST.
Contains the null value if REMOTE_JOURNAL_STATE is not ACTIVE or CTLINACT. |
SENDING_TASK_PRIORITY | PRIORITY | INTEGER Nullable
|
The priority of the sending task on the source system. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *ASYNC or *ASYNCPEND. |
SYNCHRONOUS_SENDING_TIME_OUT | TIME_OUT | INTEGER Nullable
|
The maximum amount of time, in seconds, to wait for a response from
the remote system when a response is required in a synchronous remote journal
environment. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *SYNC or *SYNCPEND. |
MAXIMUM_RESTART_ATTEMPTS | MAXRESTART | INTEGER Nullable
|
The number of times the operating system will attempt to reactivate
the remote journal after a recoverable failure. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE. |
RESTART_DELAY_TIME | RESTARTDLY | INTEGER Nullable
|
The number of seconds between attempts to reactivate the remote
journal after a recoverable failure. Contains the null value if MAXIMUM_RESTART_ATTEMPTS is null or 0. |
FILTER_BY_OBJECT | FTR_OBJECT | VARCHAR(4) Nullable
|
Specifies whether journal entries sent to the remote journal will
be filtered by object.
Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE. |
FILTER_IMAGES | FTR_IMAGE | VARCHAR(7) Nullable
|
Specifies whether before images will be sent to the remote journal.
Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE. |
FILTER_PROGRAMS | FTR_PGM | INTEGER Nullable
|
The number of programs returned in FILTER_PROGRAM_ARRAY. Journal
entries sent on behalf of these programs will not be sent to the remote journal. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE. |
FILTER_PROGRAM_ARRAY | FTR_ARRAY | VARCHAR(219) Nullable
|
An array of up to 20 names of 22 characters each. The first 10 of
each is a program name, followed by a blank, followed by 10 characters for the program library name.
One comma separates the entries. The program library name can be *ALL. Journal entries sent on
behalf of these programs will not be sent to the remote journal. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or FILTER_PROGRAMS is zero. |
FILTER_PROGRAM_JSON | FTR_LISTJ |
VARCHAR(498) CCSID 1208
Nullable |
A list of programs and libraries. Journal entries sent on behalf
of these programs were filtered when sent to this journal receiver. The program’s library name may
be *ALL. This list is returned as an array within a JSON object. Each entry in the JSON array
contains two JSON objects:
Contains the null value if the journal receiver was not attached to a remote journal or FILTER_PROGRAMS is zero. |
BUNDLES_SENT | BUNDLES | BIGINT Nullable
|
The number of bundles that have been sent to the target system
since the source journal transitioned to an active state. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE. |
MAXIMUM_BUNDLE_SIZE | BUNDLE_SIZ | BIGINT Nullable
|
The number of bytes in the largest bundle that has been sent to the
target system since the source journal transitioned to an active state. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE. |
MAXIMUM_BUNDLE_SIZE_TIME | BUNDLE_TIM | TIMESTAMP Nullable
|
The date and time that the maximum bundle size was sent to the
target system. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or MAXIMUM_BUNDLE_SIZE is 0. |
SUPER_BUNDLE_MODE_COUNT | SUPER_CNT | BIGINT Nullable
|
The number of times that the remote journal environment has
automatically gone into super bundling mode. Super bundling mode helps the remote journal
environment keep up with the local journal when the local journal has a high rate of journal entry
deposits. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *ASYNC or *ASYNCPEND. |
ENTRIES_BEHIND | BEHIND | BIGINT Nullable
|
The number of entries that are waiting to be sent to the target
system. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *ASYNC or *ASYNCPEND. |
MAXIMUM_ENTRIES_BEHIND | MBEHIND | BIGINT Nullable
|
The maximum number of entries that were waiting to be sent to the
target system since the source journal transitioned to an active state. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *ASYNC or *ASYNCPEND. |
MAXIMUM_ENTRIES_BEHIND_TIME | MBEHINDT | TIMESTAMP Nullable
|
The date and time that MAXIMUM_ENTRIES_BEHIND occurred. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *ASYNC or *ASYNCPEND or MAXIMUM_ENTRIES_BEHIND is 0. |
TIME_BEHIND | TBEHIND | BIGINT Nullable
|
The value, in hundredths of seconds, that the source journal is
behind in sending journal entries to the target system. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *ASYNC or *ASYNCPEND. |
MAXIMUM_TIME_BEHIND | MTBEHIND | BIGINT Nullable
|
The maximum value, in hundredths of seconds, that the source
journal was behind in sending journal entries to the target system. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *ASYNC or *ASYNCPEND. |
MAXIMUM_TIME_BEHIND_TIME | MTBEHINDT | TIMESTAMP Nullable
|
The date and time that MAXIMUM_TIME_BEHIND occurred. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE or DELIVERY_MODE is not *ASYNC or *ASYNCPEND or MAXIMUM_TIME_BEHIND is 0. |
RETRANSMISSIONS | RETRANS | BIGINT Nullable
|
The total number of times the local system retransmitted a segment
because an acknowledgement was not received. This is a cumulative count of all segments resent since
the remote journal was last activated. A value greater than zero may indicate a problem with the
network. Contains the null value if this information is not available |
LAST_CATCHUP_TIME | LAST_CATCH | TIMESTAMP Nullable
|
The date and time that the remote journal environment last
transitioned to DELIVERY_MODE *ASYNCPEND or *SYNCPEND. Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE. |
LAST_ACTIVE_TIME | LAST_ACT | TIMESTAMP Nullable
|
The date and time that the remote journal environment last
transitioned from DELIVERY_MODE *ASYNCPEND or *SYNCPEND to DELIVERY_MODE *ASYNC or *SYNC.
Contains the null value if REMOTE_JOURNAL_STATE is INACTIVE |
CONTROLLED_INACTIVATE_SEQUENCE_
NUMBER |
INACT_SEQ | DECIMAL(21,0) Nullable
|
The sequence number of the last journal entry that was queued for
replication before the Change Remote Journal (CHGRMTJRN) command or the Change Journal State
(QjoChangeJournalState) API was called to start a controlled inactivate of the remote journal.
Contains the null value if REMOTE_JOURNAL_STATE is not CTLINACT. |
CONTROLLED_INACTIVATE_JOURNAL_
RECEIVER_LIBRARY |
INACTJRCVL | VARCHAR(10) Nullable
|
The library of the journal receiver that contains the
CONTROLLED_INACTIVATE_SEQUENCE_NUMBER. Contains the null value if REMOTE_JOURNAL_STATE is not CTLINACT. |
CONTROLLED_INACTIVATE_JOURNAL_
RECEIVER |
INACTJRCV | VARCHAR(10) Nullable
|
The name of the journal receiver that contains the
CONTROLLED_INACTIVATE_SEQUENCE_NUMBER. Contains the null value if REMOTE_JOURNAL_STATE is not CTLINACT. |
SOURCE_JOURNAL_IASP_NUMBER | SRC_ASPNUM | INTEGER | The number of the auxiliary storage pool to which storage for the journal that has the remote journal defined is allocated. |
SOURCE_JOURNAL_IASP_NAME | SRC_ASPNAM | VARCHAR(10) | The device description name of the independent auxiliary storage
pool (IASP). The special value of *SYSBAS indicates SYSBASE, which includes the system ASP (ASP 1) and the basic user ASPs (ASPs 2-32). |
Example
- Return information about remote journals defined for system RMTSYS1.
SELECT * FROM QSYS2.REMOTE_JOURNAL_INFO WHERE REMOTE_DATABASE_NAME = 'RMTSYS1';