ORA-24960: the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255
gcc版本高于5.0时,使用occi会报错:ORA-24960: the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255
在代码第一行,增加
#define _GLIBCXX_USE_CXX11_ABI 0