<?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: export problems ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808786#M939945</link>
    <description>I can think of a couple of options.&lt;BR /&gt;Import the parent table on its own&lt;BR /&gt;before the child table&lt;BR /&gt;imp file=mydata.dmp tables=parent_table&lt;BR /&gt;imp file=mydata.dmp tables=child_table&lt;BR /&gt;&lt;BR /&gt;or do the import without constraints&lt;BR /&gt;imp file=mydata.dmp constraints=n rows=y indexes=y&lt;BR /&gt;then do the import with constraints only&lt;BR /&gt;imp file=mydata.dmp constraints=y rows=n indexes=n&lt;BR /&gt;&lt;BR /&gt;quoting the manual on consistent:&lt;BR /&gt;"Specifies whether or not Export uses the SET TRANSACTION READ ONLY statement to ensure that the data seen by Export is consistent to a single point in time and does not change during the execution of the export command. You should specify CONSISTENT=Y when you anticipate that other applications will be updating the target data after an export has started."&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;/Matt</description>
    <pubDate>Wed, 18 Sep 2002 14:51:31 GMT</pubDate>
    <dc:creator>Mattias Johnsson</dc:creator>
    <dc:date>2002-09-18T14:51:31Z</dc:date>
    <item>
      <title>export problems ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808785#M939944</link>
      <description>&lt;BR /&gt;I am doing an export based on schema from a production box that I need to get into a development box.&lt;BR /&gt;&lt;BR /&gt;when trying to import the data, I get an error, because of child/parent relationship.  I think the sql is trying to create a child table before its parent exists.&lt;BR /&gt;&lt;BR /&gt;since I am new to oracle tools, could I export the data with constraints=NO, import the data in, then turn constraints ON on the new instance ?  Is there a way to export the constraints only ?&lt;BR /&gt;&lt;BR /&gt;We do not have access to the Unix box, and can not simply do a hot backup either.   So, it will have to be done via export :-(((&lt;BR /&gt;&lt;BR /&gt;    Any help will be appreciated !!!&lt;BR /&gt;&lt;BR /&gt;Henrique Silva&lt;BR /&gt;&lt;BR /&gt;PS.:  What is the CONSISTENT option for ?  It says cross table consistency !!!</description>
      <pubDate>Wed, 18 Sep 2002 14:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808785#M939944</guid>
      <dc:creator>Henrique Silva_3</dc:creator>
      <dc:date>2002-09-18T14:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: export problems ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808786#M939945</link>
      <description>I can think of a couple of options.&lt;BR /&gt;Import the parent table on its own&lt;BR /&gt;before the child table&lt;BR /&gt;imp file=mydata.dmp tables=parent_table&lt;BR /&gt;imp file=mydata.dmp tables=child_table&lt;BR /&gt;&lt;BR /&gt;or do the import without constraints&lt;BR /&gt;imp file=mydata.dmp constraints=n rows=y indexes=y&lt;BR /&gt;then do the import with constraints only&lt;BR /&gt;imp file=mydata.dmp constraints=y rows=n indexes=n&lt;BR /&gt;&lt;BR /&gt;quoting the manual on consistent:&lt;BR /&gt;"Specifies whether or not Export uses the SET TRANSACTION READ ONLY statement to ensure that the data seen by Export is consistent to a single point in time and does not change during the execution of the export command. You should specify CONSISTENT=Y when you anticipate that other applications will be updating the target data after an export has started."&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;/Matt</description>
      <pubDate>Wed, 18 Sep 2002 14:51:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808786#M939945</guid>
      <dc:creator>Mattias Johnsson</dc:creator>
      <dc:date>2002-09-18T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: export problems ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808787#M939946</link>
      <description>You should use the consistent option if the database is being updated by other transactions during your export.&lt;BR /&gt;&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 18 Sep 2002 14:54:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808787#M939946</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-09-18T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: export problems ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808788#M939947</link>
      <description>Looks like you are importing into existing objects.  &lt;BR /&gt;&lt;BR /&gt;You could drop the target user and recreate it,  a &lt;BR /&gt;"user" import (implies a user export) would then recreate all objects automatically with the inter table dependancies implemented at the end.  &lt;BR /&gt;&lt;BR /&gt;Your development environment must be quite similar to your production environment though (ie same tablespaces).</description>
      <pubDate>Thu, 19 Sep 2002 10:55:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808788#M939947</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2002-09-19T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: export problems ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808789#M939948</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Seems like you are importing into existing objects...&lt;BR /&gt;&lt;BR /&gt;I would disable all constraints then reenable them after the import.&lt;BR /&gt;==============================&lt;BR /&gt;SQL&amp;gt; spool ./disable_constraints.sql&lt;BR /&gt;SQL&amp;gt; select 'alter table '||table_name||' disable constraint '||&lt;BR /&gt;constraint_name||';'&lt;BR /&gt;from user_constraints;&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;SQL&amp;gt;spool off&lt;BR /&gt;SQL&amp;gt;@./disable_constraints.sql&lt;BR /&gt;==============================&lt;BR /&gt;&lt;BR /&gt;Then you do your import and re-enable the constraints. &lt;BR /&gt;&lt;BR /&gt;NB. IMP with the INDEX=NO so that you don't have problems with the primary key during the first import. That is, import your data then import your indexes.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Sep 2002 11:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-problems/m-p/2808789#M939948</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-09-19T11:18:21Z</dc:date>
    </item>
  </channel>
</rss>

