<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Invalid views in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843976#M826008</link>
    <description>Just because the views are invalid doesn't meant that they're not used, have you tried recompiling them?&lt;BR /&gt;&lt;BR /&gt;You can use a rows=n export to secure the views (among other things), running an import will recreate them for you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
    <pubDate>Wed, 13 Nov 2002 15:06:54 GMT</pubDate>
    <dc:creator>John Palmer</dc:creator>
    <dc:date>2002-11-13T15:06:54Z</dc:date>
    <item>
      <title>Invalid views</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843975#M826007</link>
      <description>Hi again,&lt;BR /&gt;i have a production DB 8.1.6.0 that have a lot of invalid views. I want to "clean" the db. I'd like to remove the views, but before doing this, i want to backup them to prevent possible problems. This is a very critical db. However i have a replica of it on another db less critical, so i can try there.&lt;BR /&gt;So, steps to follow will be:&lt;BR /&gt;- backup invalid views (about 300)&lt;BR /&gt;- remove views&lt;BR /&gt;- test if everything works&lt;BR /&gt;- restore views (2 see if backup is ok)&lt;BR /&gt;- remove all again and do it on production db&lt;BR /&gt;How can these steps be done technically?&lt;BR /&gt;Thanks....&lt;BR /&gt;Tarek</description>
      <pubDate>Wed, 13 Nov 2002 14:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843975#M826007</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-11-13T14:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid views</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843976#M826008</link>
      <description>Just because the views are invalid doesn't meant that they're not used, have you tried recompiling them?&lt;BR /&gt;&lt;BR /&gt;You can use a rows=n export to secure the views (among other things), running an import will recreate them for you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Wed, 13 Nov 2002 15:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843976#M826008</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-11-13T15:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid views</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843977#M826009</link>
      <description>I have exported all objects of the user that owns the invalid views and imported them in the replica environment and also here they result invalid.&lt;BR /&gt;If they're invalid i don't think they're used, but because i'm not sure i want to backup them and try to remove and see what happens.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Nov 2002 15:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843977#M826009</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-11-13T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid views</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843978#M826010</link>
      <description>I'd still try to compile them.&lt;BR /&gt;&lt;BR /&gt;In sqlplus:&lt;BR /&gt;set head off&lt;BR /&gt;set feed off&lt;BR /&gt;spool xxx.sql&lt;BR /&gt;select 'alter view '||view_name|| ' compile;' from user_objects where object_type = 'VIEW' and status = 'INVALID';&lt;BR /&gt;spool off&lt;BR /&gt;@xxx.sql&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Wed, 13 Nov 2002 16:06:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843978#M826010</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-11-13T16:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid views</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843979#M826011</link>
      <description>You need to find out why they are invalid.&lt;BR /&gt;ALTER VIEW &lt;VIEWNAME&gt; COMPILE ;&lt;BR /&gt;and then see what errors you get - most likely a referenced table has been dropped or changed.&lt;BR /&gt;&lt;BR /&gt;If you are determined to drop the views I attach a script which will extract a view to a file. Param 1 is the uppercase viewname, in 'single quotes'; optional param2 is the file name.&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;-- Graham&lt;/VIEWNAME&gt;</description>
      <pubDate>Thu, 14 Nov 2002 09:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843979#M826011</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2002-11-14T09:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid views</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843980#M826012</link>
      <description>I tried to compile some of them with this statement:&lt;BR /&gt;alter view view_name compile;&lt;BR /&gt;i get &lt;BR /&gt;Warning: View altered with compilation errors.&lt;BR /&gt;And the status is still invalid.&lt;BR /&gt;But i don't know what these views does</description>
      <pubDate>Tue, 26 Nov 2002 11:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843980#M826012</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-11-26T11:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid views</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843981#M826013</link>
      <description>You should be able to find the query that makes up the view in the SYS.ALL_VIEWS table.  Based on that you can determine what it does.&lt;BR /&gt;&lt;BR /&gt;Try using the command 'SHOW ERRORS' immediately after the failed compile to find out what is broken. &lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2002 17:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invalid-views/m-p/2843981#M826013</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2002-11-26T17:36:13Z</dc:date>
    </item>
  </channel>
</rss>

