<?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 How to find the free space in a tablespace in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571924#M857551</link>
    <description>Hello :&lt;BR /&gt;&lt;BR /&gt;Using sql scripts, how can I find the free space and occupied space in bytes (or MB) in a tablespace (NOT the extents free and used)? I would appreciate any pointers to this.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vinu&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Aug 2001 10:16:32 GMT</pubDate>
    <dc:creator>Vinu Neelakandhan</dc:creator>
    <dc:date>2001-08-29T10:16:32Z</dc:date>
    <item>
      <title>How to find the free space in a tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571924#M857551</link>
      <description>Hello :&lt;BR /&gt;&lt;BR /&gt;Using sql scripts, how can I find the free space and occupied space in bytes (or MB) in a tablespace (NOT the extents free and used)? I would appreciate any pointers to this.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vinu&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 10:16:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571924#M857551</guid>
      <dc:creator>Vinu Neelakandhan</dc:creator>
      <dc:date>2001-08-29T10:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the free space in a tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571925#M857552</link>
      <description>Hi,&lt;BR /&gt;on one side you have unallocated extents in your tablespace which can be used for anything you want (ref. dba_free_space).&lt;BR /&gt;&lt;BR /&gt;On the other side you have tables with extents allocated which are filled up or still free.  Compute statistics for the table and check empty_blocks in user_tables (or dba_tables).&lt;BR /&gt;&lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
      <pubDate>Wed, 29 Aug 2001 10:41:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571925#M857552</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-08-29T10:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the free space in a tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571926#M857553</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;SELECT f.tablespace_name, SUM(f.bytes)/(1024*1024) "Free (MB)",&lt;BR /&gt;Total_MB&lt;BR /&gt;FROM sys.dba_free_space f, &lt;BR /&gt;(select TABLESPACE_NAME, sum(BYTES)/(1024*1024) Total_MB&lt;BR /&gt;from dba_data_files &lt;BR /&gt;group by TABLESPACE_NAME&lt;BR /&gt;) d&lt;BR /&gt;where f.tablespace_name=d.tablespace_name&lt;BR /&gt;GROUP BY f.tablespace_name, d.Total_MB</description>
      <pubDate>Wed, 29 Aug 2001 14:22:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571926#M857553</guid>
      <dc:creator>Kaido</dc:creator>
      <dc:date>2001-08-29T14:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the free space in a tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571927#M857554</link>
      <description>You will also want to watch out for fragmentation on the tablespace.  This can lead to a high free space value, but also a high number of extents.  You might want to consider running something like this to see if there is a high degree of fragmentation:&lt;BR /&gt;&lt;BR /&gt;select tablespace_name,count(bytes),sum(bytes) from dba_free_space group by tablespace_name;</description>
      <pubDate>Wed, 29 Aug 2001 18:48:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571927#M857554</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2001-08-29T18:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the free space in a tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571928#M857555</link>
      <description>Regarding the fragmentation issue, it is useful also to display the largest available chunk of freespace in each tablespace :&lt;BR /&gt;&lt;BR /&gt;select tablespace_name,&lt;BR /&gt;round(sum(bytes)/(1024*1024),1) free,&lt;BR /&gt;max(round(bytes/(1024*1024),1)) largest&lt;BR /&gt;from dba_free_space&lt;BR /&gt;group by tablespace_name&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 08:56:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571928#M857555</guid>
      <dc:creator>Simeon Fox</dc:creator>
      <dc:date>2001-08-30T08:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the free space in a tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571929#M857556</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;My first select was more or less like statistical select, &lt;BR /&gt;but if we talking about fragmentation then you &lt;BR /&gt;must check your db extents also: &lt;BR /&gt;select owner,segment_name, next_extent, s.tablespace_name,max_free_bytes&lt;BR /&gt;  from sys.dba_segments s,&lt;BR /&gt;       (select tablespace_name,max(bytes) max_free_bytes&lt;BR /&gt;          from sys.dba_free_space&lt;BR /&gt;         group by tablespace_name) f&lt;BR /&gt; where s.next_extent &amp;gt; f.max_free_bytes&lt;BR /&gt;   and s.tablespace_name=f.tablespace_name &lt;BR /&gt;&lt;BR /&gt;If you receive any rows then trouble is waiting for you. &lt;BR /&gt;Could be next help you: &lt;BR /&gt;&lt;BR /&gt;alter tablespace tablespace_name coalesce&lt;BR /&gt;&lt;BR /&gt;tablespace_name is the same what you receive before.</description>
      <pubDate>Fri, 31 Aug 2001 07:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-find-the-free-space-in-a-tablespace/m-p/2571929#M857556</guid>
      <dc:creator>Kaido</dc:creator>
      <dc:date>2001-08-31T07:16:39Z</dc:date>
    </item>
  </channel>
</rss>

