Platform Framework
R24 AMR | Min(s) read

Syntax

This section shows you the DBTools syntax in interactive, script and silent modes.

Execution – Interactive Mode

You can execute DBTools console from TAFJ_HOME/bin.

DBTools [-u <username> –p <password> -cf <configuration>[.properties]]

The targeted database is defined in the default configuration file or in the configuration file specified with the -cf option. The username and password must be passed along with –u and –p option respectively.

Copy all JAR files from TAFJ_HOME\dbdrivers\<drivers for different databases>\  folder to TAFJ_HOME\ext folder.

DBTools console also gives you the ability to launch a default command automatically. You need to add your command to the command line after the DBTools console is invoked and it will be executed by default.

DBTools [-u <username> –p <password> -cf <configuration>[.properties]] COMMAND

The example below shows how to launch a SQL command as default command when executing DBTools console.

Execution – Script Mode

You can also execute DBTools console in script mode without opening the console. You need to add -s option and the command you want to execute.

DBTools [-u <username> –p <password> -s [command] ]

The example below shows how to script a JQL command

And how to script a SQL command.

To script a SELECT * FROM … command you will have to escape the * parameter.

DBTools –u <username> -p <password> -s SQL SELECT \\* FROM FBNK_CURRENCY

Silent mode: No execution report

When you pass the -silent parameter in script mode, command gets executed without generating any output.

DBTools -u <username> –p <password> -s -silent COMMAND

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:14:11 PM IST