The cdc_set_fullrowlogging() function
Enables or disables full-row logging for a table.
The DB_LOCALE environment variable must be set to the same locale as the database locale when you run this function.
PurposeFunction arguments
Argument | Data Type | Description |
---|---|---|
database:owner.table_name | LVARCHAR | The qualified name of the table. The qualified
name includes the following elements:
|
logging | INTEGER |
|
Usage
Use the cdc_set_fullrowlogging() function to enable full-row logging on a table from which you intend to perform data capture. This function must be run as user informix. After you stop capturing data from a table, you can disable full-row logging. Dummy updates are fully logged. Logging remains enabled when the Change Data Capture session is closed.
You can check the status of logging by running the
oncheck -pT command. The Tblspace flags section of the oncheck
-pT output shows the following text if logging is enabled: TBLspace flagged for
Log Snooping
.
You must call this function from a client application. You cannot call this function from a user-defined routine that runs within the database server.
Return values
If successful, returns 0.If unsuccessful, returns an integer corresponding to an error code and updates the syscdcsess table with the error information.