EFT Server Database Utility

A command line utility is included in the installer that is capable of performing various database-related tasks. This same utility is used by the EFT Server installer to handle upgrades of existing databases. Typically all common database tasks are handled by the EFT Server installer. However, on occasion it may be useful to use the command-line utility to verify the status of a database or perform an upgrade independent of the EFT Server installation process.

The database utility (DBUtility.exe) is included as part of the core EFT Server installation. Once installed it is located in the "DBUtility" sub-directory of the EFT Server program files installation directory. Typically this will be C:\Program Files (x86)\Globalscape\EFT Server Enterprise\DBUtility.

Requirements

Capabilities

The database utility is capable of performing the following tasks:

Logging

The utility is capable of outputting various levels of information ranging from errors to debug/trace level information.

By default the utility will output errors, warnings, and informational messages to the command window. If the "-verbose" command line parameter is specified the utility will also output more fined-grained debug/trace level messages to the command window.

The utility may also optionally output to a log file as specified using the "-logfile" command line option. The output to the log file will include all levels of messages from errors to debug/trace level information.

SQL Scripts

The utility requires the presence of various SQL Scripts located in database-specific sub-directories to perform its actions. These sub-directories contain scripts such as:

By default the utility will look for the "SQL Server" and "Oracle" directories under its current working directory. During installation of the Database utility these script directories will be created under the <InstallDir>\DBUtility directory, so typically the scripts will be available to the utility.

If for some reason the utility is unable to locate these sub-directories it will also attempt to consult the registry for the EFT Server "AppData" path and then look for the sub-directories under that location.

Additionally, the user may specify an alternate parent directory using the "-scripts" command line parameter.

Usage

The database utility is a command line utility and may be executed by opening a Windows Command Prompt and navigating to the "DBUtility" sub-directory under the EFT Server installation folder and running the command "DBUtility.exe".

Help

The utility includes built in help documentation. Additionally the utility will provide feedback on incorrect or missing command line parameters.

The built-in help documentation for the utility may be accessed using the command:

DBUtility.exe -help

More detailed help for the various top level actions may be accessed using the command:

DBUtility.exe -help -action <Action ID>

Where <Action ID> is on of:

Examples

Example executions for each of the actions supported by the utility may be viewed in the command line help for each action.

DBUtility Command Line Parameters

The following section describes each of the command line parameters for the utility. Depending on the action performed only a subset of the parameters will actually be applicable or required.

For the command line parameters that accept a value the value should be enclosed in double-quotes if the value contains spaces. For example, -logfile="C:\My Logs\MyLogFile.txt"

Parameter Definitions

Advanced Parameter Definitions

The following parameters are typically reserved for use by the EFT Server installer and will normally not be useful to end users. However, they are documented here for completeness.