i want to ensure that every time i logon the date format is changed from '24-Apr-2014'
to '24/04/2014'
For that I created a pl/sql trigger as follows
CREATE OR REPLACE TRIGGER CHANGE_DATE_FORMAT
AFTER LOGON ON DATABASE
BEGIN
ALTER SESSION SET NLS_DATE_FORMAT = 'MM/DD/YYYY';
END;
/
However i am not logged on as sysdba so perhaps thats why i get the error
SQL> @C:/pl/dateTrigger.sql AFTER LOGON ON DATABASE * ERROR at line 2: ORA-01031: insufficient privileges
What can i do to ensure that date format is changed permanently?