Note
This variable is available starting with V1.4.
Description
binlog_row_image specifies whether to record all column values.
Privilege requirements
Query variables
Global level
sysand all user tenants can view the values of Global system variables by executing theSHOW VARIABLESstatement, or querying theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode).Session level
sysand all user tenants can view the values of Session system variables by executing theSHOW VARIABLESstatement, or querying theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode).
Modify variables
Global level
systenants can modify the value of a Global system variable directly.MySQL user tenants need to have the
SUPERorALTER SYSTEMprivilege to modify the value of a Global system variable.Oracle user tenants need to have the
ALTER SYSTEMprivilege to modify the value of a Global system variable.
Session level
sysand all user tenants can modify the value of a Session system variable directly.
Attributes
| Attribute | Description |
|---|---|
| Type | Enum |
| Default value | FULL |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Considerations
Full-row image means that an OBServer node records all column values (both the old and new values) for each statement of the UPDATE or DELETE type. In the non-full-row image, only the new values are recorded.
The modified variable takes effect only for new sessions, not for existing sessions, including the session in which you modified the variable.
Examples
Set the value to FULL to record all columns.
Global level
obclient> SET GLOBAL binlog_row_image=FULL;Session level
obclient> SET binlog_row_image=FULL;