Release : 15.9.1, 15.9.3
Component : PMO Content Add-in
Clarity requires NLS_DATE_FORMAT be set to
nls_date_format = 'YYYY-MM-DD HH24:MI:SS'
One way to do this is to set it at a system level:
alter system set nls_date_format = 'YYYY-MM-DD HH24:MI:SS' scope=spfile;
Another would be to create a login trigger for that user:
-- This script is provided for illustration purposes only. Please work with your DBA on the appropriate solution
CREATE OR REPLACE TRIGGER set_nls_date_format AFTER LOGON ON DATABASE
DECLARE
username VARCHAR2(30);
cmmd VARCHAR2(64);
BEGIN
cmmd:='ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'';
username:=SYS_CONTEXT('USERENV','SESSION_USER');
IF username LIKE 'PPM_OWNER%' then
EXECUTE IMMEDIATE cmmd;
EXECUTE IMMEDIATE cmmd2;
END IF;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
/
However, most of our customers set this at a system level.
select sysdate from dual;