日期:2014-05-16  浏览次数:20447 次

teradata数据源配置

teradata数据源配置:
<Resource name="jdbc/myteradata" type="javax.sql.DataSource"
?driverClassName="com.ncr.teradata.TeraDriver"
?url="jdbc:teradata://10.168.3.139/bass15,CLIENT_CHARSET=cp936,TMODE=TERA,CHARSET=utf8,LOB_SUPPORT=off;"
?username="" password="" maxActive="10" maxIdle="1" />?

?protected final String driver = "com.ncr.teradata.TeraDriver";
//?protected final String url = "jdbc:teradata://10.168.3.139/AiStData,CLIENT_CHARSET=cp936,TMODE=TERA,CHARSET=utf8,LOB_SUPPORT=off";
?//以下数据源取出来直接就是正常的中文
?protected final String url = "jdbc:teradata://ynbass/CLIENT_CHARSET=EUC_CN,TMODE=TERA,CHARSET=ASCII";
?protected final String user = "username";
?protected final String password = "userpassword";