We are sending data in the format “27-Oct-22 03.48.33.000000427 PM Asia/Singapore” via hibernate query to oracle Database and column receiving this data in db is of data type “TIMESTAMP(0) WITH TIME ZONE”. This is working fine in RHEL7 server S1 and same code is not working in S2 server and resulting in an error "ORA-01830: date format picture ends before converting entire input string". The parameters set in both servers are same and code is also same but still when we fail over to S2 sever we are facing this issue. On debugging at oracle end we have identified conversion of below functions might be an issue. select to_timestamp_tz('28-Oct-22 04.12.38.000000850 PM Asia/Singapore','DD-MON-RR HH24.MI.SSXFF TZR') from dual; Output: ORA-01830: date format picture ends before converting entire input string select to_timestamp_tz('28-Oct-22 04.12.38.000000850 PM Asia/Singapore','DD-MON-RR HH.MI.SSXFF PM TZR') from dual; Output: TO_TIMESTAMP_TZ('28-OCT-2204.12.38.000000850PMASIA/SINGAPORE','DD-MON-RRHH. 28-OCT-22 04.12.38.000000850 PM ASIA/SINGAPORE Any pointers as why this might be happening |