The SET_PARAM procedure sets default values for parameters of the DBMS_STATS package. You can use the GET_PARAM function to obtain the default value of a parameter.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_STATS.SET_PARAM (
pname IN VARCHAR2,
pval IN VARCHAR2);
Parameters
| Parameter | Description |
|---|---|
| pname | The name of the parameter. |
| pvalue | The value of the parameter. |
Exceptions
| Error Code | Description |
|---|---|
| OBE-20000 | The object does not exist or the user does not have the required privileges. |
| OBE-20001 | The value is invalid or the input is invalid. |
Considerations
Both parameters are of the
VARCHAR2type. Their values must be enclosed in quotes.NULLand'NULL'are different. WhenNULLis not enclosed in quotes, it indicates that the parameter will be set to the recommended value. However,'NULL'specifies that the parameter's value should be set toNULL.
Examples
Set the default value of the DEGREE parameter.
obclient> CALL DBMS_STATS.SET_PARAM('DEGREE','20');
Query OK, 0 rows affected
