Setting "on-error-stop" in the ACT config file - 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

To enable the “on-error-stop” option, add it to the ACT config file actconfig.ini and set the value to true. Set the value to false to turn off this option. By default, this feature is disabled or “off”.

The following is an example from of a config file for ACT:

# ACT configuration file example
# Contains setting to enable on-error-stop
host: 10.10.10.10
dbname: sampledb
username: beehive
on-error-stop: true

The default location for the config file on Linux/UNIX-based systems is $(HOME)/.actconfig. For Windows, the default location for the config file is %HOMEPATH%/actconfig.ini. Upon launching, ACT will look for the config file in the default location, and if found, will use it by default.

Command line flags can be specified when starting ACT, in addition to the flags in the configuration file. If a flag is present in the config file and specified at the command line as well, the value on the command line will override the value in the config file. ACT will notify the user that the command line flag was used upon startup.

The following is an example of a config file for ACT:

# ACT configuration file example
# Contains settings for connecting securely to a specific host and database
host: 10.10.10.10
dbname: sampledb
username: sampleuser
# SSL settings
enable-ssl: true
ssl-self-signed-peer: true
ssl-encrypt-reads: false

To start ACT, explicitly using the config file, issue a command like this example:

$ act --config-file /home/beehive/.act_ssl_config

To start ACT, explicitly using the config file and also specifying an additional parameter to redirect query results to a file for this session only, issue a command like this example:

$ act --config-file /home/beehive/.act_ssl_config -o /home/beehive/query_results_file