<?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: script to fill up the table in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741151#M943923</link>
    <description>Hi Deanna,&lt;BR /&gt;&lt;BR /&gt;not sure what table you refer to,&lt;BR /&gt;I hope not your OS's process table ;-)&lt;BR /&gt;&lt;BR /&gt;If you really mean an RDBM's data table, and you are into Perl, I would first get the DBI module from CPAN, install this, and then the appropriate low level DBI driver for your specific DBMS&lt;BR /&gt;(if it were Oracle, you'd go for DBD::Oracle)&lt;BR /&gt;This is much better than the suggested here file stuff.&lt;BR /&gt;Please, have a look at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.perldoc.com/perl5.6.1/lib/DBI/FAQ.html" target="_blank"&gt;http://www.perldoc.com/perl5.6.1/lib/DBI/FAQ.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.saturn5.com/~jwb/dbi-examples.html" target="_blank"&gt;http://www.saturn5.com/~jwb/dbi-examples.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cpan.org/modules/by-module/DBI/" target="_blank"&gt;http://www.cpan.org/modules/by-module/DBI/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cpan.org/modules/by-module/DBD/" target="_blank"&gt;http://www.cpan.org/modules/by-module/DBD/&lt;/A&gt;</description>
    <pubDate>Mon, 10 Jun 2002 14:52:22 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2002-06-10T14:52:22Z</dc:date>
    <item>
      <title>script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741149#M943921</link>
      <description>I'd like to know if anyone has any simple script to fill up the table?  And once it is fill, I would like to be able to perform transaction to it as well.  I know we have to use ( either commit, savepoint or rollback) but i don't know the syntax on how to do so?&lt;BR /&gt;thnaks for your help</description>
      <pubDate>Mon, 10 Jun 2002 13:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741149#M943921</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-06-10T13:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741150#M943922</link>
      <description>Not sure what database your are refering or table, but I have loaded up a table from a comma delimited file by running a short perl program to generate insert commands-&lt;BR /&gt;&lt;BR /&gt;open(INP,"&lt;MYDATAFILE&gt;&lt;/MYDATAFILE&gt;while(&lt;INP&gt;) {&lt;BR /&gt; chop;&lt;BR /&gt; @a=split(/,/,$_);&lt;BR /&gt; print "INSERT ('",join("','",@a),"' INTO MYTABLE\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then feed the resultant file to your database system.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills&lt;/INP&gt;</description>
      <pubDate>Mon, 10 Jun 2002 13:46:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741150#M943922</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-06-10T13:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741151#M943923</link>
      <description>Hi Deanna,&lt;BR /&gt;&lt;BR /&gt;not sure what table you refer to,&lt;BR /&gt;I hope not your OS's process table ;-)&lt;BR /&gt;&lt;BR /&gt;If you really mean an RDBM's data table, and you are into Perl, I would first get the DBI module from CPAN, install this, and then the appropriate low level DBI driver for your specific DBMS&lt;BR /&gt;(if it were Oracle, you'd go for DBD::Oracle)&lt;BR /&gt;This is much better than the suggested here file stuff.&lt;BR /&gt;Please, have a look at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.perldoc.com/perl5.6.1/lib/DBI/FAQ.html" target="_blank"&gt;http://www.perldoc.com/perl5.6.1/lib/DBI/FAQ.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.saturn5.com/~jwb/dbi-examples.html" target="_blank"&gt;http://www.saturn5.com/~jwb/dbi-examples.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cpan.org/modules/by-module/DBI/" target="_blank"&gt;http://www.cpan.org/modules/by-module/DBI/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cpan.org/modules/by-module/DBD/" target="_blank"&gt;http://www.cpan.org/modules/by-module/DBD/&lt;/A&gt;</description>
      <pubDate>Mon, 10 Jun 2002 14:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741151#M943923</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-06-10T14:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741152#M943924</link>
      <description>Deanna,&lt;BR /&gt;&lt;BR /&gt;Can you give an example of what you are trying to do?  I might be able to give you some pointers on ways to do it from a sqlscript, or shell script.  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 10 Jun 2002 23:59:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741152#M943924</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2002-06-10T23:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741153#M943925</link>
      <description>insert into tablename(field1,field2) values(1,2);&lt;BR /&gt;&lt;BR /&gt;insert into tablename&lt;BR /&gt;select * from tablename;&lt;BR /&gt;&lt;BR /&gt;run the second statement for a couple of times and you will end up with 2,4,8,16,32,64,128,256,512,1024,2048 records after each run.</description>
      <pubDate>Tue, 11 Jun 2002 07:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741153#M943925</guid>
      <dc:creator>Victor Geere</dc:creator>
      <dc:date>2002-06-11T07:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741154#M943926</link>
      <description>hi here is the script that I wrote, but when i&lt;BR /&gt;run it it gives me an error.. I want it to load&lt;BR /&gt;indefinetely, and control C to exit...if I control C to exit, then it should able to continue loading the data...&lt;BR /&gt;&lt;BR /&gt;declare&lt;BR /&gt;select max(empid) from employee;&lt;BR /&gt;numcount number:= max(empid);&lt;BR /&gt;begin&lt;BR /&gt;while true loop&lt;BR /&gt;numcount:=numcount+1;&lt;BR /&gt;insert into employee values (numcount,'dfkjebkg','dlkjglkj',5678.34,4567895);&lt;BR /&gt;commit;&lt;BR /&gt;end loop;&lt;BR /&gt;end;</description>
      <pubDate>Tue, 11 Jun 2002 13:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741154#M943926</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-06-11T13:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741155#M943927</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;declare empid as a SEQUENCE and skip it in the insert statement, just loop and insert data, oracle will take care of the rest.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 11 Jun 2002 14:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741155#M943927</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-06-11T14:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741156#M943928</link>
      <description>This will work:&lt;BR /&gt;&lt;BR /&gt;PROCEDURE tester1 IS&lt;BR /&gt;numcount number:= 0; &lt;BR /&gt;&lt;BR /&gt;begin &lt;BR /&gt;while true loop &lt;BR /&gt;numcount:=numcount+1; &lt;BR /&gt;insert into employee values (numcount,'dfkjebkg','dlkjglkj',5678.34,4567895); &lt;BR /&gt;commit; &lt;BR /&gt;end loop; &lt;BR /&gt;&lt;BR /&gt;END;&lt;BR /&gt;&lt;BR /&gt;I ran this from sql*plus (i.e. execute tester1) and it inserted data until I hit my maxextents (which I set small just incase I could not kill it quickly enough).</description>
      <pubDate>Tue, 11 Jun 2002 14:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741156#M943928</guid>
      <dc:creator>Jeanine Kone</dc:creator>
      <dc:date>2002-06-11T14:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741157#M943929</link>
      <description>hi jeanine, &lt;BR /&gt;I tried your suggestion, but i got this error:&lt;BR /&gt;PROCEDURE tester1 IS&lt;BR /&gt;*&lt;BR /&gt;ERROR at line 1:&lt;BR /&gt;ORA-00900: invalid SQL statement..&lt;BR /&gt;and yes, i did login as test1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2002 14:48:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741157#M943929</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-06-11T14:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741158#M943930</link>
      <description>That is the actual code of the procedure.  To create the procedure, just add a create before the command.  Also, make sure the user you are logged in as has permissions to create stored procedures.&lt;BR /&gt;&lt;BR /&gt;i.e. &lt;BR /&gt;create PROCEDURE tester1 IS&lt;BR /&gt;numcount number:= 0;&lt;BR /&gt;begin&lt;BR /&gt;while true loop&lt;BR /&gt;numcount:=numcount+1;&lt;BR /&gt;insert into employee values (numcount,'dfkjebkg','dlkjglkj',5678.34,4567895);&lt;BR /&gt;commit;&lt;BR /&gt;end loop;&lt;BR /&gt;END;</description>
      <pubDate>Tue, 11 Jun 2002 14:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741158#M943930</guid>
      <dc:creator>Jeanine Kone</dc:creator>
      <dc:date>2002-06-11T14:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741159#M943931</link>
      <description>hi jeanine,&lt;BR /&gt;I am able to create the procedure, but &lt;BR /&gt;how can i monitor what it is doing ? is there a way i monitor it...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2002 17:26:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741159#M943931</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-06-11T17:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741160#M943932</link>
      <description>The simple way to check on it would be to open a second sql*plus session and do a "select count(*) from employee;".  This will show you how many rows are in the table.  You can do this over and over and watch the table growing.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2002 18:36:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741160#M943932</guid>
      <dc:creator>Jeanine Kone</dc:creator>
      <dc:date>2002-06-11T18:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741161#M943933</link>
      <description>hi,&lt;BR /&gt;how long would it takes the table to grow, when i do select count(*) from employee;&lt;BR /&gt;it gives me a value that is differ when&lt;BR /&gt;i do select max(empid) from employee...&lt;BR /&gt;in addition, when i run that script, it comes&lt;BR /&gt;back as "procedure created"&lt;BR /&gt;&amp;gt; @/u02/dtloader2.sql&lt;BR /&gt;&lt;BR /&gt;Procedure created.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt;       &lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2002 19:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741161#M943933</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-06-11T19:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: script to fill up the table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741162#M943934</link>
      <description>OK - The script creates a procedure that will insert data.  You need to actually execute the procedure after it is created.  From sql*plus, you type "execute tester1".  The procedure will then execute and start inserting the data.&lt;BR /&gt;&lt;BR /&gt;Once you are inserting the data, it will grow very quickly.  If you want the count(*) to equal the emplid (assuming the numcount value is being inserted in the emplid field)- you should delete any data that is currently in the table before executing the script (i.e. "truncate table employee;").&lt;BR /&gt;&lt;BR /&gt;If you do the queries while the script is running they will not match up (because it will continue to insert data during your queries, so the results will not be consistent).  But once you stop the procedure - they should match.</description>
      <pubDate>Tue, 11 Jun 2002 19:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-fill-up-the-table/m-p/2741162#M943934</guid>
      <dc:creator>Jeanine Kone</dc:creator>
      <dc:date>2002-06-11T19:42:11Z</dc:date>
    </item>
  </channel>
</rss>

