设置FASTLOADCSV韧性&使用Teradata jdbc驱动程序休眠

时间:2013-10-03 13:48:57

标签: java jdbc teradata

是否可以设置TENACITY&通过JAVA JDBC进行TERADATA FASTLOADCSV调用的休眠?
我的jdbc连接字符串是

jdbc:teradata://99.99.99.99/TMODE=ANSI,CHARSET=UTF8,TYPE=FASTLOADCSV,LOG=INFO,SESSIONS=1

您可以在执行FASTLOAD脚本时设置这些选项,如下所示: -
By default the Tenacity feature is not turned on. The feature is turned on by the script command: Tenacity n;

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;

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.

Below is an example of Tenacity usage. Suppose the commands in the script are: Tenacity 1;

Sleep 15;

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

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

1 个答案:

答案 0 :(得分:1)

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

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