ORA-04031 when creating a new 11g instance

I am trying to create a new instance on a fresh install of Oracle and encountering the following error during the jserver.sql portion of the create script.  Once the error occurs, sqlplus exits and the database creation fails.

How can I fix this issue?  Do I need to increase the size of any of the default tablespaces?  

Oracle on SUN SPARC 10.5
SQL> -- Load all the Java classes
SQL> begin if initjvmaux.startstep('CREATE_JAVA_SYSTEM') then
  2    initjvmaux.rollbacksetup;
  3    commit;
  4    initjvmaux.rollbackset;
  5    initjvmaux.exec('create or replace java system');
  6    commit;
  7    initjvmaux.rollbackcleanup;
  8    initjvmaux.endstep;
  9  end if; end;
 10  /
create or replace java system
begin if initjvmaux.startstep('CREATE_JAVA_SYSTEM') then
ERROR at line 1:
ORA-04031: unable to allocate 4096 bytes of shared memory ("java pool","unknown
object","joxlod exec hp",":SGAClass")
ORA-06512: at "SYS.INITJVMAUX", line 23
ORA-06512: at line 5

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
This is a memory error not a tablespace error.

The solution to this depends on how you set up the database parameters.

Logged in as a DBA post the following:
SQL> show parameter memory
SQL> show parameter sga
SQL> show parameter pool

If you are planning on using 11g Automatic memory management the following should al lbe 0:

The only ones that should have a size are:

If this is the case increase memory_max_target and memory_target, restart the database and retry.
STLOracleDudeAuthor Commented:
I got it to work by setting cpu_count=8 and sga_target=1024M
It was trying to allocate memory for each of the 64 cores on the machine.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.