ORA-04031 with Collections and SGA Settings



This is a two part question and I hope I've included enough information to
elicit responses.


I am working with a data warehouse using an Oracle 10g R1 database.


I attempted a quick test of collections to see if it would work and how much
of a time savings I could achieve. My steps for the test were as follows:


1. I used a BULK COLLECT to read 978,218 rows into collection #1.


2. I then created collection #2 from data directly in collection #1 and
from concatenations and conversions of collection #1 data.


3. I then used a FORALL to insert collection #2 into the final database
table.


4. I only was able to insert 450,561 rows before I ran out of memory and
received the ORA-04031 error stating the system was unable to allocate
225432 bytes of shared memory.


I ran this test twice. Once with deleting collection #1 after I had
finished creating collection #2 and once without deleting the collection.
Both times I received the ORA-04031 error.


I should also add that the rows in collection #1 are 449 bytes in size (for
a total size of about 422MB) and rows in collection #2 are 446 bytes in size
(for a total size of about 417MB).


When I checked how the SGA was configured these were the settings:


SHARED POOL: 752 MB

BUFFER CACHE: -1191182336 B

LARGE POOL: 208 MB

JAVA POOL: 64 MB

TOTAL SGA: 3988.108 MB

SGA MAX SIZE: 5904 MB


The database server is also configured as a shared server.


The questions I would like to ask are these:


1. I should be able to use Oracle collections to retrieve, modify and
save data, correct?


2. Do the settings for the SGA raise any questions/comments/concerns? If
so, what would better settings be?




.



Relevant Pages

  • Re: ORA-04031 with Collections and SGA Settings
    ... I am working with a data warehouse using an Oracle 10g R1 database. ... SGA MAX SIZE: 5904 MB ... The database server is also configured as a shared server. ... Do the settings for the SGA raise any questions/comments/concerns? ...
    (comp.databases.oracle.server)
  • Re: ORA-04031 with Collections and SGA Settings
    ... I am working with a data warehouse using an Oracle 10g R1 database. ... SGA MAX SIZE: 5904 MB ... Do the settings for the SGA raise any questions/comments/concerns? ...
    (comp.databases.oracle.server)
  • Re: SGA size.
    ... I have Oracle 8.1.7 installed on my IBM ... > (I'm thinking that is not enough memory). ... > about the size of the SGA. ... On this one server I have a test database ...
    (comp.databases.oracle.server)
  • Re: exporting characters from utf8 database to greek
    ... one of our customer has a problem regarding an export of characters ... from a oracle 8i database. ... In poland one of our customer is fine with the settings in order to ... NLS_CHARACTERSET and NLS_NCHAR_CHARACTERSET are database character ...
    (comp.databases.oracle.server)
  • Re: Oracle benchmark
    ... You are wasting your time, as you don't seem to understand anything ... because Oracle never has the complete database in SGA. ... You don't plan to increase the SGA once the database grows, ...
    (comp.databases.oracle.server)