<?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: How can we release the unused allocated blocks to the openvms file ? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987653#M77908</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks all of you for your replies.&lt;BR /&gt;&lt;BR /&gt;today we had some problems with our oracle database and we were getting "ORA-1562 Unable to extend roll back segments Error"&lt;BR /&gt;&lt;BR /&gt;So DBA tried to increase the size roll back segments size. But it dont help. finally we had shutdown and restart the database.&lt;BR /&gt;&lt;BR /&gt;Then DBA reverted back the changes - set the old file size for roll back segments.&lt;BR /&gt;&lt;BR /&gt;So now DBA can see the size is less now.&lt;BR /&gt;&lt;BR /&gt;But the free space is not released yet.&lt;BR /&gt;&lt;BR /&gt;I already tried after we shutdown the database one more time and i checked for&lt;BR /&gt;&lt;BR /&gt;show dev dkc2 /file&lt;BR /&gt;&lt;BR /&gt;but no process was using the file.&lt;BR /&gt;&lt;BR /&gt;SO i think the only option left out is as HEIN said, we have to try to create new roll back segment file and delete the existing one.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Raj</description>
    <pubDate>Tue, 27 Jun 2006 15:33:24 GMT</pubDate>
    <dc:creator>Chinraj Rajasekaran</dc:creator>
    <dc:date>2006-06-27T15:33:24Z</dc:date>
    <item>
      <title>How can we release the unused allocated blocks to the openvms file ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987647#M77902</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;we are running AlphaServer 4100 5/400 4MB running OpenVMS V7.1-2 clustering 2 alpha nodes with common storage.&lt;BR /&gt;&lt;BR /&gt;Currently we have problems with one of the oracle database rollback segment DBS file allocated with large unused blocks.&lt;BR /&gt;&lt;BR /&gt;***********&lt;BR /&gt;&lt;BR /&gt;TS_ROLLBACK.DBS;1     204800/1024012&lt;BR /&gt;&lt;BR /&gt;*******************&lt;BR /&gt;&lt;BR /&gt;i already tried &lt;BR /&gt;&lt;BR /&gt;*****************************&lt;BR /&gt;$ set file/trun TS_ROLLBACK.DBS&lt;BR /&gt;&lt;BR /&gt;%SET-E-READERR, error reading DKC2:[ORACLE.DB_P73LAB]TS_ROLLBACK.DBS;1&lt;BR /&gt;-SYSTEM-W-ACCONFLICT, file access conflict&lt;BR /&gt;**********************************&lt;BR /&gt;&lt;BR /&gt;we also tried with database complete shutdown but still i get the same error as above.&lt;BR /&gt;&lt;BR /&gt;how can we release the unused allocated blocks?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Raj</description>
      <pubDate>Tue, 27 Jun 2006 09:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987647#M77902</guid>
      <dc:creator>Chinraj Rajasekaran</dc:creator>
      <dc:date>2006-06-27T09:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can we release the unused allocated blocks to the openvms file ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987648#M77903</link>
      <description>If the file is not locked by another process the SET FILE/TRUNCATE should do it.&lt;BR /&gt;But I do not know why Oracle allocates such an amount of blocks, may be preformance reasons to avoid costly extension when needing the blocks.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Tue, 27 Jun 2006 09:40:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987648#M77903</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-06-27T09:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can we release the unused allocated blocks to the openvms file ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987649#M77904</link>
      <description>Hello Chinraj,&lt;BR /&gt;&lt;BR /&gt;Welcome to the HP OpenVMS ITRC forum&lt;BR /&gt;&lt;BR /&gt;I would STRONGLY recommend against manipulating Oracle controlled files outside Oracle.&lt;BR /&gt;&lt;BR /&gt;The EOF marker is a STRICTILY OPTIONAL piece of information. It may or might not be honored by Oracle.&lt;BR /&gt;&lt;BR /&gt;Someone told Oracle it could use those blocks, so don't go taking them away behind its back. Your first task is to talk to the DBA to find out how much space it believed to be needed.&lt;BR /&gt;&lt;BR /&gt;Now if it is indeed overallocated, then there is hope. Since this appears to be a ROLLBACK segment (Or a very silly/funny DBA), you can just tell Oracle to &lt;BR /&gt;- create a new rollback tablespace&lt;BR /&gt;- disable the rollback segments in the current tablespace&lt;BR /&gt;- DROP the whole oversized tablespace and delete the files.&lt;BR /&gt;(or change the INIT.ORA to select different automatic undo segments).&lt;BR /&gt;&lt;BR /&gt;Met vriendelijk groetjes,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2006 10:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987649#M77904</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-06-27T10:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can we release the unused allocated blocks to the openvms file ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987650#M77905</link>
      <description>SET FILE/TRUNC should work but appears something was accessing the file.&lt;BR /&gt;&lt;BR /&gt;SHOW DEV/FILES DKC2 will tell you which process has the file open (will have to do this on each node in the cluster).</description>
      <pubDate>Tue, 27 Jun 2006 10:19:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987650#M77905</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-06-27T10:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can we release the unused allocated blocks to the openvms file ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987651#M77906</link>
      <description>Raj,&lt;BR /&gt;&lt;BR /&gt;So long as the file is being accessed for write/append in some way, the EOF block is also not reliable information.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgs.com" target="_blank"&gt;http://www.rlgs.com&lt;/A&gt;</description>
      <pubDate>Tue, 27 Jun 2006 10:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987651#M77906</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-06-27T10:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can we release the unused allocated blocks to the openvms file ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987652#M77907</link>
      <description>On both systems run:&lt;BR /&gt;show dev/files DKC2:&lt;BR /&gt;&lt;BR /&gt;This will show you the processes that have the file locked so you can not access it.&lt;BR /&gt;Rarely will you see someone install this in memory and then the PID will be 000000.&lt;BR /&gt;&lt;BR /&gt;Since this looks like an Oracle database file I would suggest NOT making that change.  The oracle table is normally preallocated to a specific size.  Talk to your Orace Database Admin to get details on table size and requirements.</description>
      <pubDate>Tue, 27 Jun 2006 10:42:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987652#M77907</guid>
      <dc:creator>Peter Zeiszler</dc:creator>
      <dc:date>2006-06-27T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can we release the unused allocated blocks to the openvms file ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987653#M77908</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks all of you for your replies.&lt;BR /&gt;&lt;BR /&gt;today we had some problems with our oracle database and we were getting "ORA-1562 Unable to extend roll back segments Error"&lt;BR /&gt;&lt;BR /&gt;So DBA tried to increase the size roll back segments size. But it dont help. finally we had shutdown and restart the database.&lt;BR /&gt;&lt;BR /&gt;Then DBA reverted back the changes - set the old file size for roll back segments.&lt;BR /&gt;&lt;BR /&gt;So now DBA can see the size is less now.&lt;BR /&gt;&lt;BR /&gt;But the free space is not released yet.&lt;BR /&gt;&lt;BR /&gt;I already tried after we shutdown the database one more time and i checked for&lt;BR /&gt;&lt;BR /&gt;show dev dkc2 /file&lt;BR /&gt;&lt;BR /&gt;but no process was using the file.&lt;BR /&gt;&lt;BR /&gt;SO i think the only option left out is as HEIN said, we have to try to create new roll back segment file and delete the existing one.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Raj</description>
      <pubDate>Tue, 27 Jun 2006 15:33:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987653#M77908</guid>
      <dc:creator>Chinraj Rajasekaran</dc:creator>
      <dc:date>2006-06-27T15:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can we release the unused allocated blocks to the openvms file ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987654#M77909</link>
      <description>set file /trun worked just after reboot before database was started. Thanks all of your for your help.</description>
      <pubDate>Thu, 27 Jul 2006 04:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-can-we-release-the-unused-allocated-blocks-to-the-openvms/m-p/4987654#M77909</guid>
      <dc:creator>Chinraj Rajasekaran</dc:creator>
      <dc:date>2006-07-27T04:36:58Z</dc:date>
    </item>
  </channel>
</rss>

