Ora-01830
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Ora-01830

  1. #1
    Join Date
    Nov 2000
    Location
    Birmingham, UK
    Posts
    360

    Ora-01830

    I'm getting an ORA-01830 when running the follwoing SQL:


    CREATE SNAPSHOT mine2.mv_spacemi
    REFRESH COMPLETE
    AS
    SELECT /*+ USE_HASH(vw,fa)
    PARALLEL(fa,8)
    */
    vw.*
    , 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 9.2.0.4 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?

  2. #2
    Join Date
    Nov 2000
    Location
    Birmingham, UK
    Posts
    360
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width