Unix Technical Forum

Need help on simple Oracle question

This is a discussion on Need help on simple Oracle question within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi all, I have a program which contains a select of a table. And, a 2nd program which contains ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008, 10:49 PM
Bill
 
Posts: n/a
Default Need help on simple Oracle question

Hi all,

I have a program which contains a select of a table. And, a 2nd program
which contains an insert to the same table.

The 2 programs are being executed concurrently hundreds of times per minute.
Will Oracle be able to handle this without any problem, e.g. locking
problem? Is there anything special I should do to this table, so to
prevent problems?

Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2008, 10:49 PM
Dave
 
Posts: n/a
Default Re: Need help on simple Oracle question


"Bill" <bli01@yahoo.com> wrote in message
news:10p7cjkf9d2mqa5@corp.supernews.com...
> Hi all,
>
> I have a program which contains a select of a table. And, a 2nd program
> which contains an insert to the same table.
>
> The 2 programs are being executed concurrently hundreds of times per
> minute.
> Will Oracle be able to handle this without any problem, e.g. locking
> problem? Is there anything special I should do to this table, so to
> prevent problems?
>
> Thanks
>
>


as long as the machine can cope with the number of transactions then yes,
oracle will because reads do not block writes and vice versa

p.s. always mention version


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2008, 10:49 PM
Bill
 
Posts: n/a
Default Re: Need help on simple Oracle question

The Oracle version is 9.0.1.

When you said as long as the machine can cope, do you mean the processor
speed?

Also, is there any Oracle configuration parameters that should be noted to
accomodate such transaction requirement?

Thanks


"Dave" <x@x.com> wrote in message
news:xEOkd.12243$up1.9668@text.news.blueyonder.co. uk...

"Bill" <bli01@yahoo.com> wrote in message
news:10p7cjkf9d2mqa5@corp.supernews.com...
> Hi all,
>
> I have a program which contains a select of a table. And, a 2nd program
> which contains an insert to the same table.
>
> The 2 programs are being executed concurrently hundreds of times per
> minute.
> Will Oracle be able to handle this without any problem, e.g. locking
> problem? Is there anything special I should do to this table, so to
> prevent problems?
>
> Thanks
>
>


as long as the machine can cope with the number of transactions then yes,
oracle will because reads do not block writes and vice versa

p.s. always mention version



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 10:49 PM
b
 
Posts: n/a
Default Re: Need help on simple Oracle question

Bill,

Just use automatic UNDO and ensure that your transactions are not long
running. Also, upgrade to 9.2.0.4 at a minimum. Great performance
improvements will be realized.

Al

Bill wrote:

> The Oracle version is 9.0.1.
>
> When you said as long as the machine can cope, do you mean the processor
> speed?
>
> Also, is there any Oracle configuration parameters that should be noted to
> accomodate such transaction requirement?
>
> Thanks
>
>
> "Dave" <x@x.com> wrote in message
> news:xEOkd.12243$up1.9668@text.news.blueyonder.co. uk...
>
> "Bill" <bli01@yahoo.com> wrote in message
> news:10p7cjkf9d2mqa5@corp.supernews.com...
>
>>Hi all,
>>
>>I have a program which contains a select of a table. And, a 2nd program
>>which contains an insert to the same table.
>>
>>The 2 programs are being executed concurrently hundreds of times per
>>minute.
>>Will Oracle be able to handle this without any problem, e.g. locking
>>problem? Is there anything special I should do to this table, so to
>>prevent problems?
>>
>>Thanks
>>
>>

>
>
> as long as the machine can cope with the number of transactions then yes,
> oracle will because reads do not block writes and vice versa
>
> p.s. always mention version
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-07-2008, 10:49 PM
Dave
 
Posts: n/a
Default Re: Need help on simple Oracle question


"b" <b@aol.com> wrote in message
news:VARkd.6214$jE2.4223@bignews4.bellsouth.net...
> Bill,
>
> Just use automatic UNDO and ensure that your transactions are not long
> running. Also, upgrade to 9.2.0.4 at a minimum. Great performance
> improvements will be realized.
>




What if the code is crap? 9.2 wont perform much better than 9.0.1

Bill - yes i meant cpu, plus also memory disk. Oracle is pretty good at
multiversioning :-)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-07-2008, 10:49 PM
Joel Garry
 
Posts: n/a
Default Re: Need help on simple Oracle question

"Bill" <bli01@yahoo.com> wrote in message news:<10p7enomdndkva8@corp.supernews.com>...
> The Oracle version is 9.0.1.
>
> When you said as long as the machine can cope, do you mean the processor
> speed?
>
> Also, is there any Oracle configuration parameters that should be noted to
> accomodate such transaction requirement?
>
> Thanks
>
>
> "Dave" <x@x.com> wrote in message
> news:xEOkd.12243$up1.9668@text.news.blueyonder.co. uk...
>
> "Bill" <bli01@yahoo.com> wrote in message
> news:10p7cjkf9d2mqa5@corp.supernews.com...
> > Hi all,
> >
> > I have a program which contains a select of a table. And, a 2nd program
> > which contains an insert to the same table.
> >
> > The 2 programs are being executed concurrently hundreds of times per
> > minute.
> > Will Oracle be able to handle this without any problem, e.g. locking
> > problem? Is there anything special I should do to this table, so to
> > prevent problems?
> >
> > Thanks
> >
> >

>
> as long as the machine can cope with the number of transactions then yes,
> oracle will because reads do not block writes and vice versa
>
> p.s. always mention version


Not really a simple question, Bill. It depends on what the program is
doing. For example, if the select program starts a transaction and
then holds it a long time, Oracle needs to be able to keep the data to
be able to reconstruct a read-consistent view of the data in spite of
the other program inserting. If you have many users doing this, it
can add up. If you just have one user doing it for a reallllly long
time (say, a month-end batch), you can run into undo or rbs issues
(depending on which you are using).

There are configuration parameters, but they should only be modified
with a proper tuning methodology, which is normally an iterative
process. Most tuning for this sort of thing is application tuning.
If the insert program was originally written for another type of
database engine (or by someone trained that way), it could be
"incorrect" from the Oracle perspective of writers not blocking
readers and vice versa. Also, certain selects benefit from
modification of certain parameters, but that usually can (or should)
be set at the session level rather than the instance.

So, "it depends."

I'm sure Dave could be referring to any hardware parameters including
cpu and i/o rates. The bottleneck can change severely with small
changes in app code or tuning, or even usage at the limit.

jg
--
@home.com is bogus.
"sux – oracle" - suse oracle install
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-07-2008, 10:50 PM
DA Morgan
 
Posts: n/a
Default Re: Need help on simple Oracle question

Bill wrote:

> Hi all,
>
> I have a program which contains a select of a table. And, a 2nd program
> which contains an insert to the same table.
>
> The 2 programs are being executed concurrently hundreds of times per minute.
> Will Oracle be able to handle this without any problem, e.g. locking
> problem? Is there anything special I should do to this table, so to
> prevent problems?
>
> Thanks


Hundreds? It can handle thousands ... tens of thousands.

Assuming you wrote decent code and didn't both installation
and configuration parameters and your hardware isn't mediocre.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-07-2008, 10:50 PM
DA Morgan
 
Posts: n/a
Default Re: Need help on simple Oracle question

Bill wrote:

> The Oracle version is 9.0.1.
>
> When you said as long as the machine can cope, do you mean the processor
> speed?
>
> Also, is there any Oracle configuration parameters that should be noted to
> accomodate such transaction requirement?
>
> Thanks


CPU is pretty irrelevant to disk activity. The quesion is more one of
bus speed, i/o, and disk transfer rate.

--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-07-2008, 10:50 PM
Michael
 
Posts: n/a
Default Re: Need help on simple Oracle question



Hello Folks,

Oracle does not have something like read locks. But if the transactions
(inserts) does happen parallel there are a few things you should take
care about. Like, which is in my eyes most important, the INITTRANS
value (default is 1) with wich you create your table. Increase on for
each concurrent transaction.

Greetings,
Michael

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com