<?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: Need script to fill up the database table in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730687#M946909</link>
    <description>usr SQL:&lt;BR /&gt;insert into &lt;YOUR table=""&gt;&lt;BR /&gt;select * from &amp;lt; another table with same structure as your table&amp;gt;&lt;/YOUR&gt;</description>
    <pubDate>Fri, 24 May 2002 01:22:47 GMT</pubDate>
    <dc:creator>Printaporn_1</dc:creator>
    <dc:date>2002-05-24T01:22:47Z</dc:date>
    <item>
      <title>Need script to fill up the database table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730686#M946908</link>
      <description>Does any one have any sample script that would help me to fill up the database table ?&lt;BR /&gt;</description>
      <pubDate>Thu, 23 May 2002 21:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730686#M946908</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-05-23T21:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to fill up the database table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730687#M946909</link>
      <description>usr SQL:&lt;BR /&gt;insert into &lt;YOUR table=""&gt;&lt;BR /&gt;select * from &amp;lt; another table with same structure as your table&amp;gt;&lt;/YOUR&gt;</description>
      <pubDate>Fri, 24 May 2002 01:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730687#M946909</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2002-05-24T01:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to fill up the database table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730688#M946910</link>
      <description>#!/opt/perl/bin/perl -w&lt;BR /&gt;&lt;BR /&gt;use DBI;&lt;BR /&gt;&lt;BR /&gt;my $dbh = DBI-&amp;gt;connect (.....);&lt;BR /&gt;my $sth = $dbh-&amp;gt;prepare (q;&lt;BR /&gt; insert into table values (?, ?, ?, ?););&lt;BR /&gt;foreach (0 .. 1_000_000) {&lt;BR /&gt; $sth-&amp;gt;execute ($_, "$_", 1, "A");&lt;BR /&gt; }&lt;BR /&gt;$sth-&amp;gt;finish;&lt;BR /&gt;$dbh-&amp;gt;commit;</description>
      <pubDate>Fri, 24 May 2002 07:32:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730688#M946910</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-05-24T07:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to fill up the database table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730689#M946911</link>
      <description>create one record in the table that you want to fill up.&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;&lt;BR /&gt;insert into TheTable (select * from TheTable);&lt;BR /&gt;&lt;BR /&gt;run this a couple of times and you will have&lt;BR /&gt;1,2,4,8,16,32,64,128... etc. records in the table after each run.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 May 2002 07:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730689#M946911</guid>
      <dc:creator>Victor Geere</dc:creator>
      <dc:date>2002-05-24T07:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to fill up the database table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730690#M946912</link>
      <description>create table tmptable (currnum number, junkinfo varchar2(10));&lt;BR /&gt;&lt;BR /&gt;declare &lt;BR /&gt;   numcount number;&lt;BR /&gt;begin&lt;BR /&gt;   numcount:=0&lt;BR /&gt;   while currnum &amp;lt; 10000 loop&lt;BR /&gt;      numcount:=numcount+1;&lt;BR /&gt;      insert into tmptable values (numcount,'ABCDEFG');&lt;BR /&gt;   end loop;&lt;BR /&gt;end;&lt;BR /&gt;/</description>
      <pubDate>Fri, 24 May 2002 23:50:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730690#M946912</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2002-05-24T23:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to fill up the database table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730691#M946913</link>
      <description>Excuse me, that should read:&lt;BR /&gt;&lt;BR /&gt;while numcount &amp;lt; 10000 loop</description>
      <pubDate>Fri, 24 May 2002 23:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730691#M946913</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2002-05-24T23:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to fill up the database table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730692#M946914</link>
      <description>HI brian,&lt;BR /&gt;I used it your script , but when i try to run it, it gives me error...actually i modified the script to have it run indefinitely..and this is the error that i got&lt;BR /&gt;&lt;BR /&gt;here is the script&lt;BR /&gt;declare&lt;BR /&gt;numcount number;&lt;BR /&gt;begin&lt;BR /&gt;numcount:=1800&lt;BR /&gt;while (numcount-1) &amp;lt; 100000 loop&lt;BR /&gt;numcount:=numcount+1;&lt;BR /&gt;insert into employees value(numcount,'dfkjebkg','dljlkhgoi',6789.34,623495098);&lt;BR /&gt;end loop;&lt;BR /&gt;end;&lt;BR /&gt;/     &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;while (numcount-1) &amp;lt; 100000 loop&lt;BR /&gt;*&lt;BR /&gt;ERROR at line 5:&lt;BR /&gt;ORA-06550: line 5, column 1:&lt;BR /&gt;PLS-00103: Encountered the symbol "WHILE" when expecting one of the following:&lt;BR /&gt;* &amp;amp; = - + ; &amp;lt; / &amp;gt; at in is mod not rem &lt;AN exponent=""&gt;&lt;BR /&gt;&amp;lt;&amp;gt; or != or ~= &amp;gt;= &amp;lt;= &amp;lt;&amp;gt; and or like between ||&lt;BR /&gt;The symbol "*" was substituted for "WHILE" to continue.&lt;BR /&gt;ORA-06550: line 5, column 29:&lt;BR /&gt;PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:&lt;BR /&gt;* &amp;amp; - + ; / at mod rem &lt;AN exponent=""&gt; and or ||&lt;BR /&gt;ORA-06550: line 7, column 1:&lt;BR /&gt;PLS-00103: Encountered the symbol "INSERT" when expecting one of the following:&lt;BR /&gt;begin function package pragma procedure subtype type use&lt;BR /&gt;&lt;AN identifier=""&gt; &lt;/AN&gt;&lt;/AN&gt;&lt;/AN&gt;</description>
      <pubDate>Mon, 10 Jun 2002 17:42:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730692#M946914</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-06-10T17:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need script to fill up the database table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730693#M946915</link>
      <description>It looks like you need a ";" on the "numcount:=1800".  It is expecting that, and it is finding the "while".  Also, you will not want to run this indefinately, as there is a finite amount of rollback on the database.  You will want to either terminate the program, or put another variable in that will perform a commit after a set number of records.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 10 Jun 2002 23:50:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-script-to-fill-up-the-database-table/m-p/2730693#M946915</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2002-06-10T23:50:27Z</dc:date>
    </item>
  </channel>
</rss>

