是否可以設置TENACITY & SLEEP for TERADATA通過JAVA JDBC調用FASTLOADCSV?
我的JDBC連接字符串是
jdbc:teradata://99.99.99.99/TMODE=ANSI,CHARSET=UTF8,TYPE=FASTLOADCSV,LOG=INFO,SESSIONS=1
可以執行FASTLOAD腳本時設置這些選項如下所示: -
使用Teradata jdbc驅動程序設置FASTLOADCSV Tenacity&Sleep
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當這些選項SBE集?
這就是我所擔心的。我們看;可能發生:com.teradata.jdbc.jdbc_4.util.JDBCException:[Teradata JDBC驅動程序] [TeraJDBC 14.00.00.21] [錯誤1384] [SQLState HY000]在 itializing FastLoad中發生故障,然後我們得到[Error 1383] [ SQLState HY000]在爲目標數據庫表創建FastLoad資源時發生了 異常鏈中的下一個故障。發現了882個AMP並創建了0個連接和0個PreparedStatement(s),其中 SESSIONS = 1,但創建的所有FastLoad資源現在都已關閉。 – Hector
然後我們收到; [錯誤2633] [SQLState HY000]正在運行的加載/卸載任務太多:稍後再試 – Hector