NLS_LANG setting for JDBC thin driver?

后端 未结 5 878
死守一世寂寞
死守一世寂寞 2020-11-29 05:22

I am using the thin Oracle JDBC driver ver 10.2.0 (ojdbc14.jar). I would like to configure its NLS_LANG setting manually. Is there a way?

Currently it fetches this s

5条回答
  •  醉梦人生
    2020-11-29 05:50

    The NLS_LANG settings are derived from the java.util.Locale . Therefore, you will need to make a call similar to this before connecting:

    Locale.setDefault(Locale.);
    

提交回复
热议问题