Home » RDBMS Server » Server Administration » ORA-04031: unable to allocate 4064 bytes of shared memory (Oracle 11g XE, MS Windows 7 Enterprise, 8GB RAM)
ORA-04031: unable to allocate 4064 bytes of shared memory [message #683293] |
Fri, 25 December 2020 13:22 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Hello!
It is a database that runs on my laptop and it has been doing fine for years. I don't do anything with the database (such as training to be a DBA), I don't install new software all the time (can't remember what & when I installed last). XE installation was the default one - matter of several NEXT - NEXT clicks.
However, lately (the last 2-3 months), when trying to create a simple table (or a procedure, function ... whatever), it raises the error, e.g.
CREATE TABLE TEST
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-04031: unable to allocate 4064 bytes of shared memory ("shared
pool","select name,password,datats#...","sga heap(1,0)","kglsim heap")
I "fix" it by shutting down the database and starting it up again.
(Yes, I know, BlackSwan will ask what changed 3 months ago? I don't remember. Nothing, as far as I can tell).
Laptop is rarely shut down; I hibernate it, mostly so that I wouldn't have to wait for everything (XE included) to start up every time I switch the laptop on. Maybe that's what affects the databases? However, how come it worked OK for years?
I Googled, of course. People keep talking about SGA and Shared pool size and stuff; but, I didn't change anything since the database was installed, there's absolutely nothing that runs in it except my silly SELECT this and SELECT that from EMP.
The database itself doesn't contain any valuable data. It means that I could uninstall XE and install it again.
Though, I'd like to know whether there's some easy fix for that problem - apart from shutdown/startup, of course
Regards,
LF
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 15 19:16:59 CST 2024
|