The GET_PARAMETER_VALUE function is used to retrieve the value of a specified init.ora parameter.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_UTILITY.GET_PARAMETER_VALUE (
parnam IN VARCHAR2,
intval IN OUT BINARY_INTEGER,
strval IN OUT VARCHAR2,
listno IN BINARY_INTEGER DEFAULT 1)
RETURN BINARY_INTEGER;
Parameters
| Parameter | Description |
|---|---|
| parnam | The parameter name. |
| intval | The length of an integer parameter value or a string parameter value. |
| strval | The string parameter value. |
| listno | The item number to list. |
Return value
The return value is of the following types:
0:
INTEGER/BOOLEANparameter1: string or file parameter
Considerations
You must have the
SELECTprivilege on theV$PARAMETERdynamic view to execute this function.When you use
DBMS_UTILITY.GET_PARAMETER_VALUE, ifinit.orais set as follows, only the first parameter setting in/dir1is returned:utl_file_dir = /dir1 utl_file_dir = /dir2If you set it as follows, the complete comma-separated string is returned:
utl_file_dir = /dir1, /dir2
