Many of the utilities provided with SQL Anywhere 16 allow you to store command-line options in a configuration file. If you use an extensive set of options, you may find it useful to store them in a configuration file.
The @data option allows you to specify environment variables and configuration files on the command line. To specify a configuration file, replace data with the path and name of the configuration file. If both an environment variable and configuration file exist with the same name, the environment variable is used.
Configuration files can contain line breaks, and can contain any set of options, including the @data option. You can use the number sign (#) at the beginning of a line to designate the line as a comment. The ampersand (&) character appearing by itself at the end of a line indicates that the previous token is continued on the next line. For example, the following configuration file could be used to start a server that allows strong encryption:
-ec TLS(FIPS=Y;IDENTITY=rsaserver.id; & IDENTITY_PASSWORD=test) -x TCPIP c:\mydemo.db
The @data parameter can occur at any point in the command line, and parameters contained in the file are inserted at that point. You can use @data multiple times on one command line to specify multiple configuration files.
Utilities read the command line by expanding the specified configuration files and reading the entire command line from left to right. If you specify options that are overridden by other options in the command line, the option closer to the end of the line wins. Conflicting options can cause errors.
The Start Server in Background utility (dbspawn) does not expand configuration files specified by the @data option.
To protect passwords or other information in a configuration file, you can use the File Hiding utility to obfuscate the contents of the configuration file. See File Hiding utility (dbfhide).
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|