GET_PARAMETER_VALUE

2024-12-02 03:48:27  Updated

The GET_PARAMETER_VALUE function returns the value of a specified init.ora parameter.

Applicability

This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.

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 name of the parameter.
intval The value of an integer parameter or the value length of a string parameter.
strval The value of a string parameter.
listno The list item number.

Return values

Either of the following parameter types is returned:

  • 0: indicates INTEGER/BOOLEAN parameters.

  • 1: indicates string/file parameters.

Considerations

  • To call this function, you must have the SELECT privilege on the V$PARAMETER dynamic view.

  • When you use DBMS_UTILITY.GET_PARAMETER_VALUE, only the first parameter setting of /dir1 is returned if init.ora is set as follows:

    utl_file_dir = /dir1
    utl_file_dir = /dir2
    

    A complete comma-delimited string is returned in the case of the following setting:

    utl_file_dir = /dir1, /dir2
    

Contact Us