<?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>Question Re: Drop datafile from tablespace in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906903#M1199727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your answers Baran.&lt;/P&gt;&lt;P&gt;I have no metalink account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Harald Vedvik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2007 18:25:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-22T18:25:42Z</dc:date>
    <item>
      <title>Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaq-p/2906897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to oracle.&lt;/P&gt;&lt;P&gt;After I extended a tablespace I understood that it was too large.&lt;/P&gt;&lt;P&gt;I've been reading about how to drop a tablespace, but I don't want to drop the entire tablespace. I just want to drop the last datafile of this tablespace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to drop tablespaces in sapdba and brtools, but I don't know how I can drop one specific datafile (number 29) of the tablespace PSAPBTABD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help med.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Harald V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 15:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaq-p/2906897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T15:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906898#M1199722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see please this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4204278"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also the section 43. &amp;lt;i&amp;gt;How can I delete a data file that was created by mistake&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;in the SAP Note&amp;lt;i&amp;gt;&amp;lt;b&amp;gt; 592393 - FAQ: Oracle&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if you have Oracle 9i databases, it is not easy to drop a datafile, but in Oracle 10g &lt;/P&gt;&lt;P&gt;you can drop a datafile like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;ALTER TABLESPACE&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; &amp;lt;&amp;lt;u&amp;gt;&amp;lt;i&amp;gt;Tablespace Name&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt;&amp;gt; &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;DROP DATAFILE&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; '&amp;lt;&amp;lt;u&amp;gt;PATH und NAME of Datafile&amp;lt;/u&amp;gt;&amp;gt;';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example,  you have a tablespace called PSAPC11 and you want to drop a datafile called dat.data15 of this tablespace, you can drop it like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;alter tablespace&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;PSAPC11&amp;lt;/u&amp;gt; &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;drop datafile&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;'/oracle/C11/psapc11/dat.data15'&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 17:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906898#M1199722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T17:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906899#M1199723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Attention:&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;only&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; if you have Oracle &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;10g&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; Databases, you can drop a datafile like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALTER TABLESPACE &amp;lt;Tablespace Name&amp;gt; DROP DATAFILE '&amp;lt;PATH TO und THE NAME of Datafile&amp;gt;';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 17:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906899#M1199723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906900#M1199724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Baran.&lt;/P&gt;&lt;P&gt;Unfortunatly I have oracle 9.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is Windows.&lt;/P&gt;&lt;P&gt;What abaout stopping sap, stopping oracle and manually delete the data-file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Harald V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Harald Vedvik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 17:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906900#M1199724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T17:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906901#M1199725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have the metalink account?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see please this oracle note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;111316.1&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;: &amp;lt;i&amp;gt;How to 'DROP' a Datafile from a Tablespace&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;Please read this note very &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;carefully&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; and &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;back up your database&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; before performing any action. In Oracle 9i Database it is not very easy to drop a datafile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 18:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906901#M1199725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T18:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906902#M1199726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;never&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; drop a datafile manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 18:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906902#M1199726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T18:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906903#M1199727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your answers Baran.&lt;/P&gt;&lt;P&gt;I have no metalink account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Harald Vedvik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 18:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906903#M1199727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T18:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906904#M1199728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harals,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check note 758563 for metalink access for SAP customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Prince Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 18:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906904#M1199728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T18:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906905#M1199729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatelly, you "cannot" drop a datafile like that.&lt;/P&gt;&lt;P&gt;If you do it, then ORacle will recognize that the datafile is missing and your problems will start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Oraclw &amp;lt; 10g three is no "drop datafile" option.&lt;/P&gt;&lt;P&gt;You cannot drop a datafile, do not try to do it, you will end "messing up" the DB.&lt;/P&gt;&lt;P&gt;Leave the file. You will use it in the future.&lt;/P&gt;&lt;P&gt;If you want to "recover" space, then change the datafile size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The metalink Note:111316.1 clearly indicates:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Once you make a datafile part of a tablespace, the datafile CANNOT be removed, 
although we can use some workarounds.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the note explains is to "move" the data to a "new" tablespace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 18:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906905#M1199729</guid>
      <dc:creator>fidel_vales</dc:creator>
      <dc:date>2007-10-22T18:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906906#M1199730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have a few possibilities:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. decrease the size of your datafile to a small value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;brspace -c -u / -f dfalter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. reorg fully your tablesapce&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check Note 646681 - Reorganizing tables with BRSPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you can see, you cannot drop a datafile easily in Oracle 9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906906#M1199730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T19:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906907#M1199731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thanks for all the respons.&lt;/P&gt;&lt;P&gt;I've got metalink access and have been reading oracle note 111316.1 and note 1029252.6 How to resize a datafile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now understand that my best option is to leave the data-file.&lt;/P&gt;&lt;P&gt;Maybe resize it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards Harald Vedvik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906907#M1199731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Drop datafile from tablespace</title>
      <link>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906908#M1199732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right! If you want the space on disk, you can resize it the smaller size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhukar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/drop-datafile-from-tablespace/qaa-p/2906908#M1199732</guid>
      <dc:creator>madhukara_shenoy</dc:creator>
      <dc:date>2007-10-22T19:39:39Z</dc:date>
    </item>
  </channel>
</rss>

