<?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: oracle - copy index from one schema to another in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067765#M734936</link>
    <description>Recreate them would be the quickest way</description>
    <pubDate>Fri, 07 Sep 2007 18:24:31 GMT</pubDate>
    <dc:creator>Stephen R Badgett</dc:creator>
    <dc:date>2007-09-07T18:24:31Z</dc:date>
    <item>
      <title>oracle - copy index from one schema to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067762#M734933</link>
      <description>&amp;lt;&amp;lt; Oracle Standard version only &amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;this is what I have done so far ...&lt;BR /&gt;&lt;BR /&gt;create table &amp;lt;&amp;lt;&lt;NEW_SCHEMA&gt;&amp;gt;&amp;gt;.DEPT as select * from &amp;lt;&amp;lt;&lt;OLD_SCHEMA&gt;&amp;gt;&amp;gt;.DEPT;&lt;BR /&gt;&lt;BR /&gt;I need know how to copy the indexes over from my old schema to the new one (in a script)&lt;BR /&gt;&lt;BR /&gt;thank you &lt;BR /&gt;&lt;BR /&gt;Steve&lt;/OLD_SCHEMA&gt;&lt;/NEW_SCHEMA&gt;</description>
      <pubDate>Fri, 07 Sep 2007 12:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067762#M734933</guid>
      <dc:creator>Stephen R Badgett</dc:creator>
      <dc:date>2007-09-07T12:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: oracle - copy index from one schema to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067763#M734934</link>
      <description>Since the amount of disk/effort required is the same, just drop then recreate the index where it needs to go.  A "copy" of an index would be literally the same thing.</description>
      <pubDate>Fri, 07 Sep 2007 14:56:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067763#M734934</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-09-07T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: oracle - copy index from one schema to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067764#M734935</link>
      <description>As John indicates, copying an index makes no sense. you just re-create it using the same definition.&lt;BR /&gt;&lt;BR /&gt;Idealy you simply have the defintion script handy.&lt;BR /&gt;&lt;BR /&gt;You could have copied data + index using an export + import.&lt;BR /&gt;&lt;BR /&gt;You can still use export with parameters ROWS=N, INDEXES=Y, to just get index definitions to a file.&lt;BR /&gt;&lt;BR /&gt;I believe the official way it to use GET_DDL from the metadata package.&lt;BR /&gt;&lt;BR /&gt;Something like&lt;BR /&gt;&lt;BR /&gt;select DBMS_METADATA.GET_DDL('INDEX','DEPT_INDEX_1') from DUAL;&lt;BR /&gt;:&lt;BR /&gt;  CREATE INDEX "schema".DEPT_INDEX_1" ON "schema"."DEPT" ...&lt;BR /&gt;&lt;BR /&gt;One you have the text... execute it!&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2007 15:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067764#M734935</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-07T15:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: oracle - copy index from one schema to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067765#M734936</link>
      <description>Recreate them would be the quickest way</description>
      <pubDate>Fri, 07 Sep 2007 18:24:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067765#M734936</guid>
      <dc:creator>Stephen R Badgett</dc:creator>
      <dc:date>2007-09-07T18:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: oracle - copy index from one schema to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067766#M734937</link>
      <description>Steve,&lt;BR /&gt;&lt;BR /&gt;no a RE-Create (or rebuild) will do this for the index on the old table.&lt;BR /&gt;&lt;BR /&gt;You need to create a new index that indexes the new table!&lt;BR /&gt;&lt;BR /&gt;It is psooible to create an index in the new schema, that indexes the old table, so use Heins approach an change the schema-user for the index AND the table to do the copy!&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Sun, 09 Sep 2007 06:17:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067766#M734937</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2007-09-09T06:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: oracle - copy index from one schema to another</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067767#M734938</link>
      <description>I did realize that and a sed on the file did the trick quickly -- thank for all the help</description>
      <pubDate>Mon, 10 Sep 2007 11:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-copy-index-from-one-schema-to-another/m-p/5067767#M734938</guid>
      <dc:creator>Stephen R Badgett</dc:creator>
      <dc:date>2007-09-10T11:09:47Z</dc:date>
    </item>
  </channel>
</rss>

