Purpose
The query command queries the database to output a list of databases and tables. Use the list as a template for the create command.
Parameters
See Parameter Order.
- broker.port
- [Optional] You may enter a broker port to overwrite the default value specified in the commandline.properties file in order to connect to a different ActiveMQ server (and therefore a different daemon) at runtime.
- broker.url
- [Optional] You may enter a broker URL to overwrite the default value specified in the commandline.properties file in order to connect to a different ActiveMQ server (and therefore a different daemon) at runtime.
- database
- [Optional] Database to be queried.
- dir
- [Optional] Output directory for the object list. A directory will be created if one does not exist.
- object_list
- [Optional] Output file name for the object list. Existing file name will be overwritten.
- source_account_id
- [Optional] Logon account ID for source database.
- source_logon_mechanism
- [Optional] Logon mechanism for source system. To log on to a source Teradata Database system, the user must provide at least one of the following:
- source_user and source_password
- source_logon_mechanism
Logon mechanisms are not supported for Teradata ARC jobs. Use logon mechanisms only for Teradata PT API and Teradata JDBC jobs. If -source_logon_mechanism is specified and -force_utility is not used, Teradata PT API is used by default. Specifying -source_logon_mechanism with Teradata ARC specified for -force_utility results in an error.
- source_logon_mechanism_data
- [Optional] Additional parameters that are needed for the source system's logon mechanism.
- source_password
- [Optional] Source Teradata logon password.
- source_password_encrypted
- [Optional] Source Teradata encrypted logon password.
- source_tdpid
- Source Teradata Database.
- source_user
- [Optional] Source Teradata logon id.
XML File Example
For the query command, type datamove query -f parameters.xml.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <dmQuery xmlns="http://schemas.teradata.com/dataMover/v2009" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.teradata.com/unity/datamover.xsd"> <!-- source_tdpid Floyd, Source Teradata database --> <source_tdpid>floyd</source_tdpid> <!-- source_user dmguest, Floyd, Source Teradata log on id --> <source_user>dmguest</source_user> <!-- source_password please, (optional)Source Teradata log on password --> <source_password>please</source_password> <object_list>queryoutput.xml</object_list> </dmQuery>