The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Connecting to Oracle Database dreams5617 Shell Programming and Scripting 4 05-02-2008 09:37 AM
Install Guide: Oracle Database 11g Release 1 on Oracle Enterprise Linux 5 iBot Oracle Updates (RSS) 0 04-06-2008 02:10 AM
How to start Oracle database automatically greg0320 SUN Solaris 3 03-30-2005 02:46 PM
txt file to oracle database jorhul Shell Programming and Scripting 9 03-09-2005 02:48 AM
oracle database on solaris and linux ganga UNIX for Dummies Questions & Answers 3 11-27-2003 07:06 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-01-2006
Registered User
 

Join Date: Sep 2006
Posts: 81
Stumble this Post!
[help]oracle database error on solaris 8

hi experts,

i have some problem with my oracle database 8.1.7 running on sun solaris 8, after 2 days or more i cannot login into database and needed to restart the database, below shown the error :

ERROR:
ORA-00604: error occurred at recursive SQL level 2
ORA-04031: unable to allocate 4200 bytes of shared memory ("shared
pool","TRIGGER$","sga heap","state objects")
ORA-00604: error occurred at recursive SQL level 1
ORA-04031: unable to allocate 4200 bytes of shared memory ("shared
pool","unknown object","sga heap","state objects")

please help

how to fix this problem?

thank you so much


Best Regards,

wu
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-01-2006
Tornado's Avatar
Registered User
 

Join Date: Nov 2006
Location: Melbourne
Posts: 240
Stumble this Post!
Does the server have oracle start stop scripts ?
You can use them to restart your databases.

But looking at your errors its looks like some kernal tunables need to be set.
I can't remember which ones thay are of the top of my head, But I know there are some shared memory tuneables that need to be set for oracle to function corectly.
Reply With Quote
  #3 (permalink)  
Old 12-01-2006
Tornado's Avatar
Registered User
 

Join Date: Nov 2006
Location: Melbourne
Posts: 240
Stumble this Post!
This might help..
http://www.idevelopment.info/data/Or...LARIS_10.shtml
Reply With Quote
  #4 (permalink)  
Old 12-02-2006
Registered User
 

Join Date: Nov 2006
Posts: 252
Stumble this Post!
looks like you are hitting shared memory problems,

either somebody changed added or removed something in the init.ora.

or this is a new DB just recently installed then check your /etc/system

Normally if you encounter oracle memory errors it's to do with your shmmax or semaphore & shared memory entries under /etc/system file or the settings in the oracle init.ora file
Reply With Quote
  #5 (permalink)  
Old 12-02-2006
Tornado's Avatar
Registered User
 

Join Date: Nov 2006
Location: Melbourne
Posts: 240
Stumble this Post!
Quote:
Originally Posted by sparcguy
looks like you are hitting shared memory problems,

either somebody changed added or removed something in the init.ora.

or this is a new DB just recently installed then check your /etc/system

Normally if you encounter oracle memory errors it's to do with your shmmax or semaphore & shared memory entries under /etc/system file or the settings in the oracle init.ora file
Yep thats what I said
For more info on these tunables look at the link I posted..
Reply With Quote
  #6 (permalink)  
Old 12-02-2006
Registered User
 

Join Date: Nov 2002
Location: Singapore
Posts: 128
Stumble this Post!
I beg to differ. Normally, a wrong entry in the semaphore in the /etc/system file will cause the DB to be unable to start up.

If the error you see happens a couple of days after restarting the DB, most likely it is due to fragmentation shared pool.

These are the things you can try in order:
1) Check for SQL that are not using binding variable, get your developers to change them to binding variable. This will reduce the number of distinct SQLs required to be cached in the shared_pool.

2) Increase the shared_pool and reduce the shared_pool_reserved size. This will allow more distinct SQLs to be cached in shared_pool and at the same time, reduce the usage of shared_pool_reserved. (This will help if the fragmented shared pool you are facing is at the shared_pool_reserved)

3) Check Oracle metalink for bugs related to this oracle error. I do know that Oracle 9i has a bug related to this, not too sure on Oracle 8i.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0