I'm getting an ORA-01830 when running the follwoing SQL:
CREATE SNAPSHOT mine2.mv_spacemi
SELECT /*+ USE_HASH(vw,fa)
, decode(nvl(fa.parent_account_reference,0),0,0,1) as AWNLP
FROM vw_spacemi vw
, final_accounts fa
WHERE vw.ice_customer_id = fa.parent_ice_customer_id (+)
AND vw.account_reference = fa.parent_account_reference (+)
AND vw.key_type = fa.parent_key_type (+)
vw_spacemi is a synonym to a view on a remote DB - both DB's are 220.127.116.11 on HP-UX.
Both the local and remote DB's have the same NLS_DATE_FORMAT set and I'm struggling to work out why I'm getting this error. Any suggestions?
the NLS_DATE_FORMAT on both db's in DD-MON-RR (!) but the view defines its date columns with to_date(xxxx,'DD-MON-YYYY HH:24:MI') in the select query, so thats whats causing the problem. The snapshot gets dropped and re-created weekly so I guess one solution is to put an alter session set nls_date_format='DD-MON-YYYY HH:24:MI' in the top of the script that drops/re-creates it. Any other suggestions would be welcome!
Click Here to Expand Forum to Full Width