Name

cfg_write — Writes the item=value to an INI file

Synopsis

cfg_write ( in path varchar ,
  in section varchar ,
  in item_name varchar ,
  in item_value varchar );
 

Description

This function requires dba privileges.

This function allows modification of existing entries, or update updating existing items in an INI file.

Parameters

path

Name of the INI file.

section

Name of the section in the INI file.

item_name

Name of item that will be assigned the item_value.

item_value

Value to be assigned to the item_name.

Examples

Example 24.36. Simple examples

Write ServerPort=2222 under the [Parameters] section of the current virtuoso.ini file.

SQL> cfg_write(virtuoso_ini_path(), 'Parameters','ServerPort','2222');

-- Verification
SQL> select cfg_item_value(virtuoso_ini_path(), 'Parameters','ServerPort');
callret
VARCHAR
___________________________________________________________________________

2222