oracle - Error ORA-01821 "date format not recognized" -


i trying alter session date format "yyyy-mm-dd hh:mi:ss:ff6"

alter session set nls_date_format = 'yyyy-mm-dd hh:mi:ss:ff6' 

is i'm trying use , it's giving me error ora-01821 "date format not recognized".

what doing wrong?

the oracle date type has second-level precision (as opposed to, say, microsecond-level precision), date formats don't support ff notation. if want microseconds appended, can write:

alter session set nls_date_format = 'yyyy-mm-dd hh:mi:ss:"000000"'; 

alternatively, maybe wanted set default timestamp format? if so:

alter session set nls_timestamp_format = 'yyyy-mm-dd hh:mi:ss:ff6'; 

Comments

Popular posts from this blog

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -

php - Autoloader issue not returning Class -