java - 使用 Teradata jdbc 驱动程序设置 FASTLOADCSV Tenacity 和 Sleep

标签 java jdbc teradata

是否可以为通过 JAVA JDBC 进行的 TERADATA FASTLOADCSV 调用设置 TENACITY 和 SLEEP?
我的 jdbc 连接字符串是
<br/> jdbc:teradata://99.99.99.99/TMODE=ANSI,CHARSET=UTF8,TYPE=FASTLOADCSV,LOG=INFO,SESSIONS=1
您可以在执行 FASTLOAD 脚本时设置这些选项,如下所示:- <br/> By default the Tenacity feature is not turned on. The feature is turned on by the script command: Tenacity n;

<p>Where n specifies the number of hours FastLoad continues trying to logon. The n specification must be greater than zero. If zero is entered, Teradata FastLoad responds with an error message and terminates. During the Tenacity duration, FastLoad tries to log on every 6 minutes by default. The 6 minute default can be changed by using the script command: Sleep m;</p> <p>Where m specifies the number of minutes Teradata FastLoad sleeps before retrying the logon operation. The m specification must be greater than zero. If zero is entered, Teradata FastLoad responds with an error message, and terminates.</p> <p>Below is an example of Tenacity usage. Suppose the commands in the script are: Tenacity 1;</p> <p>Sleep 15;</p>

The Tenacity duration is 60 minutes and the Sleep interval is 15 minutes.

通过 jdbc 执行 FASTLOADCSV 时可以设置这些选项吗?

最佳答案

我认为这些选项不存在,因为 FASTLOADCSV 与 FastLoad 不同,它只是使用低级别的 FastLoad 协议(protocol)。

您可能必须在程序中实现 sleep 和坚韧逻辑,在连接时检查 2633(?) 错误。

关于java - 使用 Teradata jdbc 驱动程序设置 FASTLOADCSV Tenacity 和 Sleep,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19160968/

相关文章:

Java Generics - 抽象类抽象函数覆盖

java - 带有 Spring IOC 的推土机映射器单例实例

java - 在java中计算夏普比率

java - 如何从tomcat的context.xml中传递加密相关属性以用于java中的jdbc连接?

java - 在 Windows 中的 Netbeans/Glassfish 上哪里添加 jdbc 驱动程序?

sql - 错误 : String contains an untranslatable character - TERADATA (for REGEXP_REPLACE operation)

java - Java应用服务器线程池配置

JavaPreparedStatement,当batchExecute没有任何参数时会发生什么?

hadoop - 为什么从 Teradata 迁移到 Hadoop

linux - 在 Linux 上运行 teradata 查询