Setting Database Parameters - Aster Client

Teradata Aster® Client Guide

Product
Aster Client
Release Number
7.00
Published
May 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
hki1475000360386.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
B700-2005
lifecycle
previous
Product Category
Software

You can use the \set command to set Aster Database parameters from ACT. The syntax to use the \set command is:

\set [ <name> [ <value> [ ... ] ] ]

These are the database parameters you can set from ACT:

Database parameters
Parameter Description
auto-commit [1|0] When set to 1 (on, the default), each SQL command is automatically committed upon successful completion. When set to 0 (off), you may manually commit your changes after each transaction or series of transactions by issuing the COMMIT command, or undo changes by issuing ROLLBACK. If you do not issue the COMMIT command, all transactions that occurred since the last COMMIT will rollback automatically.
fetch-count [int] To limit the number of rows returned at a time. ACT uses a fetch count by default (i.e. even when fetch-count is not set explicitly.) The fetch-count (number of rows per fetch) should always be set to greater than 0, The default value is 1024 (1024 rows).
fetch-limit [int] To set the maximum number of rows returned per query. A value less than 0 implies fetch all rows. A value greater than 0 implies fetch-limit rows in total. The default value is -1 (all rows).
use-server-cursors [1|0] When set to 1, sets the server to use cursors (useful when the result set is very large). When set to 0 (the default, off), sets the server to not use cursors.
on-error-stop [1|0] By default, this feature is disabled or set to off = 0.
When set to 1 (or “on”) ACT will stop and exit if it meets an error during SQL query processing. 
The following are ACT exit messages:
  • EXIT_SUCCESS = 0 means ACT finished processing normally.
  • EXIT_FAILURE = 1 means an error occurred, such as "file not found" in the “-f” option.
  • EXIT_USER = 3 means an error occurred in a sql script and the option “on-error-stop” was on or enabled.