EVALUATE_RECLONE_JOURNALED_OBJECTS table function
The EVALUATE_RECLONE_JOURNALED_OBJECTS table function is used prior to a software reclone to identify objects on the copy node which will have journaling ended during the software reclone. A row will be returned for each non-replicated object on the copy node which is journaled to a replicated journal.
The software reclone processing will end journaling for all objects journaled to any replicated journals (*JRN). Journaling will only be reestablished for replicated objects. Use this service to identify any non-replicated objects that should have journaling reestablished manually after the software reclone has completed.
- This function is invoked on the primary node. The replication state must be TRACKING or BLOCKED. The replication detail must be SUSPENDED.
- The copy node for the software reclone must be available.
- The NRGs must be started.
- The replication state for SYSBAS must be ACTIVE.
- The replication state of the IASP on the node where this function is invoked must be TRACKING. The replication detail must be SUSPENDED.
- The IASP must be a database IASP and must be available on both nodes.
- *EXECUTE authority on the library containing the journal, and
- *OBJOPR and some data authority other than *EXECUTE to the journal
- *ALLOBJ special authority
- For the authority needed to use this function, see Authorization.
- iasp-name
- A character or graphic string expression that identifies the name of the auxiliary storage pool
(ASP) group used to locate the journaled objects. Can contain the following special value:
- *SYSBAS
- The journaled objects are associated with the system ASP (ASP 1) and any basic user ASPs (ASPs 2-32).
The result of the function is a table containing rows with the format shown in the following table. Each row lists an object on the other node that would have journaling ended if that node is used as the copy node for a software reclone. All columns are nullable.
Column Name | Data Type | Description |
---|---|---|
JOURNAL_LIBRARY | VARCHAR(10) | The name of the library that contains the replicated journal. |
JOURNAL_NAME | VARCHAR(10) | The name of the replicated journal. |
OBJECT_TYPE | VARCHAR(7) | Type of object.
|
OBJECT_LIBRARY | VARCHAR(10) | The name of the library that contains the object.
Contains the null value if OBJECT_TYPE is *DIR, *STMF, or *SYMLNK. |
OBJECT_NAME | VARCHAR(10) | The name of the object that will have journaling
ended. Contains the null value if OBJECT_TYPE is *DIR, *STMF, or *SYMLNK. |
FILE_TYPE | VARCHAR(8) | The type of file that is journaled.
Contains the null value if OBJECT_TYPE is not *FILE. |
PATH_NAME | DBCLOB(16M) CCSID 1200 | The path name of an integrated file system object
that will have journaling ended. Contains the null value if OBJECT_TYPE is not *DIR, *STMF, or *SYMLNK. |
FILE_IDENTIFIER | BINARY(16) | The identifier associated with the integrated file
system object. Contains the null value if OBJECT_TYPE is not *DIR, *STMF, or *SYMLNK. |
JOURNAL_IMAGES | VARCHAR(6) | Specifies the kinds of images written to the journal for this object.
|
OMIT_JOURNAL_ENTRY | VARCHAR(10) | Specifies the journal entries that are omitted.
|
INHERIT | VARCHAR(4) | Specifies whether new objects created within this journaled
directory or library, moved into this journaled directory or library, or restored into this
journaled directory or library should inherit the journal state of the parent directory or library.
Contains the null value if OBJECT_TYPE is not *DIR or *LIB. |
REMOTE_JOURNAL_FILTER | VARCHAR(4) | Specifies whether the journal entries deposited for objects that
inherit the journal state of the directory or library are eligible for remote journal filtering by
object.
Contains the null value if OBJECT_TYPE is *JRNRCV. |
Example
- List all the non-replicated objects journaled to a replicated journal in SYSBAS that would have
journaling ended on the copy node if a software reclone is
performed.
CREATE TABLE MYLIB.RECLONE_NOT_JOURNALED AS ( SELECT * FROM TABLE(QSYS2.EVALUATE_RECLONE_JOURNALED_OBJECTS(IASP_NAME => '*SYSBAS'))) WITH DATA;