The SET_PARAM procedure sets the default value for a parameter of a procedure in the DBMS_STATS system package. You can use the GET_PARAM function to obtain the default value of a parameter.
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 |
|---|---|
| HY000 |
|
Considerations
To run this procedure, you must have the
SYSDBAprivilege.Both parameters of this procedure are of the
VARCHAR2type. Their values must be enclosed in quotation marks.NULLand'NULL'are different. WhenNULLis not enclosed in quotation marks, it indicates that the parameter is set to the recommended value. When'NULL'is specified, the value of the parameter is set toNULL.
Examples
Set the default value of the DEGREE parameter.
obclient> CALL DBMS_STATS.SET_PARAM('DEGREE','20');
Query OK, 0 rows affected
