Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: massive inserts with multiple process instances

Re: massive inserts with multiple process instances

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Mon, 01 Jul 2002 20:15:27 GMT
Message-ID: <3D20B83D.AD49C29E@exesolutions.com>


Fred wrote:

> Hello,
>
> I have to implement massive inserts (arrays with Pro*C) and many instances of
> the program can be started simultaneously
> Then I must do something like that for the key column:
> select max from table_cpt into :max;
> update table_cpt set max = :max + 1000;
> Here I insert 1000 rows (array) (for value=max to max + 1000) because of
> multiple instances of the process.
> Is it a good method ?
> Must I use locks on table_cpt ?
>
> Thanks in advance.
>
> --
> Use our news server 'news.foorum.com' from anywhere.
> More details at: http://nnrpinfo.go.foorum.com/

No. What you MUST do is learn something about Oracle before you absolutely destroy its scalability and performance.

Look up sequences at http://tahiti.oracle.com.

Everything you describe above is unnecessary.

Daniel Morgan Received on Mon Jul 01 2002 - 15:15:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US