<?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: Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710019#M904111</link>
    <description>More useful scripts.  Thanks a bunch...&lt;BR /&gt;&lt;BR /&gt;jack...</description>
    <pubDate>Fri, 26 Apr 2002 13:09:05 GMT</pubDate>
    <dc:creator>Jack C. Mahaffey</dc:creator>
    <dc:date>2002-04-26T13:09:05Z</dc:date>
    <item>
      <title>Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710012#M904104</link>
      <description>I was hoping someone would have a sql script that will list objects that cannot extend due to insufficient datafile/tablespace size.  &lt;BR /&gt;&lt;BR /&gt;I'm not looking for something that checks that extents = max_extents in dba_segments.&lt;BR /&gt;&lt;BR /&gt;I want to be able to catch potential problems when indexes or tables cannot extend because there isn't sufficient space.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 12:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710012#M904104</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-04-24T12:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710013#M904105</link>
      <description>Hi there.&lt;BR /&gt;First try this for free space in tablespace :&lt;BR /&gt;---------------------------------------&lt;BR /&gt;set termout off&lt;BR /&gt;set feedback off&lt;BR /&gt;set pages 65&lt;BR /&gt;set lines 60&lt;BR /&gt;ttitle " Free space report "&lt;BR /&gt;column "TS Name" format a20&lt;BR /&gt;column "Sum MB" format 99999.99&lt;BR /&gt;column "Max MB" format 99999.99&lt;BR /&gt;spool /var/tmp/free1&amp;amp;&amp;amp;2..lst.&amp;amp;&amp;amp;1&lt;BR /&gt;select tablespace_name "TS Name",&lt;BR /&gt;        sum(bytes) / 1048576  "Sum MB",&lt;BR /&gt;        max(bytes) / 1048576  "Max MB"&lt;BR /&gt;from sys.dba_free_space&lt;BR /&gt;group by tablespace_name&lt;BR /&gt;;&lt;BR /&gt;spool off&lt;BR /&gt;set termout on&lt;BR /&gt;set feedback on&lt;BR /&gt;exit&lt;BR /&gt;----------------------------------------&lt;BR /&gt;&lt;BR /&gt;for extents check this one :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;set heading on&lt;BR /&gt;set newpage 0&lt;BR /&gt;set pages 69&lt;BR /&gt;set feed off&lt;BR /&gt;set linesize 78&lt;BR /&gt;set verify off&lt;BR /&gt;&lt;BR /&gt;column owner format a10&lt;BR /&gt;column tspaces format a7&lt;BR /&gt;column object format a32&lt;BR /&gt;column type format a5&lt;BR /&gt;REM +=======================================================================+&lt;BR /&gt;REM next column set to 9999 from 99&lt;BR /&gt;REM A. Ermes May 15th 2000&lt;BR /&gt;REM +=======================================================================+&lt;BR /&gt;column extents format 9999&lt;BR /&gt;column maxexts format 9999&lt;BR /&gt;&lt;BR /&gt;break on owner skip 1 on tspaces skip 1&lt;BR /&gt;&lt;BR /&gt;ttitle 'Objects with Extents Allocated Close to Maxextents'&lt;BR /&gt;&lt;BR /&gt;select owner, tablespace_name tspaces, segment_name object,&lt;BR /&gt;  segment_type type, extents, max_extents maxexts&lt;BR /&gt;from dba_segments&lt;BR /&gt;where segment_type in ('INDEX','TABLE')&lt;BR /&gt;and max_extents - extents &amp;lt; &amp;amp;&amp;amp;1&lt;BR /&gt;and segment_name != 'SPACES'&lt;BR /&gt;order by owner, tablespace_name, segment_name;&lt;BR /&gt;&lt;BR /&gt;EXIT&lt;BR /&gt;&lt;BR /&gt;------------------&lt;BR /&gt;Hope these hints can help&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 13:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710013#M904105</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2002-04-24T13:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710014#M904106</link>
      <description>Hi,&lt;BR /&gt;this might need formatting:&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; select a.tablespace_name, a.MAXF as MAXFREE, b.MAXS as MAXSIZE&lt;BR /&gt;     2&amp;gt; from &lt;BR /&gt;     3&amp;gt; ( select tablespace_name, max(bytes) as MAXF &lt;BR /&gt;     4&amp;gt;     from dba_free_space group by tablespace_name ) a,&lt;BR /&gt;     5&amp;gt; ( select tablespace_name, max(NEXT_EXTENT) as MAXS &lt;BR /&gt;     6&amp;gt;     from dba_segments group by tablespace_name ) b&lt;BR /&gt;     7&amp;gt; &lt;BR /&gt;     8&amp;gt; where &lt;BR /&gt;     9&amp;gt;   a.tablespace_name = b.tablespace_name&lt;BR /&gt;    10&amp;gt; and&lt;BR /&gt;    11&amp;gt;   a.maxf &amp;lt; b.maxs;&lt;BR /&gt;&lt;BR /&gt;TABLESPACE_NAME                MAXFREE    MAXSIZE   &lt;BR /&gt;------------------------------ ---------- ----------&lt;BR /&gt;PSAPSOURCED                      10313728   10485760&lt;BR /&gt;1 row selected.&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; -- Which segment is it (quite expensive)&lt;BR /&gt;SVRMGR&amp;gt; select c.tablespace_name, c.segment_name, c.bytes, c.next_extent &lt;BR /&gt;     2&amp;gt; from dba_segments c,&lt;BR /&gt;     3&amp;gt; ( &lt;BR /&gt;     4&amp;gt; select a.tablespace_name, a.MAXF as MAXFREE, b.MAXS as MAXSIZE&lt;BR /&gt;     5&amp;gt; from &lt;BR /&gt;     6&amp;gt; ( select tablespace_name, max(bytes) as MAXF &lt;BR /&gt;     7&amp;gt;     from dba_free_space group by tablespace_name ) a,&lt;BR /&gt;     8&amp;gt; ( select tablespace_name, max(NEXT_EXTENT) as MAXS &lt;BR /&gt;     9&amp;gt;     from dba_segments group by tablespace_name ) b&lt;BR /&gt;    10&amp;gt; where &lt;BR /&gt;    11&amp;gt;   a.tablespace_name = b.tablespace_name&lt;BR /&gt;    12&amp;gt; and&lt;BR /&gt;    13&amp;gt;   a.maxf &amp;lt; b.maxs&lt;BR /&gt;    14&amp;gt; ) d&lt;BR /&gt;    15&amp;gt; &lt;BR /&gt;    16&amp;gt; where c.tablespace_name = d.tablespace_name&lt;BR /&gt;    17&amp;gt;   and c.next_extent = d.maxsize;&lt;BR /&gt;TABLESPACE_NAME      SEGMENT_NAME                 BYTES      NEXT_EXTEN&lt;BR /&gt;-------------------- ---------------------------- ---------- ----------&lt;BR /&gt;PSAPSOURCED          CROSS                          54558720   10485760&lt;BR /&gt;PSAPSOURCED          EUINFOLI                          16384   10485760&lt;BR /&gt;PSAPSOURCED          EUF4VALUES                        24576   10485760&lt;BR /&gt;3 rows selected.&lt;BR /&gt;&lt;BR /&gt;Volker&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2002 14:46:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710014#M904106</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-04-24T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710015#M904107</link>
      <description>yes, this needs formatting....&lt;BR /&gt;get attachment with notepad for monospaced layout&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 24 Apr 2002 14:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710015#M904107</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-04-24T14:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710016#M904108</link>
      <description>First set of SQL examples will be useful when increasing the tablespaces.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think the second set of examples fit my needs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks... jack...</description>
      <pubDate>Wed, 24 Apr 2002 15:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710016#M904108</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-04-24T15:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710017#M904109</link>
      <description>You could try this one.   All you need is the select statement.&lt;BR /&gt;&lt;BR /&gt;set serveroutput on&lt;BR /&gt;set pagesize 60&lt;BR /&gt;set linesize 130&lt;BR /&gt;DECLARE&lt;BR /&gt; namedb  VARCHAR2(50) := '';&lt;BR /&gt;BEGIN&lt;BR /&gt; select name into namedb from v$database;&lt;BR /&gt; dbms_output.put_line(namedb);&lt;BR /&gt; dbms_output.put_line('________');&lt;BR /&gt; FOR large IN (SELECT owner, bytes, extents, max_extents, segment_name&lt;BR /&gt;         FROM dba_segments&lt;BR /&gt;         WHERE extents &amp;gt;= trunc(max_extents * 0.8))&lt;BR /&gt; LOOP&lt;BR /&gt;  dbms_output.put_line(&lt;BR /&gt;    large.owner||'   '||&lt;BR /&gt;    large.bytes||'   '||&lt;BR /&gt;    large.extents||'   '||&lt;BR /&gt;    large.max_extents||'   '||&lt;BR /&gt;    large.segment_name);&lt;BR /&gt; END LOOP;&lt;BR /&gt;END;&lt;BR /&gt;/&lt;BR /&gt;EXIT&lt;BR /&gt;/&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2002 07:26:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710017#M904109</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2002-04-26T07:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710018#M904110</link>
      <description>Hi&lt;BR /&gt;I have added a sql script that will exactly show the information you want to look for (Hopefully)&lt;BR /&gt;&lt;BR /&gt;To run it logon to sqlplus as&lt;BR /&gt;db administrator ( you need db admin rights to get the information)&lt;BR /&gt;on the sqlplus prompt run the scruipt by typing @db_monitor.sql&lt;BR /&gt;or use any other tool where you can copy the script into it and run it &lt;BR /&gt;&lt;BR /&gt;This script has been made for application managers of a n application that uses ORACLE as db engineand where the application managers not personally maintains ORACLE&lt;BR /&gt;&lt;BR /&gt;Cheers Reinhar</description>
      <pubDate>Fri, 26 Apr 2002 10:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710018#M904110</guid>
      <dc:creator>Reinhard Burger</dc:creator>
      <dc:date>2002-04-26T10:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Oracle sql  that will list objects that cannot extend due to ftablespace size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710019#M904111</link>
      <description>More useful scripts.  Thanks a bunch...&lt;BR /&gt;&lt;BR /&gt;jack...</description>
      <pubDate>Fri, 26 Apr 2002 13:09:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-oracle-sql-that-will-list-objects-that-cannot-extend/m-p/2710019#M904111</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-04-26T13:09:05Z</dc:date>
    </item>
  </channel>
</rss>

