1.1.1

Table Of Contents
The SYSCS_UTIL.EMPTY_STATEMENT_CACHE stored procedure removes as many compiled statements
(plans) as possible from the database-wide statement cache. The procedure does not remove statements related
to currently executing queries or to activations that are about to be garbage collected, so the cache is not guaranteed
to be completely empty after a call to this procedure.
Syntax
SYSCS_UTIL.EMPTY_STATEMENT_CACHE()
JDBC Example
CallableStatement cs = conn.prepareCall
("CALL SYSCS_UTIL.EMPTY_STATEMENT_CACHE()");
cs.execute();
cs.close();
SQL Example
CALL SYSCS_UTIL.EMPTY_STATEMENT_CACHE();
SYSCS_UTIL.EXPORT_QUERY
Export the results of a SELECT statement to an operating system le.
For security concerns, and to avoid accidental le damage, this EXPORT procedure does not export data into
an existing le. You must specify a lename in the EXPORT procedure that does not exist. When you run the
procedure the le is created and the data is exported into the new le.
The data is exported using a delimited le format. For example, you can use this command to export the results
of a query as comma-separated values (a CSV le).
Syntax
SYSCS_UTIL.EXPORT_QUERY(IN SELECTSTATEMENT VARCHAR(32672),
IN FILENAME VARCHAR(32672), IN COLUMNDELIMITER CHAR(1),
IN CHARACTERDELIMITER CHAR(1), IN CODESET VARCHAR(128))
No result is returned from the procedure.
An input argument of type VARCHAR(32672) that species the select statement
(query) that will return the data to be exported. Passing a NULL value will result
in an error.
SELECTSTATEMENT
Species the name of a new le to which the data is to be exported. If the path
is omitted, the current working directory is used. If the name of a le that already
FILENAME
exists is specied, the export procedure returns an error. The specied location
of the le should refer to the server-side location if you are using the Network
Server. Specifying a NULL value results in an error. The FILENAME parameter
takes an input argument that is a VARCHAR (32672) data type.
An input argument of type CHAR(1) that species a column delimiter. The
specied character is used in place of a comma to signal the end of a column.
COLUMNDELIMITER
Passing a NULL value will use the default value; the default value is a comma
(,).
An input argument of type CHAR(1) that species a character delimiter. The
specied character is used in place of double quotation marks to enclose a
CHARACTERDELIMITER
character string. Passing a NULL value will use the default value; the default
value is a double quotation mark (").
vFabric SQLFire User's Guide596
vFabric SQLFire Reference