Note
This parameter is available starting with V4.3.5 BP1.
Description
The package_state_sync_max_size parameter specifies the maximum length of a package state (package state management) that can be serialized.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query the parameter.Modify the parameter
The
systenant and user tenants can modify the parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 8192 |
| Value range | [0, 16777216] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
The
package_state_sync_max_sizeparameter specifies the maximum length of a package state (package state management) that can be serialized. In an ODP deployment scenario, if the length of a package state variable that needs to be synchronized exceeds the specified value, ODP synchronizes a special value to ensure that the original node continues to execute the subsequent statements.In a distributed plan scenario, if a remote node constructs a package state and receives a specific value, an error is returned. This error occurs when an SQL statement contains a user-defined function (UDF) or a trigger and explicitly specifies the
parallel_enableclause. To resolve this issue, you can remove theparallel_enableclause or increase the value of thepackage_state_sync_max_sizeparameter.
Examples
Set the maximum length of a package state (package state management) that can be serialized to 8193.
obclient> ALTER SYSTEM SET package_state_sync_max_size=8193;