Table of Contents

Search

  1. Preface
  2. Command Line Programs and Utilities
  3. Installing and Configuring Command Line Utilities
  4. Using the Command Line Programs
  5. Environment Variables for Command Line Programs
  6. Using infacmd
  7. infacmd as Command Reference
  8. infacmd aud Command Reference
  9. Infacmd bg Command Reference
  10. infacmd cluster Command Reference
  11. infacmd cms Command Reference
  12. infacmd dis Command Reference
  13. Infacmd es Command Reference
  14. infacmd ihs Command Reference
  15. infacmd ipc Command Reference
  16. infacmd isp Command Reference
  17. infacmd ldm Command Reference
  18. infacmd mrs Command Reference
  19. infacmd ms Command Reference
  20. infacmd oie Command Reference
  21. infacmd ps Command Reference
  22. infacmd pwx Command Reference
  23. infacmd rms Command Reference
  24. infacmd rtm Command Reference
  25. infacmd sch Command Reference
  26. infacmd search Command Reference
  27. infacmd sql Command Reference
  28. infacmd tdm Command Reference
  29. infacmd wfs Command Reference
  30. infacmd ws Command Reference
  31. infacmd xrf Command Reference
  32. infacmd Control Files
  33. infasetup Command Reference
  34. pmcmd Command Reference
  35. pmrep Command Reference
  36. Working with pmrep Files

ExecuteSQL

ExecuteSQL

Runs SQL statements that access an SQL data service.
Run infacmd sql ExecuteSQL in interactive or non-interactive mode. When you run ExecuteSQL in interactive mode, you can enter SQL statements without writing a script. When you use the interactive mode, enter the connect string without the -Sql option. You can run subsequent SQL statements without entering the connection information for each statement.
The infacmd sql ExecuteSQL command uses the following syntax:
ExecuteSQL <-ConnectString|-cs> connection_string [<-Sql> sql_statement]
The following table describes infacmd sql ExecuteSQL options and arguments:
Option
Argument
Description
-ConnectString
-cs
connection_string
Required. Enter an SQL data service connect string with the following syntax:
jdbc:informatica:sqlds/ <optional security domain\> <optional user name>/ <optional user password>@ <domain host name>: <domain HTTP port>?dis= <Data Integration Service name>&sqlds= <runtime SQL data service name>
Optionally, add options in the following format:
... &<option_name>=<option_value>
The connect string has the following option and value:
SQLDataServiceOptions.disableResultSetCache=true
Disables result set caching for a SQL data service query when the SQL data service is configured to cache the result set.
-Sql
sql_statement
Optional. Enter an SQL statement if you do not want to run in interactive mode.


Updated April 22, 2019