www.openlinksw.com
docs.openlinksw.com

Book Home

Contents
Preface

Virtuoso Functions Guide

Administration
db.dba.vacuum
user_change_password
user_create
user_drop
user_get_option
user_grant_role
user_revoke_role
user_role_create
user_role_drop
user_set_option
user_set_qualifier
cfg_item_count
cfg_item_name
cfg_item_value
cfg_section_count
cfg_section_name
cfg_write
checkpoint_interval
disconnect_user
fk_check_input_value...
key_estimate
log_enable
log_text
prof_enable
prof_sample
server_root
status
sys_lockdown
sys_stat
system
trace_status
user_set_password
virtuoso_ini_path
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
RDF data
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY

Functions Index

cfg_write

Writes the item=value to an INI file
cfg_write (in path varchar, in section varchar, in item_name varchar, in item_value varchar);
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.
Description

This function requires dba privileges.

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

Examples
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
See Also

virtuoso_ini_path cfg_section_count cfg_section_name cfg_item_count cfg_item_name cfg_item_value