<?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: system tablespace fragmentation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579087#M924124</link>
    <description>Thank you all very much. This is really really helpful.&lt;BR /&gt;&lt;BR /&gt;Andreas,&lt;BR /&gt;I found the SAFE white paper. FYI, it says in the article that the extent sizes 160k, 5120k, and 160m are recommended for version 7, and 128k, 4m, and 128k are recommended for verion 8. Thanks for your extra input.&lt;BR /&gt;&lt;BR /&gt;Tiffany</description>
    <pubDate>Tue, 18 Sep 2001 12:44:46 GMT</pubDate>
    <dc:creator>Tiffany Yu</dc:creator>
    <dc:date>2001-09-18T12:44:46Z</dc:date>
    <item>
      <title>system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579077#M924114</link>
      <description>I am using Oracle 8.1.6. One of the database's system tablespace has fragmentation problem. Does anybody has this experience before and tell how to defragment system tablespace? Please provide detailed steps. Thanks.</description>
      <pubDate>Thu, 13 Sep 2001 13:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579077#M924114</guid>
      <dc:creator>Tiffany Yu</dc:creator>
      <dc:date>2001-09-13T13:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579078#M924115</link>
      <description>First you have to verify which objects are fragmented. If the fragmented objects are owned by yourself, no problem, recreate them in another tablespace otherwise you have lost because you have to recreate your database.</description>
      <pubDate>Fri, 14 Sep 2001 03:21:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579078#M924115</guid>
      <dc:creator>Joachim DIESTEL</dc:creator>
      <dc:date>2001-09-14T03:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579079#M924116</link>
      <description>Hi there.&lt;BR /&gt;If you want to get rid of the fragmentation, you have to export your data, recreate the database and import the the data.&lt;BR /&gt;If you want to resize the objects for users SYS and SYSTEM, look at the file &lt;BR /&gt;/home/dba/oracle/product/${ORACLE_SID}/rdbms/admin/sql.bsq&lt;BR /&gt;.&lt;BR /&gt;If you run Oracle Applications, you should also check the adprepdb.sql script.&lt;BR /&gt;RGds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Sep 2001 04:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579079#M924116</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2001-09-14T04:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579080#M924117</link>
      <description>coalesce tablespace with&lt;BR /&gt;ALTER TABLESPACE tablespace COALESCE;&lt;BR /&gt;&lt;BR /&gt;To display statistics about coalesceable extents for tablespaces, you can view the&lt;BR /&gt;DBA_FREE_SPACE_COALESCED view.</description>
      <pubDate>Fri, 14 Sep 2001 06:01:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579080#M924117</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2001-09-14T06:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579081#M924118</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Defragmentation of tablespaces is done using export / import rutine (remember compress=n if you want to retain extend sizes)&lt;BR /&gt;&lt;BR /&gt;Unfortunately this is not possible with the system tablespace, here you have to recreate to database to get a fresh start.&lt;BR /&gt;&lt;BR /&gt;When working with fragmntation problems I would like to recomend Oracles SAFE Whitepaper&lt;BR /&gt;SAFE (Simple Algorithm for Fragmentation Elimination) is a seet of rules to apply during object creation (ie tablespace creation) that sets uniform extent size for your tablespaces, and yor defragmentation problems will be over.&lt;BR /&gt;&lt;BR /&gt;Second; from 8i of you have the possibility to create localy managed tablespaces (where datadictionary information is retained in the tablespaces itself instead of in the system tablespace) this feature is inplace due to the transportable tablespace feature of Oracle, but also includes an option that quite interesting and that is uniform allocation!&lt;BR /&gt;&lt;BR /&gt;Last I might mention that the Oracle Enterpise Manager also has a tool called Reorg Wizard. This does the reallocation of objects locally without export /import.&lt;BR /&gt;BUT this also does not support defragmentation of the system tablespace.&lt;BR /&gt;&lt;BR /&gt;So the end of it all is that you'll have to export your database, recreate it and to a full import.&lt;BR /&gt;And if you want to live a quiet life afterward, start looking into SAFE or the 8i localy managed tablespaces with the uniform allocation policy (wich infact is SAFE)&lt;BR /&gt;&lt;BR /&gt;Andreas</description>
      <pubDate>Fri, 14 Sep 2001 06:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579081#M924118</guid>
      <dc:creator>Andreas D. Skjervold</dc:creator>
      <dc:date>2001-09-14T06:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579082#M924119</link>
      <description>Hi Andreas,&lt;BR /&gt;Could you tell me where I can find the Oracle "SAFE" whitepaper?&lt;BR /&gt;Thanks,&lt;BR /&gt;Tiffany</description>
      <pubDate>Fri, 14 Sep 2001 15:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579082#M924119</guid>
      <dc:creator>Tiffany Yu</dc:creator>
      <dc:date>2001-09-14T15:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579083#M924120</link>
      <description>Alexander and Andreas,&lt;BR /&gt;&lt;BR /&gt;By recreating database, do you mean creating a brandnew empty database with a different instance name, then import the data to this new db?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tiffany</description>
      <pubDate>Fri, 14 Sep 2001 15:43:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579083#M924120</guid>
      <dc:creator>Tiffany Yu</dc:creator>
      <dc:date>2001-09-14T15:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579084#M924121</link>
      <description>If you are already getting oracle error pointing that it cannot extend one of oracle's system segments, I'd opt for allocating another datafile for system tablespace rather than perform export/import. &lt;BR /&gt;&lt;BR /&gt;Run something like the following while connected as SYS or SYSTEM or any user with DBA privileges:&lt;BR /&gt;alter tablespace system add datafile '...' size 128M;&lt;BR /&gt;&lt;BR /&gt;Export/Import can be time-consuming procedure for any but small-to-medium size databases. And normally size of system tablespace is a small percentage of a total database size.&lt;BR /&gt;&lt;BR /&gt;I'd check though what had caused the fragmentation otherwise even if you recreate the database pretty soon you will be back to where you have started. &lt;BR /&gt;Normally system tablespace will not get fragmented unless some users are using it as their temporary tablespace or created some tables/indexes in it (and dropped them later).&lt;BR /&gt;&lt;BR /&gt;I'd run the following:&lt;BR /&gt;1)&lt;BR /&gt;select owner, segment_name&lt;BR /&gt;from dba_segments&lt;BR /&gt;where tablespace_name = 'SYSTEM' and&lt;BR /&gt;owner not in ('SYS', 'SYSTEM',&lt;BR /&gt;'MDSYS', 'OUTLN', 'ORDSYS', &lt;BR /&gt;'AURORA$JIS$UTILITY', 'OSE$HTTP$ADMIN');&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;select username, default_tablespace,&lt;BR /&gt;temporary_tablespace &lt;BR /&gt;from dba_users&lt;BR /&gt;where &lt;BR /&gt;(default_tablespace = 'SYSTEM' or&lt;BR /&gt;temporary_tablespace = 'SYSTEM')&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;I normally switch temporary tablespace for all users (including sys and system) for TEMPORARY TABLESPACE other than system tablespace. &lt;BR /&gt;&lt;BR /&gt;Normally only accounts created by oracle install will have system tablespace as their default: SYS, SYSTEM, ORDSYS, MDSYS, AURORA$JIS$UTILITY, OSE$HTTP$ADMIN, DBSNMP etc.&lt;BR /&gt;&lt;BR /&gt;You can separate users that created during install from others by running:&lt;BR /&gt;select username, trunc(created)&lt;BR /&gt;from dba_users&lt;BR /&gt;order by 2&lt;BR /&gt;/&lt;BR /&gt;The ones created at the tablespace creation day will be listed first.&lt;BR /&gt;&lt;BR /&gt;You can change user's default or temporary tablespace by using:&lt;BR /&gt;alter user &lt;USERNAME&gt;&lt;BR /&gt;default tablespace &lt;NEW default="" tablespace=""&gt;&lt;BR /&gt;temporary tablespace &lt;NEW temp="" tablespace=""&gt;&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/NEW&gt;&lt;/NEW&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Fri, 14 Sep 2001 18:46:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579084#M924121</guid>
      <dc:creator>Roman_5</dc:creator>
      <dc:date>2001-09-14T18:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579085#M924122</link>
      <description>Hi&lt;BR /&gt;By export,recreating and importing I mean:&lt;BR /&gt;1. Do a full export (full=y compress=n)&lt;BR /&gt;2. Shutdown the database&lt;BR /&gt;3. Backup your databases datafiles (/u0?/oradata/&lt;SID&gt; mountpoints)&lt;BR /&gt;4. Scrap your datafiles&lt;BR /&gt;5. Create a new database with the SAME instance name.&lt;BR /&gt;6. Perform a full import with the dump file from 1. (use parameter commit=y to avoid rollback segment filling up)&lt;BR /&gt;&lt;BR /&gt;2. + 3. isnt nescessary but always a good precaution.&lt;BR /&gt;&lt;BR /&gt;The SAFE withepaper is infact not easy to find , at the moment all I have is a printout. I will gety back to you on this...&lt;BR /&gt;&lt;/SID&gt;</description>
      <pubDate>Sat, 15 Sep 2001 17:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579085#M924122</guid>
      <dc:creator>Andreas D. Skjervold</dc:creator>
      <dc:date>2001-09-15T17:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579086#M924123</link>
      <description>SAFE whitepaper:&lt;BR /&gt;&lt;A href="http://technet.oracle.com/deploy/availability/pdf/defrag.pdf" target="_blank"&gt;http://technet.oracle.com/deploy/availability/pdf/defrag.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Oracle says:&lt;BR /&gt;---&lt;BR /&gt;This document is no longer available in the metalink database for customers. &lt;BR /&gt;Please refer to Oracle8i performance tuning manual for issues regarding defragmentation. &lt;BR /&gt;---&lt;BR /&gt;!!!&lt;BR /&gt;&lt;BR /&gt;The new functionallity using UNIFORM allocation in tablespaces takes care of most issues regarding SAFE, the only thing you have to consider is the uniform extent size to use.&lt;BR /&gt;&lt;BR /&gt;In the whitepaper the values;160K, 5120K, or 160M is used, but to make things confusing there are 2 versions of this Whitepaper out there, one stating 160K, 5120 ans 160M sizes and another stating 128K, 4M and 128M to use.&lt;BR /&gt;&lt;BR /&gt;I use the latter, but the main point from a perfomance view to keep the number of extents under 1024 (this inspite the fact that there sin't any measurable degradation with several thousand extents!!)&lt;BR /&gt;&lt;BR /&gt;Andreas</description>
      <pubDate>Sat, 15 Sep 2001 18:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579086#M924123</guid>
      <dc:creator>Andreas D. Skjervold</dc:creator>
      <dc:date>2001-09-15T18:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: system tablespace fragmentation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579087#M924124</link>
      <description>Thank you all very much. This is really really helpful.&lt;BR /&gt;&lt;BR /&gt;Andreas,&lt;BR /&gt;I found the SAFE white paper. FYI, it says in the article that the extent sizes 160k, 5120k, and 160m are recommended for version 7, and 128k, 4m, and 128k are recommended for verion 8. Thanks for your extra input.&lt;BR /&gt;&lt;BR /&gt;Tiffany</description>
      <pubDate>Tue, 18 Sep 2001 12:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-tablespace-fragmentation/m-p/2579087#M924124</guid>
      <dc:creator>Tiffany Yu</dc:creator>
      <dc:date>2001-09-18T12:44:46Z</dc:date>
    </item>
  </channel>
</rss>

