Oracle 9i shared memory issue
Below mentioned is the error raised during retrieval of content details from XMLDB
StatementCallback; uncategorized SQLException for SQL [Select count(1) from BRSK.medv_brpubdoc_tab e where extractValue(value(e),'/brpubdoc/relationdoc/@document_number')='BR-RELATE-100002-TEST']; SQL state [61000]; error code [4031]; ORA-04031: unable to allocate 3286464 bytes of shared memory ("shared pool","Select count(1) from BRSK.me...","sql area","kkdoattds : qcdogtld").
We faced the similar during registration of schema and to resolve the issue we did the below mentioned changes towards the oracle 9i database instance (Onsite)
1) increased shared_pool_reserved_size from 8M to 16M,
2) java_pool_size from 150M to 200M
3) db_cache_size from 300M to 350M.
4) increased shared_pool_size from 150M to 250M.
we are facing this error frequently.Would like to know about the required parameter values related to memory that need to be configured for xml db.Please help me out on this ASAP.
Thanks
Srinivas
Be aware that you could be hitting a bug. Because 9i is not supported anymore I would suggest to upgrade to 10.2.0.3
Don't be afraid to increase you memory structures a little bit more ;-)
What do you thing about a shared_pool_size of >= 500 Mb.
What database version are you working with?
Similar Messages
-
How is SWAP space and Oracle's Shared Memory related ?
Platform: RHEL 5.4
Oracle Version: 11.2
I was trying to increase MEMORY_TARGET to 15g. Then I encountered the following error
SQL> alter system set memory_max_target=20g scope=spfile;
System altered.
SQL> alter system set memory_target=15g scope=spfile;
System altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL>
SQL> startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORA-00845: MEMORY_TARGET not supported on this system
SQL>
SQL>
SQL> select name from v$database;
select name from v$database
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 189 Serial number: 9From the below post
MEMORY_TARGET not supported on this system
I gathered that In Linux, if you want to set MEMORY_TARGET, MEMORY_MAX_TARGET to nGB , then you should have a SWAP ( /dev/shm ) of nGB.
My Swap was only 16gb and I was trying to set memory_max_target to 20g
$ df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 16G 7.2G 8.6G 46% /dev/shmNow, I am wondering how is Oracle's Shared Memory (SGA+PGA) related to SWAP space in a server ? Shouldn't Oracle's Shared Memory be related to Physical RAM rather than disk based SWAP space ?related question:
In the above mentioned OTN article it says ,
You could encounter ORA-00845 if your shared memory is not mapped to /dev/shm
I think he meant
You could encounter ORA-00845 if your SWAP space is not mapped to /dev/shm .
Am I right ? -
Hi every one,
i have problem installing oracle 8i database in my branded system hp-PIV system. while it gives the following error during initilizing database
ORA 04031: unable to allocate 'size in number' of shared memory ("shared pool" ,"unknown object ", "sga heap"," db_block_buffer")
while it installs fine in all hp-PIII machines but gives above error in all hp-PIV branded machines.
oracle 9i installs accurately in all machines. what is the actual problem?
Regards & Thanks
Najeeb04031, 00000, "unable to allocate %s bytes of shared memory (\"%s\",\"%s\",\"%s\",\"%s\")"
// *Cause: More shared memory is needed than was allocated in the shared
// pool.
// *Action: If the shared pool is out of memory, either use the
// dbms_shared_pool package to pin large packages,
// reduce your use of shared memory, or increase the amount of
// available shared memory by increasing the value of the
// INIT.ORA parameters "shared_pool_reserved_size" and
// "shared_pool_size".
// If the large pool is out of memory, increase the INIT.ORA
// parameter "large_pool_size". -
Shared memory settings from 32 to 64 bit Oracle
Hello,
Questions about Oracle and Shared Memory from 32bit to 64bit Oracle
I have a Sun Sparc V880 server running Solaris 9 with 8xCPUs and 16gb of Ram. It is currently running 6 Oracle (32 bit) 9.2 databases which we are planning to upgrade to 10.2. My question regards the setting of the Solaris 9 kernel parameters speciifically 'shminfo_shmmax'. This is currently set to - 'shmsys:shminfo_shmmax=4294967295'which I believe is the maximum amount of shared memory which can be allocated to a 32bit version of Oracle and the one recommended by Oracle.
Running 'show sga' on all of the current 9.2 databases returns
Total System Global Area
DB SGA(bytes)
db1 772528008
db2 789305244
db3 772528008
db4 114021228
db5 791238556
db6 789305244
Total = 4045703524 bytes or 3.76786 gb.
1. Does this mean that each Oracle 32bit database can only use up to a maximum of about 4gb of shared memory or that all 6 together can only use up to 4gb ? resulting in 12gb being available for other (non Oracle) processes.
2. I have noticed (through 'sar' stats) that the server occasionally pages (non zero values for pgscan/s and pgfree/s etc.). Since the server mostly only runs the Oracle databases, is this because Oracle can only use circa 4gb of Ram before it starts paging ?
3. If both 9.2 and 10.2 Oracle databases are run on the server would increasing the value of shminfo_shmmax then allow the 10.2 databases to use more of the 16gb of Ram, while still limiting the 32bit databases to the 4gb limit ?
Any help here would be appreciatedPl see if MOS Doc 467960.1 (How Important It Is To Set shmsys:shminfo_shmmax Above 4 GB) and the notes it references can help
HTH
Srini -
Cannot create data store shared-memory segment error
Hi,
Here is some background information:
[ttadmin@timesten-la-p1 ~]$ ttversion
TimesTen Release 11.2.1.3.0 (64 bit Linux/x86_64) (cmttp1:53388) 2009-08-21T05:34:23Z
Instance admin: ttadmin
Instance home directory: /u01/app/ttadmin/TimesTen/cmttp1
Group owner: ttadmin
Daemon home directory: /u01/app/ttadmin/TimesTen/cmttp1/info
PL/SQL enabled.
[ttadmin@timesten-la-p1 ~]$ uname -a
Linux timesten-la-p1 2.6.18-164.6.1.el5 #1 SMP Tue Oct 27 11:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@timesten-la-p1 ~]# cat /proc/sys/kernel/shmmax
68719476736
[ttadmin@timesten-la-p1 ~]$ cat /proc/meminfo
MemTotal: 148426936 kB
MemFree: 116542072 kB
Buffers: 465800 kB
Cached: 30228196 kB
SwapCached: 0 kB
Active: 5739276 kB
Inactive: 25119448 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 148426936 kB
LowFree: 116542072 kB
SwapTotal: 16777208 kB
SwapFree: 16777208 kB
Dirty: 60 kB
Writeback: 0 kB
AnonPages: 164740 kB
Mapped: 39188 kB
Slab: 970548 kB
PageTables: 10428 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 90990676 kB
Committed_AS: 615028 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 274804 kB
VmallocChunk: 34359462519 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
extract from sys.odbc.ini
[cachealone2]
Driver=/u01/app/ttadmin/TimesTen/cmttp1/lib/libtten.so
DataStore=/u02/timesten/datastore/cachealone2/cachealone2
PermSize=14336
OracleNetServiceName=ttdev
DatabaseCharacterset=WE8ISO8859P1
ConnectionCharacterSet=WE8ISO8859P1
[ttadmin@timesten-la-p1 ~]$ grep SwapTotal /proc/meminfo
SwapTotal: 16777208 kB
Though we have around 140GB memory available and 65GB on the shmmax, we are unable to increase the PermSize to any thing more than 14GB. When I changed it to PermSize=15359, I am getting following error.
[ttadmin@timesten-la-p1 ~]$ ttIsql "DSN=cachealone2"
Copyright (c) 1996-2009, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "DSN=cachealone2";
836: Cannot create data store shared-memory segment, error 28
703: Subdaemon connect to data store failed with error TT836
The command failed.
Done.
I am not sure why this is not working, considering we have got 144GB RAM and 64GB shmmax allocated! Any help is much appreciated.
Regards,
RajThose parameters look ok for a 100GB shared memory segment. Also check the following:
ulimit - a mechanism to restrict the amount of system resources a process can consume. Your instance administrator user, the user who installed Oracle TimesTen needs to be allocated enough lockable memory resource to load and lock your Oracle TimesTen shared memory segment.
This is configured with the memlock entry in the OS file /etc/security/limits.conf for the instance administrator.
To view the current setting run the OS command
$ ulimit -l
and to set it to a value dynamically use
$ ulimit -l <value>.
Once changed you need to restart the TimesTen master daemon for the change to be picked up.
$ ttDaemonAdmin -restart
Beware sometimes ulimit is set in the instance administrators "~/.bashrc" or "~/.bash_profile" file which can override what's set in /etc/security/limits.conf
If this is ok then it might be related to Hugepages. If TT is configured to use Hugepages then you need enough Hugepages to accommodate the 100GB shared memory segment. TT is configured for Hugepages if the following entry is in the /u01/app/oracle/EXALYTICS_MWHOME/TimesTen/tt1122/info/ttendaemon.options file:
-linuxLargePageAlignment 2
So if configured for Hugepages please see this example of how to set an appropriate Hugepages setting:
Total the amount of memory required to accommodate your TimesTen database from /u01/app/oracle/EXALYTICS_MWHOME/TimesTen/tt1122/info/sys.odbc.ini
PermSize+TempSize+LogBufMB+64MB Overhead
For example consider a TimesTen database of size:
PermSize=250000 (unit is MB)
TempSize=100000
LogBufMB=1024
Total Memory = 250000+100000+1024+64 = 351088MB
The Hugepages pagesize on the Exalytics machine is 2048KB or 2MB. Therefore divide the total amount of memory required above in MB by the pagesize of 2MB. This is now the number of Hugepages you need to configure.
351088/2 = 175544
As user root edit the /etc/sysctl.conf file
Add/modify vm.nr_hugepages= to be the number of Hugepages calculated.
vm.nr_hugepages=175544
Add/modify vm.hugetlb_shm_group = 600
This parameter is the group id of the TimesTen instance administrator. In the Exalytics system this is oracle. Determine the group id while logged in as oracle with the following command. In this example it’s 600.
$ id
$ uid=700(oracle) gid=600(oinstall) groups=600(oinstall),601(dba),700(oracle)
As user root edit the /etc/security/limits.conf file
Add/modify the oracle memlock entries so that the fourth field equals the total amount of memory for your TimesTen database. The unit for this value is KB. For example this would be 351088*1024=359514112KB
oracle hard memlock 359514112
oracle soft memlock 359514112
THIS IS VERY IMPORTANT in order for the above changes to take effect you to either shutdown the BI software environment including TimesTen and reboot or issue the following OS command to make the changes permanent.
$ sysctl -p
Please note that dynamic setting (including using 'sysctl -p') of vm.nr_hugepages while the system is up may not give you the full number of Hugepages that you have specified. The only guaranteed way to get the full complement of Hugepages is to reboot.
Check Hugepages has been setup correctly, look for Hugepages_Total
$ cat /proc/meminfo | grep Huge
Based on the example values above you would see the following:
HugePages_Total: 175544
HugePages_Free: 175544 -
Oracle not Available, Shared Memory realm doesn't exist
Hi,
I have problem during XE installation on Windows 2003 R2 SP 2 Enterprise edition. I have uninstall the oracle xe and the result still the same. Finally I uninstall the windows and start all over again, surprisingly the result still the same. FYI, we normally has no issue during installation because this is part of our system we sell to our customer which require oracle xe. This is the first time we have seen this issue.
ORA-01034 : Oracle Not available
ORA-27101 : Shared memory realm doesn't exist.
Oracle XE and listener services is started in the windows services.
if we try to do startup the following message occured.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORA-44412: XE edition memory parameter invalid or not specified
SQL>
I can send you the oracle_xe log, init ora, and OpsBuildAll.log to create the database.
When we compare with the working installation, we saw that the size of oraclexe folder is less, it's just 233MB while the working one is over 1GB. After investigation, found out that the .dbf files is not avaiable in the oradata folder, i have tried to copy those files from the working one but the problem stay the same, probably there are a lot of files more missing.
Appreciate your help on this.
Thanks,
AgusHi,
Please find the log below
SQL> startup nomount pfile="C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts\init.ora";
ORA-44412: XE edition memory parameter invalid or not specified
SQL> @C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts\rmanRestoreDatafiles.sql;
SQL> set echo off;
select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
ERROR at line 1:
ORA-01034: ORACLE not available
declare
ERROR at line 1:
ORA-01034: ORACLE not available
select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
ERROR at line 1:
ORA-01034: ORACLE not available
Connected to an idle instance.
SQL> spool C:\oraclexe\app\oracle\product\10.2.0\server\config\log\cloneDBCreation.log
I have css log as well if you are interesting to see.
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Tue Mar 20 14:13:29 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5308M/6133M, Ph+PgF:7152M/8000M, VA:1933M/2047M
Tue Mar 20 14:13:29 2012
Starting ORACLE instance (normal)
Tue Mar 20 14:13:30 2012
Starting ORACLE instance (normal)
Tue Mar 20 14:13:31 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Tue Mar 20 19:43:31 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5351M/6133M, Ph+PgF:7150M/8000M, VA:1932M/2047M
Tue Mar 20 19:43:31 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Tue Mar 20 19:55:39 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5254M/6133M, Ph+PgF:7052M/8000M, VA:1932M/2047M
Tue Mar 20 19:55:39 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Wed Mar 21 05:23:41 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5259M/6133M, Ph+PgF:6894M/8000M, VA:1932M/2047M
Wed Mar 21 05:23:41 2012
Starting ORACLE instance (normal)
Wed Mar 21 05:29:12 2012
Starting ORACLE instance (normal)
Wed Mar 21 05:31:42 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Wed Mar 21 05:50:45 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5143M/6133M, Ph+PgF:6768M/8000M, VA:1932M/2047M
Wed Mar 21 05:50:45 2012
Starting ORACLE instance (normal)
Wed Mar 21 06:02:38 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Wed Mar 21 06:04:03 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5205M/6133M, Ph+PgF:6866M/8000M, VA:1944M/2047M
Wed Mar 21 06:04:03 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Wed Mar 21 06:06:00 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5195M/6133M, Ph+PgF:6837M/8000M, VA:1944M/2047M
Wed Mar 21 06:06:00 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Wed Mar 21 06:06:11 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5195M/6133M, Ph+PgF:6836M/8000M, VA:1944M/2047M
Wed Mar 21 06:06:11 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Wed Mar 21 06:06:40 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5191M/6133M, Ph+PgF:6832M/8000M, VA:1944M/2047M
Wed Mar 21 06:06:40 2012
Starting ORACLE instance (normal)
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Wed Mar 21 06:07:18 2012
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows NT Version V5.2 Service Pack 2
CPU : 24 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:5191M/6133M, Ph+PgF:6831M/8000M, VA:1932M/2047M
Wed Mar 21 06:07:18 2012
Starting ORACLE instance (normal)
Wed Mar 21 06:07:38 2012
Shutting down instance (abort)
Wed Mar 21 06:07:51 2012
Starting ORACLE instance (normal)
Wed Mar 21 06:13:31 2012
Starting ORACLE instance (normal)
I have finished installing the XE on windows but result is the same, dbf file is not created on oradata folder.
Thanks,
Agus -
Oracle Error 'ORA-27102: out of memory' - Shared memory parameters correct.
Advice please!
We’ve recently shut down our Oracle test server in order to increase file system capacity. When we rebooted some of the databases wouldn’t start up. It started the first 4 instances and then errored out saying “ORA-27102: out of memory“.
I’m pretty sure it’s nothing to do with the file system because we actually reverted back to the old file system and the databases still wouldn’t start. I think it’s more likely that something’s gone awry whilst the databases were actually running, and the problem has only manifested itself once we stopped and restarted them.
I have researched the error and forud this artical and similar: http://var-adm.blogspot.co.uk/2013/04/adjust-solaris-10-shared-memory-to.html
Everything suggests that Oracle is trying to create a larger shared memory segment than is allowed. The thing is, we’ve never changed our shared memory settings, and one minute it was working, the next it isn’t. To confirm this I checked the shared memory, which is as follows:
sswift4# prctl -n project.max-shm-memory $$
process: 926: bash
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 7.64GB - deny -
system 16.0EB max deny -
As suggested in the above article, I checked the alert log and found the ‘WARNING: EINVAL’ message which is as follows:
WARNING: EINVAL creating segment of size 0x000000005e002000
Converting this to decimal, it’s trying to create something of 1.5 GB, well within the shared memory settings, which suggests that this isn’t the problem.
We are running Oracle 10g and 11g on Solaris 10 Sparc. The error does not seem to be instance specific, we have 8 instances on this box all with SGA max of 2000m. The server has 32GB of memory available.
Any advice would be helpful.
Thanks in advance.
DebsThanks for your quick responses - we have now resolved the issue.
The shared memory value was set on the command line but not saved.
Therefore once we rebooted it lost the configuration. this has been altered by our UNIX admin and all DBs have started without issue.
Thanks
Debs -
Oracle 11g - memory issue.
hi,
Recently we have upgraded to oracle 11.2.0.1 from 10.2.0.4. Below memory issues shows up and system crashes.
We included parameter MEMORYIMM_MODE_WITHOUT_AUTOSGA=FALSE in init file. Despite this happens.
ORA-04031: unable to allocate 264 bytes of shared memory ("shared pool","unknown object","CCUR^4e9657a","kglob")
Fri May 20 18:43:45 2011
Sweep [inc][64733]: completed
Sweep [inc][64732]: completed
We increased db_cache and shared_pool memory, does not help.
Would appreciate any feedback on this.
Thanks,
RajSHi Raj
with experience I noticed these memory issues (ORA-0403 ) issues with 11.2.0.1
say some bugs, which aren't easy to fix.
Better upgrade to 11.2.0.2.
May be not the proper answer to your question Just a tip.
BR
Venkat -
Solaris 10, Oracle 10g, and Shared Memory
Hello everyone,
We've been working on migrating to Solaris 10 on all of our database servers (I'm a UNIX admin, not a DBA, so please be gentle) and we've encountered an odd issue.
Server A:
Sun V890
(8) 1.5Ghz CPUs
32GB of RAM
Server A was installed with Solaris 10 and the Oracle data and application files were moved from the old server (the storage hardware was moved between servers). Everything is running perfectly, and we're using the resource manager to control the memory settings (not /etc/system)
The DBAs then increase the SGA of one of the DBs on the system from 1.5GB to 5GB and it fails to start (ORA-27102). According to the information I have, the maximum shared memory on this system should be 1/4 of RAM (8 GB, actually works out to 7.84 GB according to prctl). I verified the other shared memory/semaphore settings are where they should be, but the DB would not start with a 5 GB SGA. I then decided to just throw a larger max shared memory segment at it, so I used the projmod to increase project.max-shm-memory to 16GB for the project Oracle runs under. The DB now starts just fine. I cut it back down to 10GB for project.max-shm-memory and the DB starts ok. I ran out of downtime window, so I couldn't continue refining the settings.
Running 'ipcs -b' and totalling up the individual segments showed we were using around 5GB on the test DB (assuming my addition is correct).
So, the question:
Is there a way to correlate the SGA of the DB(s) into what I need the project.max-shm-memory to? I would think 7.84GB would be enough to handle a DB with 5GB SGA, but it doesn't appear to be. We have some 'important' servers getting upgraded soon and I'd like to be able to refine these numbers / settings before I get to them.
Thanks for your time,
StevenTo me, setting a massive shared memory segment just seems to be inefficient. I understand that Oracle is only going to take up as much memory (in general) as the SGA. And I've been searching for any record of really large shared memory segments causing issues but haven't found much (I'm going to contact Sun to get their comments).
The issue I am having is that it doesn't make sense that the DB with a 5GB SGA is unable to startup when there is an 8GB max shared memory segment, but a 10GB (and above) seems to work. Does it really need double the size of the SGA when starting up, but 'ipcs' shows it's only using the SGA amount of shared memory? I have plans to cut it down to 4GB and test again, as that is Oracle's recommendation. I also plan to run the DB startup through truss to get a better handle on what it's trying to do. And, if it comes down to it, I'll just set a really big max shared memory segment, I just don't want it to come back and cause an issue down the road.
The current guidance on Metalink still seems to be suggesting a 4GB shared memory segment (I did not get a chance to test this yet with the DB we're having issues with).
I can't comment on how the DBA specifically increased the SGA as I don't know what method they use. -
Shared memory in solaris 10 with oracle
Hi, I am a newbie to solaris and i have some questions on shared memory, Oracle in Solaris
My Questions might seem different, however please do read and try to answer. Thanks in advance.
1) if a solaris server has say 40gb of Ram, what would be the maximum size of a shared memory segment in this machine?
I know that if the server has 40GB. then max shared memory size is 10GB i.e. one fourth of ram, however not sure
2) What is the maximum size of a shared memory segment in solaris that a root user can define.
+ i know that its some where near 14 GB not very sure +
3) Assume i have created a user X and i allocated say 10GB limit for this user for shared memory.
I login to solaris using X and now, can i increase the size of the shared memory that this user can use?
I have a situation, where the root user, created a user named DBA and the root user allocated some 15gb for this DBA user as the max SHM limit.
Now the DBA user has set the max limit for shared memory as 1TB, which is causing hell of problems in the system.
* I am Not very sure on the concept. I am new to this product and facing this problem. please advice.*
+ Thanks +
Krishnakanth (Simply KK)Not sure why your "oracle" user (owner who will be creating the instance) has been assigned the project user.root. I would say create a seperate project may be "dba" and give access to this project to the owner of the user who will be creating the oracle instance.
and then try to issue the command:
prctl -n project.max-shm-memory -v 8gb -r -i project dba
and check to see if you are still facing a problem?
Edited by: somjitdba on Apr 2, 2009 9:54 PM -
Oracle 10G - ORA-27100 & ORA-27101 shared memory realm
Suddenly my database started having this issue :
I set ORACLE_SID=Build
sqlplus /nolog
connect sys/dba as sysdba
Connected to an idle instance.
startup
I get the error
ORA-27100: shared memory realm already exists
and so I run
shutdown
I get the error
ORA-27101: shared memory realm does not exist
I delete and recreated the instance, I deleted the password file and recreated the password file.. but the problem still exists. I rebooted the machine but I am not able to start the database. I am not able to connect to the database.
Database Verion : 10.1.0.2.0
Windows Version : Microsoft Windows Server 2003 Advanced Server
There are not errors or any trace files. Alert log just shows this :
Thu May 27 10:33:35 2004
ORACLE V10.1.0.2.0 - Production vsnsta=0
vsnsql=13 vsnxtr=3
Windows Server 2003 Version V5.2
CPU : 1 - type 586, 1 Physical Cores
Process Affinity: 0x00000000
Memory (A/P) : PH:2582M/3069M, PG:4637M/4964M, VA:1959M/2047M
Thu May 27 10:33:35 2004
Starting ORACLE instance (normal)
Thu May 27 10:34:43 2004
Starting ORACLE instance (normal)
Any help in this is greatly appreciated.
-NagsI had similar error on 9i, I think it want away when I created DB using dbca. I take it you are creating db with dbca, if not, in command prompt type:
C:\> dbca -
ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exi
Hi all,
suddenly our oracle 10g database stopped working. When we tried export the database following was the output
C:\Documents and Settings\Administrator>EXP PMIS/PMIS FILE=C:\PMIS.DMP
Export: Release 10.2.0.1.0 - Production on Wed Mar 25 16:15:08 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
EXP-00056: ORACLE error 1034 encountered
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
EXP-00005: all allowable logon attempts failed
EXP-00000: Export terminated unsuccessfullyalert log file had the output as
Wed Mar 25 16:02:12 2009
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =10
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:>sessions = 49
>__shared_pool_size = 71303168
>__large_pool_size = 8388608
>__java_pool_size = 4194304
>__streams_pool_size = 0
>spfile = C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DBS\SPFILEXE.ORA
>sga_target = 146800640
>control_files = C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
>__db_cache_size = 58720256
>compatible = 10.2.0.1.0
>db_recovery_file_dest = C:\oraclexe\app\oracle\flash_recovery_area
>db_recovery_file_dest_size= 10737418240
>undo_management = AUTO
>undo_tablespace = UNDO
>remote_login_passwordfile= EXCLUSIVE
>dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
>shared_servers = 4
>job_queue_processes = 4
>audit_file_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\ADUMP
>background_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\BDUMP
>user_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\UDUMP
>core_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\CDUMP
>db_name = XE
>open_cursors = 300
>os_authent_prefix =
>pga_aggregate_target = 41943040
PMON started with pid=2, OS id=1632
PSP0 started with pid=3, OS id=1312
MMAN started with pid=4, OS id=200
DBW0 started with pid=5, OS id=1864
LGWR started with pid=6, OS id=188
CKPT started with pid=7, OS id=1328
SMON started with pid=8, OS id=1848
RECO started with pid=9, OS id=1760
CJQ0 started with pid=10, OS id=1920
MMON started with pid=11, OS id=768
MMNL started with pid=12, OS id=948
Wed Mar 25 16:02:13 2009
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 4 shared server(s) ...
Oracle Data Guard is not available in this edition of Oracle.
Wed Mar 25 16:02:13 2009
alter database mount exclusive
Wed Mar 25 16:02:17 2009
Setting recovery target incarnation to 2
Wed Mar 25 16:02:17 2009
Successful mount of redo thread 1, with mount id 2563569989
Wed Mar 25 16:02:17 2009
Database mounted in Exclusive Mode
Completed: alter database mount exclusive
Wed Mar 25 16:02:17 2009
alter database open
Wed Mar 25 16:02:18 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_lgwr_188.trc:
ORA-00600: internal error code, arguments: [3700], [1], [15], [2], [2], [], [], []
Wed Mar 25 16:02:18 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_lgwr_188.trc:
ORA-00600: internal error code, arguments: [3700], [1], [15], [2], [2], [], [], []
Wed Mar 25 16:02:18 2009
LGWR: terminating instance due to error 470
Wed Mar 25 16:02:19 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_dbw0_1864.trc:
ORA-00470: LGWR process terminated with error
Wed Mar 25 16:02:19 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_ckpt_1328.trc:
ORA-00470: LGWR process terminated with error
Wed Mar 25 16:02:19 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_psp0_1312.trc:
ORA-00470: LGWR process terminated with error
Wed Mar 25 16:02:19 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_mman_200.trc:
ORA-00470: LGWR process terminated with error
Wed Mar 25 16:02:19 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_pmon_1632.trc:
ORA-00470: LGWR process terminated with error
Wed Mar 25 16:02:19 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_reco_1760.trc:
ORA-00470: LGWR process terminated with error
Wed Mar 25 16:02:19 2009
Errors in file c:\oraclexe\app\oracle\admin\xe\bdump\xe_smon_1848.trc:
ORA-00470: LGWR process terminated with error
Instance terminated by LGWR, pid = 188Again when we tried by connecting sqlplus following was output
SQL> connect sys/manager as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 146800640 bytes
Fixed Size 1286220 bytes
Variable Size 83890100 bytes
Database Buffers 58720256 bytes
Redo Buffers 2904064 bytes
Database mounted.
ORA-03113: end-of-file on communication channelWe actually need database dump for user PMIS, any help would be highly appreciatedHi Wim
You should say that "It may be Control File problem", but you shouldn't say that "it's due to Control File" problem
Please refer to Errors Documentation for more information on ORA-00600
http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e0.htm#sthref371
ORA-00600: internal error code, arguments: [string], [string], [string], [string], [string], [string], [string], [string]
Cause: This is the generic internal error number for Oracle program exceptions. This indicates that a process has encountered an exceptional condition.
Action: Report as a bug - the first argument is the internal error number
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com -
Dispatcher stopped due to shared memory realm does not exist in Oracle 10g
Hi Gurus,
Suddenly my Message server stopped, i have checked R3trans -d its givign following message
D:\>R3trans -d
This is R3trans version 6.14 (release 700 - 12.12.08 - 14:04:00).
unicode enabled version
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'CHE'"
R3trans finished (0012).
So i have restarted the server, now message server started then Dispatcher has been stopped again error is same here i am pasting trans.log file
4 ETW000 http://dboci.c ,00000 *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1034
4 ETW000 44375 1.224660
4 ETW000 dev trc ,00000 server_detach(con_hdl=0,stale=1,svrhp=02F07EDC) 23 1.224683
4 ETW000 dev trc ,00000 Detaching from DB Server (con_hdl=0,svchp=02EF47E8,srvhp=02F07EDC)
4 ETW000 32 1.224715
4 ETW000 dev trc ,00000 Deallocating server context handle 02F07EDC 688 1.225403
4 ETW000 http://dbsloci. ,00000 *** ERROR => CONNECT failed with sql error '1034'
4 ETW000 49 1.225452
4 ETW000 dev trc ,00000 set_ocica() -> OCI or SQL return code 1034 25 1.225477
4 ETW000 dev trc ,00000 Try to connect with default password 74 1.225551
4 ETW000 dev trc ,00000 Connecting as SAPSR3/<pwd>@CHE on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
4 ETW000 62 1.225613
4 ETW000 dev trc ,00000 Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
4 ETW000 37 1.225650
4 ETW000 dev trc ,00000 0 UTF8 1 02EEF9E0 02EF5014 02EF489C
4 ETW000 38 1.225688
4 ETW000 dev trc ,00000 Allocating server context handle 19 1.225707
4 ETW000 dev trc ,00000 Attaching to DB Server CHE (con_hdl=0,svchp=02EF47E8,srvhp=02F07EDC)
4 ETW000 43 1.225750
4 ETW000 dev trc ,00000 Assigning server context 02F07EDC to service context 02EF47E8
4 ETW000 14810 1.240560
4 ETW000 dev trc ,00000 Assigning username to user session 02F1BC88 28 1.240588
4 ETW000 dev trc ,00000 Assigning password to user session 02F1BC88 29 1.240617
4 ETW000 dev trc ,00000 Starting user session (con_hdl=0,svchp=02EF47E8,srvhp=02F07EDC,usrhp=02F1BC88)
4 ETW000 38 1.240655
4 ETW000 http://dboci.c ,00000 *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1034
4 ETW000 49161 1.289816
4 ETW000 dev trc ,00000 server_detach(con_hdl=0,stale=1,svrhp=02F07EDC) 30 1.289846
4 ETW000 dev trc ,00000 Detaching from DB Server (con_hdl=0,svchp=02EF47E8,srvhp=02F07EDC)
4 ETW000 73 1.289919
4 ETW000 dev trc ,00000 Deallocating server context handle 02F07EDC 828 1.290747
4 ETW000 http://dbsloci. ,00000 *** ERROR => CONNECT failed with sql error '1034'
4 ETW000 108 1.290855
4 ETW000 dev trc ,00000 set_ocica() -> OCI or SQL return code 1034 22 1.290877
4 ETW000 dblink ,00431 ***LOG BY2=>sql error 1034 performing CON dblink#5 @ 431
4 ETW000 21113 1.311990
4 ETW000 dblink ,00431 ***LOG BY0=>ORA-01034: ORACLE not available 30 1.312020
4 ETW000 ORA-27101: shared memory realm does not exist dblink#5 @ 431
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'CHE'"Is this your system ABAP+JAVA?
As i'm too getting this problem in AS Java, R3trans -d does fail with RC-12.
But all other my applications are running fine, So need to know the exact reason for same, so any help in this will be appreciated. -
Oracle 11g problem with creating shared memory segments
Hi, i'm having some problems with the oracle listener, when i'm trying to start it or reload it I get the follow error massages:
TNS-01114: LSNRCTL could not perform local OS authentication with the listener
TNS-01115: OS error 28 creating shared memory segment of 129 bytes with key 2969090421
My system is a: SunOS db1-oracle 5.10 Generic_144489-06 i86pc i386 i86pc (Total 64GB RAM)
Current SGA is set to:
Total System Global Area 5344731136 bytes
Fixed Size 2233536 bytes
Variable Size 2919238464 bytes
Database Buffers 2399141888 bytes
Redo Buffers 24117248 bytes
prctl -n project.max-shm-memory -i process $$
process: 21735: -bash
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 64.0GB - deny
I've seen that a solution might be "Make sure that system resources like shared memory and heap memory are available for LSNRCTL tool to execute properly."
I'm not exactly sure how to check that there is enough resources?
I've also seen a solution stating:
"Try adjusting the system-imposed limits such as the maximum number of allowed shared memory segments, or their maximum and minimum sizes. In other cases, resources need to be freed up first for the operation to succeed."
I've tried to modify the "max-sem-ids" parameter and set it to recommended 256 without any success and i've kind of run out of options what the error can be?
/RegardsI see, I do have the max-shm-ids quite high already so it shouldn't be a problem?
user.oracle:100::oracle::process.max-file-descriptor=(priv,4096,deny);
process.max-stack-size=(priv,33554432,deny);
project.max-shm-memory=(priv,68719476736,deny) -
ORA-04031: unable to allocate 33568 bytes of shared memory in Oracle 10g
Hi,
I am getting following message frequently while taking export in Oracle 10g database:-
EXP-00008: ORACLE error 4031 encountered
ORA-04031: unable to allocate 33568 bytes of shared memory ("shared pool","DBMS_REPCAT_UTL","PL/SQL MPCODE","BAMIMA: Bam Buffer")
ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_REPCAT_UTL"
ORA-06512: at "SYS.DBMS_REPCAT_EXP", line 87
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_EXP.schema_info_exp
EXP-00008: ORACLE error 4031 encountered
ORA-04031: unable to allocate 16416 bytes of shared memory ("shared pool","SELECT SYNNAM, SYNNAM, SYNTA...","kgghtInit","kgghtInit")
EXP-00000: Export terminated unsuccessfully
Whats could be the reason?There could be a few reasons causing the problem. From literal message it would look like your shared pool size is small and you need to increase. But the root cause of the problem is a little more complicated than that. I suggest you read metalink doc
Diagnosing and Resolving Error ORA-04031
Doc ID: Note:146599.1
Maybe you are looking for
-
I get a message saying my apple id has been disabled when i try to purchase a movie
I get a message saying "my apple Id has been disabled. I've tried changing password, other things that was suggested, but still won't let me purchase a movie. I can go into my account and edit, but can't purchase? Any ideas?
-
"Assertion failed" error when executing a simple UCI program
I am using a simple UCI program (tt1.c) with Xmath version 7.0.1 on Sloaris 2.8 that performs the followings: - Start Xmath701 - Sleep 10 Seconds - Load a sysbuild model - Stop Xmath I am calling the uci executable using the following command: > /usr
-
CFUPDATE Query Error **Help**
Ok, I am at a serious loss and am getting a headache trying to figure out what exactly is wrong with this simple code. I have a form that pulls information from a database and allows users to update the information. The code for that page is: <CFQUER
-
I'm new to designing my own website. I have a lot of sound to make available to visitors. On some pages, the player will only need to play a single file. On other pages, it will play many files. This is not music, per se, but a website showcasing ani
-
Calculate stall time during HTTPNetStream.seek()
Hi, I am trying to calculate the time taken for a HDS stream to seek from point A to B. So far I have been calculating it using org.osmf.events::MediaPlayerStateChangeEvent, the state changes to buffering as soon as seek commences and changes to play