DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: invalid view

  1. #1
    Join Date
    Mar 2001
    Posts
    78
    What is the syntax that would make an invalid view valid?

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    alter view view_name compile;
    Jeff Hunter

  3. #3
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    511
    If the view is invalidated due to a database change in the underlying table, for example this can happen if one of the columns in the table that is referred in the view has been removed, then use CREATE OR REPLACE VIEW command to re-create the view.

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Not that you HAVE to re-load from source. If the source is the same, you can just re-compile it. Also, if the source in the database is still valid, Oracle will automatically recompile it the next time you try to access it...
    Jeff Hunter

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