如下所有操作需要使用root登录到TD数据库节点操作
1.获取数据库当前默认配置
//使用root登录TD数据库节点
cd /opt/teradata/tdat/tdbms/xx.xx.xx.xx/bin //xx.xx.xx.xx为数据库版本号
tdlocaledef -reverse current -source /tmp/tdlocaledef_14.txt
2.修改如下配置
vi /tmp/tdlocaledef_14.txt DATE {"YY/MM/DD"} 改为 DATE {"YY-MM-DD"}
3.导入最新配置文件(上一步中修改完毕文件)
tdlocaledef -input /tmp/tdlocaledef_14.txt -output new
4.重启数据库
tpareset -f change date
psh pdestate //查看数据库状态,为running则启动成功