Note
This variable is available starting with V1.4.
Description
binlog_row_image specifies whether to record full-column logs.
Privilege requirements
Query variables
Global level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) andinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to obtain the value of global system variables.Session level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle-compatible mode) andinformation_schema.SESSION_VARIABLESview (MySQL-compatible mode) to obtain the value of session system variables.
Modify variables
Global level
The
systenant can directly modify the value of global system variables.MySQL user tenants can modify global system variables only if they have the
SUPERorALTER SYSTEMprivilege.Oracle user tenants can modify global system variables only if they have the
ALTER SYSTEMprivilege.
Session level
The
systenant and all user tenants can directly modify the value of session system variables of their own tenants.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | Enum |
| Default value | FULL |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Usage
- A full-column log records all the new and old values of columns for UPDATE and DELETE statements on an OBServer node.
A non-full-column log records only the new values of columns.
- After you execute the
SET GLOBAL binlog_row_image= 'xxx'statement to modify a variable, the modification does not take effect on any existing session, including the one that issued the modification statement.
Examples
Global level
obclient> SET GLOBAL binlog_row_image=FULL;Session level
obclient> SET binlog_row_image=FULL;