How to change default nls_date_format for oracle jdbc client

前端 未结 2 921
有刺的猬
有刺的猬 2020-12-03 18:08

I have defined the global nls_date_format on Oracle 10.2 XE as follows:

alter system set nls_date_format=\'YYYY-MM-DD HH24:MI:SS\' scope=spfile;
相关标签:
2条回答
  • 2020-12-03 18:32

    Thanks, that worked for me. The trigger that I inserted is this:

    CREATE OR REPLACE TRIGGER LOGINTRG
    AFTER LOGON ON DATABASE
    BEGIN
    EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT=''YYYY-MM-DD HH24:MI:SS''';
    END LOGINTRG;
    
    0 讨论(0)
  • 2020-12-03 18:48

    Set nls date format in an after logon trigger

    0 讨论(0)
提交回复
热议问题