Database instance locks up
The apparent complete lock-up of the database. It is still possible to connect to the database, but any attempt to query it results in the application (or Oracle tool) locking up.
- Out of archive log space
- If the archive log space has been exhausted, then oracle will display a message on the console stating this.
- Shared pool exhausted
Alternately, if the problem is repeatable then consider monitoring Oracle memory usage (i.e. shared pool size and block buffer usage). See also trouble shooting notes for ‘Database instance failure’.
The archive log space has been exhausted. Look at the drive to which archive logs are written. It will have either no space left or insufficient space to write the next archive log.
- Create more space. Try emptying the wastebasket.
- Delete all the archive logs. This will free up space, but means that an incremental backup of the database is no longer possible. The next database backup must therefore be a full one.
Oracle uses a least-recently-used algorithm to determine what to remove from the shared pool. Accordingly, a database error caused by the shared pool being exhausted – with no obvious oracle error – is unlikely.
- Oracle instance dies. Application sees corresponding connection error but no obvious error indicating why the instance has failed.
- Looking in the file ‘
<SID>LCK0.TRC’ on the server shows the error “
WARNING: out of shared memory while allocating lock” recorded at the end of the file. This indicates that shared pool is being exhausted because the shared pool is too small given the number of locks Oracle has been configured to use.
If the error is repeatable, the monitoring of available free memory in the shared pool will show the available free memory reducing to a few percent shortly before the instance goes down.
- Increase the initialisation parameter
- If the error was generated whilst Oracle was allocating a lock, try reducing the number of locks.
This page represents one page of many pages of notes I made whilst working with Oracle 7 through to 10i. I now no longer work with Oracle databases, but hope that these notes will continue to be of benefit to others.
About the author: Brian Cryer is a dedicated software developer and webmaster. For his day job he develops websites and desktop applications as well as providing IT services. He moonlights as a technical author and consultant.