Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Database locked up out of memory - Need to kill sessions. Whats your priority

oraLaroFeb 26 2024 — edited Feb 26 2024

19.19

Hit a prod issue last week middle of the day, ORA-4031 memory errors. Any session trying to login got the 4031 including as sysdba on host. Turns out it was a bug, but root cause not important for this discussion.

Rather than shutdown the database which causes its own problems, we killed the pids of all LOCAL=NO sessions which frees up enough memory for us to get in to locate the offending culprit chewing the memory and kill that which worked for us.

Got me thinking afterwards, is there an order of preference of what processes you would kill to free up memory in such an event that wouldnt bring the database down?

For example Job processes? “j00n”.

Comments
Post Details
Added on Feb 26 2024
5 comments
365 views