<?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: compliation during the creation of the procedure in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764207#M893909</link>
    <description>As suggested.. to create a table name jobtime with 2 values jobid and jobtime...and jobid takes varchar(2), however i was unsuccessful to do so...what do i miss ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; create table jobtime&lt;BR /&gt;  2  (id_job varchar(2) constraint employee_2a_k primary key&lt;BR /&gt;  3  jobtimes (date))&lt;BR /&gt;  4  tablespace saki_datat02;&lt;BR /&gt;(id_job number(26) constraint employee_2a_k primary key&lt;BR /&gt;*&lt;BR /&gt;ERROR at line 2:&lt;BR /&gt;ORA-00922: missing or invalid option</description>
    <pubDate>Tue, 16 Jul 2002 14:23:43 GMT</pubDate>
    <dc:creator>Deanna Tran_1</dc:creator>
    <dc:date>2002-07-16T14:23:43Z</dc:date>
    <item>
      <title>compliation during the creation of the procedure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764201#M893903</link>
      <description>this is the scrip that I used; I have analyze this over and over again..and i still can't see the pl/sql error? please help&lt;BR /&gt;&lt;BR /&gt;create PROCEDURE test_update IS&lt;BR /&gt;numcount number:=0;&lt;BR /&gt;begin&lt;BR /&gt;numcount:=numcount+1;&lt;BR /&gt;update employee1 set salary = salary + 900&lt;BR /&gt;where empid = numcount;&lt;BR /&gt;update employee2 set salary = salary + 10000&lt;BR /&gt;where empid = numcount;&lt;BR /&gt;update employeer3 set salary = salary + 5000&lt;BR /&gt;where empid = numcount;&lt;BR /&gt;update employee set lastname = 'dkvnlkdoije'&lt;BR /&gt;where empid = numcount;&lt;BR /&gt;if numcount=1000 then&lt;BR /&gt;commit;&lt;BR /&gt;numcount:=0;&lt;BR /&gt;endif;&lt;BR /&gt;END;</description>
      <pubDate>Mon, 15 Jul 2002 19:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764201#M893903</guid>
      <dc:creator>Deanna Tran_1</dc:creator>
      <dc:date>2002-07-15T19:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: compliation during the creation of the procedure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764202#M893904</link>
      <description>There is no loop so that this will only update those rows where empid = 1 AND because numcount is never 1000 there is no commit and therefore nothing gets done.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jul 2002 20:01:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764202#M893904</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-15T20:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: compliation during the creation of the procedure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764203#M893905</link>
      <description>hi, I forgot this while true loop...&lt;BR /&gt;thing...&lt;BR /&gt;&lt;BR /&gt;create PROCEDURE test_update 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;update employee1 set salary = salary + 900 &lt;BR /&gt;where empid = numcount; &lt;BR /&gt;update employee2 set salary = salary + 10000 &lt;BR /&gt;where empid = numcount; &lt;BR /&gt;update employeer3 set salary = salary + 5000 &lt;BR /&gt;where empid = numcount; &lt;BR /&gt;update employee set lastname = 'dkvnlkdoije' &lt;BR /&gt;where empid = numcount; &lt;BR /&gt;if numcount=1000 then &lt;BR /&gt;commit; &lt;BR /&gt;numcount:=0; &lt;BR /&gt;endif; &lt;BR /&gt;end loop;&lt;BR /&gt;END;</description>
      <pubDate>Mon, 15 Jul 2002 20:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764203#M893905</guid>
      <dc:creator>Deanna Tran_1</dc:creator>
      <dc:date>2002-07-15T20:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: compliation during the creation of the procedure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764204#M893906</link>
      <description>1.  This assumes that there are 'EMPLOYEE1', 'EMPLOYEE2', 'EMPLOYEE3', and 'EMPLOYEE' tables.  &lt;BR /&gt;&lt;BR /&gt;2.  That each table has a "empid" up to 1000.  &lt;BR /&gt;&lt;BR /&gt;You might want to perform an insert statement to make sure that you have data in the for those rows, otherwise it is not going to update anything.  &lt;BR /&gt;&lt;BR /&gt;Also, this statment will not do anything other than build up a large amount of redolog data, as you are going through the same number of records each time.  If this is something for I/O testing, you would be better running jobs in parallel, as well as defining ahead of time exactly what you are trying to tets.  &lt;BR /&gt;&lt;BR /&gt;Your error in the code though is the "endif;" statement.  This should be "end if;".  I would suggest checking the "DBA_ERRORS" view, or running "show errors" if you have errors compiling something, as this will normally show you where the problem is.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 15 Jul 2002 21:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764204#M893906</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2002-07-15T21:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: compliation during the creation of the procedure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764205#M893907</link>
      <description>hi Brian,&lt;BR /&gt;I had another procedure doing the insert...this is just doing the update...&lt;BR /&gt;the purpose for this script...is to pump up the I/O.... and i want the data to be comited&lt;BR /&gt;every 1000 update ?&lt;BR /&gt;Can you give me any more suggestion on how to improve this script?...and how to increase the I/O rate? and yes..your assumption is correct about the tables ...&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jul 2002 22:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764205#M893907</guid>
      <dc:creator>Deanna Tran_1</dc:creator>
      <dc:date>2002-07-15T22:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: compliation during the creation of the procedure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764206#M893908</link>
      <description>I would be tempted to put a timestamp on each run of the job.&lt;BR /&gt;&lt;BR /&gt;Create a table like "jobtime" with a "jobid" (VARCHAR2) and a "jobtime" (DATE) field.  Then do something like this:&lt;BR /&gt;--------------------------&lt;BR /&gt;declare&lt;BR /&gt;runcount number:=0;&lt;BR /&gt;begin&lt;BR /&gt;loop until numcount:=50000;&lt;BR /&gt;numcount:=numcount+1;&lt;BR /&gt;update...&lt;BR /&gt;if numcount=1000 then&lt;BR /&gt;runcount:=runcount+10;&lt;BR /&gt;insert to jobtime values (runcount,sysdate);&lt;BR /&gt;commit;&lt;BR /&gt;end if;&lt;BR /&gt;end loop;&lt;BR /&gt;end;&lt;BR /&gt;--------------------------&lt;BR /&gt;&lt;BR /&gt;Since you should run the job in parallel, you would want to increment jobid in the procedure by 1.  By adding 10 to the runcount though, it will make it so know which job was running, as it will always end in a 0, 1, 2, etc.  This would give you a maximum of 10 jobs, however that should be more than enough to get an idea of the amount of I/O that is being done.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 15 Jul 2002 23:51:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764206#M893908</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2002-07-15T23:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: compliation during the creation of the procedure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764207#M893909</link>
      <description>As suggested.. to create a table name jobtime with 2 values jobid and jobtime...and jobid takes varchar(2), however i was unsuccessful to do so...what do i miss ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; create table jobtime&lt;BR /&gt;  2  (id_job varchar(2) constraint employee_2a_k primary key&lt;BR /&gt;  3  jobtimes (date))&lt;BR /&gt;  4  tablespace saki_datat02;&lt;BR /&gt;(id_job number(26) constraint employee_2a_k primary key&lt;BR /&gt;*&lt;BR /&gt;ERROR at line 2:&lt;BR /&gt;ORA-00922: missing or invalid option</description>
      <pubDate>Tue, 16 Jul 2002 14:23:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764207#M893909</guid>
      <dc:creator>Deanna Tran_1</dc:creator>
      <dc:date>2002-07-16T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: compliation during the creation of the procedure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764208#M893910</link>
      <description>hi Brian,&lt;BR /&gt;I figure it out what was the error...&lt;BR /&gt;there wasn't a comma to separate the two fiels...and there is no () around date...&lt;BR /&gt;everything is fine..now..i was able to create the table.... still testing out your suggestion for this table..thanks</description>
      <pubDate>Tue, 16 Jul 2002 15:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compliation-during-the-creation-of-the-procedure/m-p/2764208#M893910</guid>
      <dc:creator>Deanna Tran_1</dc:creator>
      <dc:date>2002-07-16T15:46:44Z</dc:date>
    </item>
  </channel>
</rss>

