<?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 dump table then load data back in causes errors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865662#M845166</link>
    <description>We have a backup data base that we are monitoring the inbound and out bound traffic on our Network interface.&lt;BR /&gt;Here is the problem, this data base gets rebuilt everyweek by our production db so these tables are over written with data contained from our prod db, and we do not want that.&lt;BR /&gt;&lt;BR /&gt;We would like to dump these tables to a flat file then when the database comes back up, truncate the table then input the data back in.&lt;BR /&gt;&lt;BR /&gt;The problem we have when we try this is, we get a "Commit point reached - logical record count" and not all the data gets inputted. What does commit point reached mean?&lt;BR /&gt;&lt;BR /&gt;Second when it does input the data, the next time our monitor script runs to imput the data again it does not put it in order.&lt;BR /&gt;&lt;BR /&gt;What would be the proper procedure for doing this...&lt;BR /&gt;&lt;BR /&gt;SQLPLUS=/opt/app/oracle/product/8.1.7/bin/sqlplus&lt;BR /&gt;SQLFILE=/home/log/lanmon_dump.sql&lt;BR /&gt;LANMONSPOOL=/home/log/restore_lanmon.csv&lt;BR /&gt;TABLESPACE_MON=/home/log/restore_tblmon.csv&lt;BR /&gt;&lt;BR /&gt;# Create SQL File&lt;BR /&gt;echo "set heading off" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "set feedback off" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "set pagesize 40" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "set linesize 400" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "set term off" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;&lt;BR /&gt;echo "spool $LANMONSPOOL" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "select DDMMYY ||','|| TIME ||','|| IN_IF0 ||','|| OUT_IF0 ||','|| IN_IF1 ||','|| OUT_IF1" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "  from lanmon" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "  /" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "  spool off" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;***********************************&lt;BR /&gt;Our actual data... (shortened)&lt;BR /&gt;select * from lanmon&lt;BR /&gt;DDMMYY     TIME       IN_IF0  OUT_IF0 IN_IF1          &lt;BR /&gt;---------- ---------- -------------------- -------------------- ----------------&lt;BR /&gt;16/10/04   18:00:00   362308  0                    38588           &lt;BR /&gt;16/10/04   18:30:01   186700               0                    3816            &lt;BR /&gt;16/10/04   23:30:00   8622                 0                    7860            &lt;BR /&gt;17/10/04   00:00:00   100093               46                   5094            &lt;BR /&gt;14/10/04   15:00:01   0                    0                    0               &lt;BR /&gt;14/10/04   17:30:01   1279906              0                    1794            &lt;BR /&gt;14/10/04   18:00:01   1278768              0                    6456            &lt;BR /&gt;14/10/04   23:00:01   1280086              0                    3666            &lt;BR /&gt;14/10/04   23:30:01   1279906              0                    6234            &lt;BR /&gt;15/10/04   00:00:01   1279008              0                    5322            &lt;BR /&gt;15/10/04   00:30:01   3967259              46                   2166            &lt;BR /&gt;&lt;BR /&gt;As you can see the dates do not follow each other.&lt;BR /&gt;&lt;BR /&gt;This is our comma separated file for input... (shrtened)&lt;BR /&gt;15/10/04,01:30:01,3180,0,1488,4372&lt;BR /&gt;15/10/04,02:00:00,3300,0,1662,4549&lt;BR /&gt;15/10/04,02:30:00,3240,0,1200,4008&lt;BR /&gt;15/10/04,03:00:00,3360,0,1722,4666&lt;BR /&gt;&lt;BR /&gt;**********************************&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 17 Oct 2004 00:39:07 GMT</pubDate>
    <dc:creator>Ratzie</dc:creator>
    <dc:date>2004-10-17T00:39:07Z</dc:date>
    <item>
      <title>dump table then load data back in causes errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865662#M845166</link>
      <description>We have a backup data base that we are monitoring the inbound and out bound traffic on our Network interface.&lt;BR /&gt;Here is the problem, this data base gets rebuilt everyweek by our production db so these tables are over written with data contained from our prod db, and we do not want that.&lt;BR /&gt;&lt;BR /&gt;We would like to dump these tables to a flat file then when the database comes back up, truncate the table then input the data back in.&lt;BR /&gt;&lt;BR /&gt;The problem we have when we try this is, we get a "Commit point reached - logical record count" and not all the data gets inputted. What does commit point reached mean?&lt;BR /&gt;&lt;BR /&gt;Second when it does input the data, the next time our monitor script runs to imput the data again it does not put it in order.&lt;BR /&gt;&lt;BR /&gt;What would be the proper procedure for doing this...&lt;BR /&gt;&lt;BR /&gt;SQLPLUS=/opt/app/oracle/product/8.1.7/bin/sqlplus&lt;BR /&gt;SQLFILE=/home/log/lanmon_dump.sql&lt;BR /&gt;LANMONSPOOL=/home/log/restore_lanmon.csv&lt;BR /&gt;TABLESPACE_MON=/home/log/restore_tblmon.csv&lt;BR /&gt;&lt;BR /&gt;# Create SQL File&lt;BR /&gt;echo "set heading off" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "set feedback off" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "set pagesize 40" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "set linesize 400" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "set term off" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;&lt;BR /&gt;echo "spool $LANMONSPOOL" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "select DDMMYY ||','|| TIME ||','|| IN_IF0 ||','|| OUT_IF0 ||','|| IN_IF1 ||','|| OUT_IF1" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "  from lanmon" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "  /" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;echo "  spool off" &amp;gt;&amp;gt;$SQLFILE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;***********************************&lt;BR /&gt;Our actual data... (shortened)&lt;BR /&gt;select * from lanmon&lt;BR /&gt;DDMMYY     TIME       IN_IF0  OUT_IF0 IN_IF1          &lt;BR /&gt;---------- ---------- -------------------- -------------------- ----------------&lt;BR /&gt;16/10/04   18:00:00   362308  0                    38588           &lt;BR /&gt;16/10/04   18:30:01   186700               0                    3816            &lt;BR /&gt;16/10/04   23:30:00   8622                 0                    7860            &lt;BR /&gt;17/10/04   00:00:00   100093               46                   5094            &lt;BR /&gt;14/10/04   15:00:01   0                    0                    0               &lt;BR /&gt;14/10/04   17:30:01   1279906              0                    1794            &lt;BR /&gt;14/10/04   18:00:01   1278768              0                    6456            &lt;BR /&gt;14/10/04   23:00:01   1280086              0                    3666            &lt;BR /&gt;14/10/04   23:30:01   1279906              0                    6234            &lt;BR /&gt;15/10/04   00:00:01   1279008              0                    5322            &lt;BR /&gt;15/10/04   00:30:01   3967259              46                   2166            &lt;BR /&gt;&lt;BR /&gt;As you can see the dates do not follow each other.&lt;BR /&gt;&lt;BR /&gt;This is our comma separated file for input... (shrtened)&lt;BR /&gt;15/10/04,01:30:01,3180,0,1488,4372&lt;BR /&gt;15/10/04,02:00:00,3300,0,1662,4549&lt;BR /&gt;15/10/04,02:30:00,3240,0,1200,4008&lt;BR /&gt;15/10/04,03:00:00,3360,0,1722,4666&lt;BR /&gt;&lt;BR /&gt;**********************************&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 17 Oct 2004 00:39:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865662#M845166</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-10-17T00:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: dump table then load data back in causes errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865663#M845167</link>
      <description>Commit point reached means you can't put any more records on hold without issuing a commmit. Its set in init.ora.&lt;BR /&gt;&lt;BR /&gt;You can change this with a special init.ora if you wish.&lt;BR /&gt;&lt;BR /&gt;To copy files over you might find it easier to just copy the files over and do whats called a database clone.&lt;BR /&gt;&lt;BR /&gt;Our dba copyes the .dbf and index files over and then runs a script changing the database name into the test database instancce name.&lt;BR /&gt;&lt;BR /&gt;Seems a little more straightforward.&lt;BR /&gt;&lt;BR /&gt;There are other ideas on database replication on the many oracle websites. otn.oracle.com technet.oracle.com etc.&lt;BR /&gt;&lt;BR /&gt;If you have oracle support they may be able to give you other ways to duplicate data.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 17 Oct 2004 03:08:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865663#M845167</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-17T03:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: dump table then load data back in causes errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865664#M845168</link>
      <description>&amp;gt;&amp;gt; then input the data back in&lt;BR /&gt;&lt;BR /&gt;HOW? It sounds like you are using SQL*loader, which would indeed be the right tool. But it is critical to share the command line/option file with us.&lt;BR /&gt;&lt;BR /&gt;You may also want to consider export/import as data tools, and with Oracle 9i, it can be interesting to 'unhook' a tablespace from an old db, and hook it back up to a new db. No data move, just metadata move.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; "Commit point reached - logical record count" and not all the data gets inputted. What does commit point reached mean?&lt;BR /&gt;&lt;BR /&gt;That is supposed to be a SQL*Loader informational, which should have no effect on the actuall data loaded, other then showing how far it got. Switch on SILENT=FEEDBACK to surpress. Read up on ROWS and ARRAYSIZE to control.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Second when it does input the data, the next time our monitor script runs to imput the data again it does not put it in order.&lt;BR /&gt;&lt;BR /&gt;Relational databases do NOT have an order (of arrival) requirement. Any order you perceive without askig explicitly for it is accidental and can not be relied upon... no matter how predictable it seems. Actually, it IS pretty predictable. The DB in does NOT go out of its way to create dis-order, generally filling rows in order of arrival = time order. But it is allowed to stick a fresh row any empty space it likes.&lt;BR /&gt;&lt;BR /&gt;If you want garantueed order, you will have to request that. Just add "ORDER BY TIME" to your select.&lt;BR /&gt;&lt;BR /&gt;Free advice:&lt;BR /&gt;&lt;BR /&gt;Those 'echo .. &amp;gt;&amp;gt; file' look scary.&lt;BR /&gt;What it the file already exist?&lt;BR /&gt;&lt;BR /&gt;Consider&lt;BR /&gt;&lt;BR /&gt;cat &amp;gt; $SQLPLUS &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;set heading...&lt;BR /&gt;set feedbac...&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;set pages 400? consider: set pages 0&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 17 Oct 2004 12:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865664#M845168</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-10-17T12:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: dump table then load data back in causes errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865665#M845169</link>
      <description>Thanks</description>
      <pubDate>Wed, 23 Feb 2005 09:05:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dump-table-then-load-data-back-in-causes-errors/m-p/4865665#M845169</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-02-23T09:05:20Z</dc:date>
    </item>
  </channel>
</rss>

