<?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: Recreate the TOOLS Tablespace in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293902#M886201</link>
    <description>You can also do it this way (ensure no one is using the database before doing this):&lt;BR /&gt;&lt;BR /&gt;ALTER TABLESPACE "TOOLS" OFFLINE NORMAL;&lt;BR /&gt;ALTER TABLESPACE "TOOLS" ONLINE;&lt;BR /&gt;ALTER TABLESPACE "TOOLS" COALESCE;&lt;BR /&gt;ALTER DATABASE DATAFILE '/disc.../.../tools01.dbf' RESIZE 512M;</description>
    <pubDate>Thu, 03 Jun 2004 04:08:52 GMT</pubDate>
    <dc:creator>Eric Antunes</dc:creator>
    <dc:date>2004-06-03T04:08:52Z</dc:date>
    <item>
      <title>Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293894#M886193</link>
      <description>We have Oracle 8.1.7 on an HP-9000, 11.00 box.  Our TOOLS tablespace is over 1 GB in size, but only 13 MB is ever used.  I would like to resize it to a much smaller space but the 'ALTER DATBASE DATAFILE' command will not do it since there appears to be data beyond what I want to shrink it to.  Therefore, I would like to drop and recreate this tablespace.  What should I worry about when doing this?  Is it just a matter of:&lt;BR /&gt;- exporting the data;&lt;BR /&gt;- dropping the tablespace;&lt;BR /&gt;- recreating it with a smaller size;&lt;BR /&gt;- importing the data back in.&lt;BR /&gt;Can I do this when the database is on-line?  This is a test instance, but I don't want to knock anyone off if I don't have to.</description>
      <pubDate>Wed, 02 Jun 2004 10:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293894#M886193</guid>
      <dc:creator>Scott Buckingham</dc:creator>
      <dc:date>2004-06-02T10:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293895#M886194</link>
      <description>What is the tools tablespace is used for ?&lt;BR /&gt;(Perfstat ? other ...) any Application using it ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 02 Jun 2004 11:18:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293895#M886194</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-06-02T11:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293896#M886195</link>
      <description>Actually you can use the ALTER TABLE MOVE / ALTER INDEX REBUILD to move the tables to a different tablespace. &lt;BR /&gt;I suppose if you want to Keep TOOLS as the tablespace name you will have to run the operation twice !&lt;BR /&gt;&lt;BR /&gt;Check Metalink Note:147356.1&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 02 Jun 2004 11:26:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293896#M886195</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-06-02T11:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293897#M886196</link>
      <description>Actually, that is a good question, what IS the TOOLS tablespace for?  I only have one user accessing it, but it is the SYSTEM user.  That is why I'm questioning whether or not it can be deleted and recreated while on-line.  I really don't want to move anything, just rebuild it.</description>
      <pubDate>Wed, 02 Jun 2004 11:33:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293897#M886196</guid>
      <dc:creator>Scott Buckingham</dc:creator>
      <dc:date>2004-06-02T11:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293898#M886197</link>
      <description>The easiest way to do this is to decrease size of a datafile:&lt;BR /&gt;ALTER DATABASE vis DATAFILE '/oracledata/tool.dbf' RESIZE 900M;&lt;BR /&gt;&lt;BR /&gt;Or you may use 'ALTER TABLE MOVE' to move the tables on TOOLS to another tempory-create tablespace, then shrink it to the proper size,&lt;BR /&gt;finally, you can user 'ALTER TABLE MOVE' to move these tables back on TOOLS</description>
      <pubDate>Wed, 02 Jun 2004 11:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293898#M886197</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2004-06-02T11:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293899#M886198</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;With the exp/imp solution you must be sure that no update is processed during the tablesapce rebuild.&lt;BR /&gt;The table move / index rebuild advantage is that the work can be done online.&lt;BR /&gt;And as I say if you want to keep same name you move the tables twice&lt;BR /&gt;TOOLS -&amp;gt; TMPTOOLS&lt;BR /&gt;TMPTOOLS -&amp;gt; TOOLS (resized)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 02 Jun 2004 11:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293899#M886198</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-06-02T11:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293900#M886199</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;You do not technically need to create a new tablespace.  If you issue the rebuild statement without specifying a tablespace, it should take extents off of the front of the file, and let you resize the datafile down.  &lt;BR /&gt;&lt;BR /&gt;I would recommend finding the object that is causing the problem by checking the dba_extents view.  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Wed, 02 Jun 2004 16:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293900#M886199</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2004-06-02T16:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293901#M886200</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Your Datafile (a collection of extents) is in a similar state:&lt;BR /&gt;&lt;BR /&gt;0mb&amp;lt;--------------------------------------------------------&amp;gt;1024mb&lt;BR /&gt;OOOOxxxxxxxxxxOxxxxxxxxxxxxOOOOOOxxxxxxxxxxOOxxxxxxxxxxxxxxxxxxO&lt;BR /&gt;&lt;BR /&gt;(O = allocated extent, x = free extent)&lt;BR /&gt;&lt;BR /&gt;The last X out by 1024mb is preventing you from shrinking this file.  &lt;BR /&gt;&lt;BR /&gt;If you can determine what object is out there you can perhaps "move or rebuild" that object only -- or perhaps just drop it and recreate it later.&lt;BR /&gt;&lt;BR /&gt;To see what object is hanging out out there, you can run the following query on sqlplus:&lt;BR /&gt;&lt;BR /&gt;column tablespace_name format a20&lt;BR /&gt;column "Name" format a45&lt;BR /&gt;break on file_id skip 1&lt;BR /&gt;ttitle &amp;amp;1&lt;BR /&gt;select file_id, block_id, blocks,&lt;BR /&gt;       owner||'.'||segment_name "Name"&lt;BR /&gt;from   sys.dba_extents&lt;BR /&gt;where  tablespace_name = upper('&amp;amp;1')&lt;BR /&gt;UNION&lt;BR /&gt;select file_id, block_id, blocks,&lt;BR /&gt;       'Free'&lt;BR /&gt;from   sys.dba_free_space&lt;BR /&gt;where  tablespace_name = upper('&amp;amp;1')&lt;BR /&gt;order by 1,2,3&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;and pass it in the name of the tablespace.  Look for the large block_id at the end of the query and it'll show you the object you are looking for.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Thu, 03 Jun 2004 00:57:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293901#M886200</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-06-03T00:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293902#M886201</link>
      <description>You can also do it this way (ensure no one is using the database before doing this):&lt;BR /&gt;&lt;BR /&gt;ALTER TABLESPACE "TOOLS" OFFLINE NORMAL;&lt;BR /&gt;ALTER TABLESPACE "TOOLS" ONLINE;&lt;BR /&gt;ALTER TABLESPACE "TOOLS" COALESCE;&lt;BR /&gt;ALTER DATABASE DATAFILE '/disc.../.../tools01.dbf' RESIZE 512M;</description>
      <pubDate>Thu, 03 Jun 2004 04:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293902#M886201</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2004-06-03T04:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293903#M886202</link>
      <description>Thanks everyone!  I was able to accomplish what I was after.  In a nutshell, I used the Enterpise Manager's Reorg Wizard to shuffle things around and I was then able to resize the datafile.  Your input helped me realize what I needed to do and when!&lt;BR /&gt;&lt;BR /&gt;Points all around!  Thanks again!</description>
      <pubDate>Thu, 03 Jun 2004 08:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293903#M886202</guid>
      <dc:creator>Scott Buckingham</dc:creator>
      <dc:date>2004-06-03T08:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate the TOOLS Tablespace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293904#M886203</link>
      <description>I think you should coalesce TEMP (Temporary) and RBS (Rollback Segments) periodically because those are normally the most fragmented segments.&lt;BR /&gt;&lt;BR /&gt;Antunes</description>
      <pubDate>Thu, 03 Jun 2004 09:14:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-the-tools-tablespace/m-p/3293904#M886203</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2004-06-03T09:14:42Z</dc:date>
    </item>
  </channel>
</rss>

