Library lock cache



Hi,

I'm currently performance testing a J2EE application which persists
data in an Oracle 10g database. The application is a messaging
application receiving around 100 messages per second.

My problem is that after a certain level of load is reached, the
following query that saves these messages hangs for long periods of
time:

insert into Messages(col1, col2, col3, col4, col5, col6, col7, col8,
col9, col10, col11, col12, col13) values (:1, :2, :3, :4, :5, :6, :7,
:8, :9, :10, :11, :12, :13).

Looking at the web OEM i see a large amount of query time (up to 20
minutes in some cases!) being allocated against a Library Cache Lock.
Once this query has got to this stage I can reproduce the same
behaviour under smaller loads.

Searching google I notice various articles saying that bind variables
solve this (which i'm using), but can't really find anyother solutions!

I suspect changing the SGA may have some improvement, but i'm not an
Oracle expert so not sure exactly what to set it too! The box i'm
runing on is a dual core Windows 2003 Server box with 1GB of ram.

What other things could be causing this?

Cheers

Ed

.



Relevant Pages

  • Re: Views - performance
    ... when u use stored object views oracle has to read the data dictionary ... this includes lots of steps for execution ... semantics of the query and fires it ... you'll possibly have any idea is to use explain plan to provide a base ...
    (comp.databases.oracle.server)
  • RE: DBI-1.48 bind_param_inout produces ORA-01461 colliding with a CLOB
    ... can pass strings as varchar's and have them inserted ... In theory I could write something to query the ... CLOB w/in Oracle is probably what is killing me... ...
    (perl.dbi.users)
  • Re: Equilevant of Oracle for optional records
    ... and a normalized t2 could be more useful, to build the query, and once this ... the Iqaluit Trauma: ... Oracle handles this data structure perfectly but I suspect it might be ...
    (microsoft.public.access.queries)
  • Re: Equilevant of Oracle for optional records
    ... this query is done, then flatten the result? ... example, the Iqaluit Trauma: ... Oracle handles this data structure perfectly but I suspect it might be ...
    (microsoft.public.access.queries)
  • DBI-1.48 bind_param_inout produces ORA-01461 colliding with a CLOB
    ... can pass strings as varchar's and have them inserted ... In theory I could write something to query the ... CLOB w/in Oracle is probably what is killing me... ...
    (perl.dbi.users)