SHARED MEMORY 문제(ORA-7329, ORA-7331, ORA-7279)

제품 : ORACLE SERVER
작성날짜 : 2004-07-22
SHARED MEMORY 문제(ORA-7329, ORA-7331, ORA-7279)
================================================
PURPOSE
다음은 shared memory 문제가 발생하는 경우(ora-7329,ora-7331,
ora-7279) 에 대해서 알아본다.
Explanation
1. 왜 Problem 이 생기나?
* Oracle 은 Process와 SGA(System Global Area) 간의
Communication를 위해 Shared Memory와 Semaphore 를 사용한다.
Oracle Instance 가 뜰 때 SGA를 Create하기 위해 Main Memory의
임의의 부분을 할당하는데 이 때 Shared Memory 나 Semaphore 가
적절하지 않으면 이에 관련한 Error가 발생한다.
2. 해결 방안
SGA는 Shared Memory 안에 생기므로 Shared Memory 는 각 Process에게
사용 가능해야 한다.
Shared memory 와 Semaphore parameter 는
- SHMMAX = 1개의 shared memory segment 의 maximum size,
SGA 크기 이상
- SHMMIN = 1개의 shared memory segment 의 minimum size, 1 byte
- SHMMNI = shared memory identifier의 숫자, 100 이상
- SHMSEG = 1개의 process에 attach되는 shared memory segment의
maximum 갯수, 10 이상
- SEMMNS = system의 semaphore 갯수, 200 이상
- SEMMNI = 시스템에서 identifier를 setting하는 semaphore 수,
70 이상
- SEMMSL = semaphore set 당 최대 semaphore 갯수,
initSID.ora 의 processes 값 이상
* 추천하는 Semaphore와 Shared Memory Parameter
Operating System Shared Memory Parameters Semaphore
================================================================
Sun OS
SHMSIZE = 32768 SEMMNS = 200
SHMMNI = 50 SEMMNI = 50
Solaris
SHMMAX = 8388608 SEMMNS = 200
SHMSEG = 20 SEMMSL = 50
SHMMNI = 100 SEMMNI = 70
HP/UX
SHMMAX = 0x4000000(64Mb) SEMMNS = 128
SHMSEG = 12 SEMMNI = 10
Digital Unix (DEC Alpha OSF/1)
SHMMAX = 4194304 SEMMNS = 60
SHMSEG = 32 SEMMSL = 25
Ultrix Use System Default     SEMNS SEMMSL = 5
AT&T Unix
          SHMMAX = RAM-Dependant     SEMMNS = 200
8 or 16Mb RAM
          SHMMAX = 5 Mb     For All RAM
32 Mb RAM
          SHMMAX = 8 Mb Values
64 Mb RAM
          SHMMAX = 16 Mb
128 Mb RAM
          SHMMAX = 32 Mb
256 Mb RAM
          SHMMAX = 64 Mb
512 Mb RAM
          SHMMAX = 128 Mb
1024 Mb RAM
          SHMMAX = 256 Mb
2048 Mb RAM
          SHMMAX = 512 Mb
          SHMSEG = 6 for all RAM Values
          SHMMIN = 1 for all RAM Values
Dynix/PTX
          SHMMAX = 11010048 SEMMNS = 200
          SHMSEG = 20 SEMMSL = 85
Other Parameter     NOFILES = 128
DG/UX
          SHMMAX = 4194304 SEMMNS = 200
          SHMSEG = 15
Shared Memory 와 Semaphore Parameter는 OS 의 Kernel Configuration
화일에 반드시 지정되어야 하며, File의 위치는 OS마다 차이가 있다.
현재의 Shared Memory 와 Semaphore Configuration 을 알기 위해서는
다음의 Command를 이용한다.
$ sysdef |more
* HP-UX (relevant sections only) 에서의 예:
Semaphore 관련 Parameters
- maximum value for semaphores(semaem)= 16384
- Semaphore map(semmap)= 4098
- number of semaphore identifiers(semmni) = 4096
- total number of semaphores in the system(semmns) = 8192
- number of semaphore undo structures(semmnu) = 1536
- semaphore undo entries per process(semume) = 512
- semaphore maximum value(semvmx) = 32767
Shared Memory 관련 Parameters
- maximum shared memory segment size in bytes(shmmax) = 536870912
- minimum shared memory segment size in bytes(shmmin) = 1
- maximum shared memory segments in system (shmmni) = 512
- maximum shared memory segments per process(shmseg) = 512
NOTE: SHMMAX는 현 system에 8개의 instance가 수행될 수 있는
충분한 값이다.
* Shared memory 또는 semaphore parameters 를 변경하기 위해서는 ...
1. Oracle Instance를 Shutdown 한다.
2. OS의 Kernel Configuration File이 있는 곳으로 간다.
3. System Utility 또는 Editor를 이용해서 필요한 값을 바꾼다.
System Utility는 다음과 같다
| OS |     Utility     |
| HP/UX | SAM     |
| SCO     |     SYSADMSH |
| AIX     |     SMIT     |
| Solaris |     ADMINTOOL |
4. Kernel 을 Reconfigure 한다.
5. System을 Reboot 한다.
6. Oracle Instance를 startup시킨다.
[ 예제 ] Solaris 2.3/2.4 parameters and commands:
1. SQLDBA 에서 :
SQLDBA> shutdown
SQLDBA> exit
2. Superuser(root)로 login 하고 :
# cd /etc
3. /etc/system file 에 다음을 추가 한다:
set shmsys:shminfo_shmmax=8388608
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=20
set semsys:seminfo_semmns=200
set semsys:seminfo_semmni=70
4. Kernel을 reconfigure 한다:
# touch /reconfigure
5. Machine 을 reboot 한다:
#init 6
6. SQLDBA 에서 :
SQLDBA> startup
SQLDBA> exit
Oracle의 init<SID>.ora 파라미터 화일에는 SGA에 영향을 주는
Parameter들이 있다. OS의 Shared Momory와 Semaphore Parameter에
연결된 이 Parameter의 setting은 System과 Oracle의 Performance에
중요한 영향을 미친다.
Reference Documents
<Note:1011658.6>

system does not seem to using memory correctly, lots of swapping on an 8GB real memory system.We could start (for example) with this question - How big is your SGA or how much of 8GB RAM takes your SGA?
The doc says to set /etc/system to:
shmsys:shminfo_shmmax project.max-shm-memory 4294967296
but infers that this is not used.From documentation:
In Solaris 10, you are not required to make changes to the /etc/system file to implement the System V IPC. Solaris 10 uses the resource control facility for its implementation. However, Oracle recommends that you set both resource control and /etc/system/ parameters. Operating system parameters not replaced by resource controls continue to affect performance and security on Solaris 10 systems.
Then, the doc states to set a project shared mem value of 2GB:
# projmod -sK "project.max-shm-memory=(privileged,2G,deny)" group.dba
Why is this number different?It's an example how "To set the maximum shared memory size to 2 GB"
By setting to to 2G as documented oracle did not work at all Docs says:
On Solaris 10, verify that the kernel parameters shown in the following table are set to values greater than or equal to the recommended value shown.
If your SGA was greater than 2G I'm nor wondering why "oracle did not work at all".
So for 4GB SGA (for example) you need allow allocation of 4G of shared memory.
Note: shmsys:shminfo_shmmax != project.max-shm-memory. "project.max-shm-memory" is replacement of "shmsys:shminfo_shmmax" but function of these parameters differs.
"project.max-shm-memory resource control limits the total amount of shared memory of one project, whereas previously, the shmsys:shminfo_shmmax parameter limited the size of a single shared memory segment."
Relevant link to Sun docs: http://docs.sun.com/app/docs/doc/819-2724/chapter1-33

Similar Messages

  • "shared memory realm" error -- cross-posted in "installation"

    I've just installed 8.1.7 on a Solaris 8 workstation. The installation went fine up until the database creation assistant tried to create a database: it failed. But the software was all installed, so I did a "connect internal" and created a database myself. Once I start the database, I can connect as system/manager; but when the database is shutdown, connecting as system manager gives me an "Oracle not available" error (ORA-01034) followed by a "shared memory realm not available" error (ORA-27101) followed by a "no such file or directory" error (SVR4 Error: 2:).
    All of the shared memory and semaphore parameters are specified in the /etc/system file, and they show up when I execute a "sysdef -i" command.
    Any ideas why I'm getting these errors?
    I did a search and found a few posts on "shared memory realm," but none of them seemed to address the fact that I can connect when the database is started/mounted, but not when it's shutdown.
    Thanks in advance,
    Rich

    make sure the env var ORACLE_SID is set.
    check PROCESSES in your init.ora file. if you lower this number (to say, 15) and errors go away then you need to up the semiphores kernel parameter (or leave PROCESSES set to a low number). Also, it is correct to get an error when trying to connect to a database that is shutdown. the only way to not get an error is use svrmgrl or "sqlplus /nolog" and then connect / as sysdba (or connect internal).
    Andrew

  • ORA-27101: shared memory realm does not exist urgent cannot connect

    Hi i can't succeed connectivity test with netmgr
    Initializing first test to use userid: scott, password: tiger
    Attempting to connect using userid: scott
    The test did not succeed.
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    There may be an error in the fields entered,
    or the server may not be ready for a connection.
    Here is what i get from tcpdump:
    0x00a0: 5241 2d30 3130 3334 3a20 4f52 4143 4c45 RA-01034:.ORACLE
    0x00b0: 206e 6f74 2061 7661 696c 6162 6c65 0a4f .not.available.O
    0x00c0: 5241 2d32 3731 3031 3a20 7368 6172 6564 RA-27101:.shared
    0x00d0: 206d 656d 6f72 7920 7265 616c 6d20 646f .memory.realm.do
    0x00e0: 6573 206e 6f74 2065 7869 7374 0a4c 696e es.not.exist.Lin
    0x00f0: 7578 2045 7272 6f72 3a20 323a 204e 6f20 ux.Error:.2:.No.
    0x0100: 7375 6368 2066 696c 6520 6f72 2064 6972 such.file.or.dir
    0x0110: 6563 746f 7279 0a ectory.
    Here an attempt with sqlplus that didn't work
    sqlplus scott/tiger@CHUCKY
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 29 17:05:03 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Another attempt with sqlplus that succeed i dunno why
    oracle@debian:~$ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 29 17:06:02 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    Can someone help me to understand what is wrong please?

    user499283 wrote:
    Well I don't understand exactly what you mean
    here is the listener status
    SNRCTL for Linux: Version 10.2.0.1.0 - Production on 29-MAR-2006 18:24:33
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=debian)(PORT=1521)))
    Services Summary...
    Service "CHUCKY" has 1 instance(s).
    Instance "CHUCKYSON", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0
    LOCAL SERVER
    Service "chucky.rss-global.com" has 1 instance(s).
    Instance "CHUCKY", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "chuckyXDB.rss-global.com" has 1 instance(s).
    Instance "CHUCKY", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: debian, pid: 11725>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=49930))
    Service "chucky_XPT.rss-global.com" has 1 instance(s).
    Instance "CHUCKY", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    I dont know if it is a good thing i copy an init.ora file to initCHUCKY.ora and now database is using it I have just changed some values in it like control files dbname ... that were pointing to another database maybe this is why i dont manage to get this database runing.
    Now i am stucked I dunno what to do
    racle@debian:~$ tnsping chucky
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 29-MAR-2006 18:27:45
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /home/oracle/u01/app/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = debian)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = CHUCKY)) (HS = OK))
    OK (0 msec)
    I am so new to it as i understand the listener is working if i beliave what reports tnsping
    As I understand the database is started
    SQL> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1218316 bytes
    Variable Size 62916852 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2973696 bytes
    Database mounted.
    Database opened.
    As Inunderstand it is listeneing on 1521
    netstat -anp | grep 1521
    tcp 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN 11762/tnslsnr
    tcp 0 0 127.0.0.1:46370 127.0.0.1:1521 ESTABLISHED11703/ora_pmon_CHUC
    tcp 0 0 127.0.0.1:1521 127.0.0.1:46370 ESTABLISHED11762/tnslsnr
    unix 2 [ ] DGRAM 43990 11521/su
    I made a tcpdump i saw the data is comong on localhost port 1521
    Synthese I think the listener is runing, the database too, it is making a listen on 1521 port , when I try to connect data arrives on the right interface.
    But I can't login by
    sqlplus scott/tiger@CHUCKY
    qlplus SCOTT/tiger@CHUCKY
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 29 18:32:49 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    I dunno what is this fuckin shared memoryThis fuckin shared memory is how oracle does interprocess communication. When you connect to Oracle, you have to connect to this area. If you tell it the wrong area, it won't find it. You can see the areas with the ipcs command on the server. Since you can connect locally, but can't connect remotely, there is something wrong with how you told Oracle to connect remotely. Remotely can be on the same host if you have an @ in the connect string.
    >
    env | grep ORACLE
    ORACLE_SID=CHUCKY
    ORACLE_BASE=/home/oracle
    ORACLE_HOME=/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_1/
    seems like my variables are good.
    Well I dunno what to do I didn't think getting a simple login locally over tcp/ip would be so difficult, I am afraid of what will happen after this will work :) As it should be one of the easiest things on oracle what about the hardest :)Well, first try removing the trailing slash from ORACLE_HOME everywhere, including if you have it in the listener.ora. Then compare the tnsnames.ora ORACLE_HOME with your environment ORACLE_HOME. In fact, if you have a listener.ora, try renaming it to something else and restarting the listener.
    That error is normally due to a bad ORACLE_HOME or ORACLE_SID. Since your tnsping works, that indicates the ORACLE_HOME is good. But all that tells you is that the listener responds. Other causes may be inadequate processes in init.ora or case issues with the sid, or just generally not following the installation instructions. But are there installation instructions for debian?
    With multiple databases on one host, some kernel parameters may need to be increased.

  • 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 appreciated

    Hi 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

  • ORA-01031: insufficient privileges and shared memory realm does not exist

    Hi all,
    I came to a dead end to start oracle 10.2 database. I have searched on google and this forum, none of these solutions work for me. PS, I have installed 11g on my machine too.
    I have set up ORACLE_SID,ORACLE_HOME to 10.2 database based on the tnsnames.ora.
    follow is error message:
    sqlplus sys as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 3 02:09:54 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 3 02:10:55 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn / as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    SQL> conn scott/tiger
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    First I thought the instance has been start yet, but since I can't login with sysdba. I don't know what other options.
    For 10.2, the tnsnames.ora
    ORA102 =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST =XXX)(PORT = 1523))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = ora102)+
    +)+
    +)+
    LISTENER_ORA102 =
    +(ADDRESS = (PROTOCOL = TCP)(HOST =XXX)(PORT = 1523))+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /data/oracle/ora102)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (ADDRESS = (PROTOCOL = TCP)(HOST =XXXXX)(PORT = 1523))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

    try do this steps on server side:
    1) sqlplus sys as sysdba
    2) select open_mode from v$database;
    show result 2 step

  • ORA-27101: shared memory realm does not exist

    Hi    all
        I  have  a    problem   related  to sap xi-7.0   server. 
        when    I  start  server  than dispature  is not  started .  and the  trans file  show these  problem ,    i am     past the  this   trans   file ,
      so plz  solve this problem,
    4 ETW000 R3trans version 6.14 (release 700 - 18.09.06 - 09:35:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 20.02.2009 - 01:11:50
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Fri Feb 20 01:11:52 2009                            3963  0.003963
    4 ETW000  [dev trc     ,00000]  db_con_init called                                   710  0.004673
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                            188  0.004861
    4 ETW000  [dev trc     ,00000]  Loading DB library 'dboraslib.dll' ...                71  0.004932
    4 ETW000  [dev trc     ,00000]  load shared library (dboraslib.dll), hdl 0         74699  0.079631
    4 ETW000  [dev trc     ,00000]      using "D:\usr\sap\D10\SYS\exe\uc\NTI386\dboraslib.dll"
    4 ETW000                                                                              75  0.079706
    4 ETW000  [dev trc     ,00000]  Library 'dboraslib.dll' loaded                        19  0.079725
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library dboraslib.dll
    4 ETW000                                                                              22  0.079747
    4 ETW000  [dev trc     ,00000]  Version of 'dboraslib.dll' is "700.08", patchlevel (0.73)
    4 ETW000                                                                            5493  0.085240
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library dboraslib.dll
    4 ETW000                                                                              42  0.085282
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library dboraslib.dll
    4 ETW000                                                                              91  0.085373
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              59  0.085432
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              32  0.085464
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         43  0.085507
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              17  0.085524
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              21  0.085545
    4 ETW000  [dev trc     ,00000]  CLIENT_ORACLE_HOME is not set as environment variable or
    4 ETW000                        DIR_CLIENT_ORAHOME is not set as profile parameter.
    4 ETW000                          assuming using instant client with unspecified location.
    4 ETW000                                                                            9668  0.095213
    4 ETW000  [dev trc     ,00000]  Fri Feb 20 01:11:54 2009                         1849124  1.944337
    4 ETW000  [dev trc     ,00000]  Oracle Client Version: '10.2.0.1.0'                   58  1.944395
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         23  1.944418
    4 ETW000  [dev trc     ,00000]  Fri Feb 20 01:11:55 2009                          511982  2.456400
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.UTF8            59  2.456459
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPSR3's password           18  2.456477
    4 ETW000  [dev trc     ,00000]  Connecting as /@D10 on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    4 ETW000                                                                              44  2.456521
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                           39103  2.495624
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1   0241DCB8   024231EC   02422A74
    4 ETW000                                                                              31  2.495655
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0    31702  2.527357
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      47  2.527404
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server D10 (con_hdl=0,svchp=024229C0,svrhp=02434234)
    4 ETW000                                                                             230  2.527634
    4 ETW000  [dev trc     ,00000]  Fri Feb 20 01:12:01 2009                         5281432  7.809066
    4 ETW000  [dev trc     ,00000]  Assigning server context 02434234 to service context 024229C0
    4 ETW000                                                                              67  7.809133
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        56  7.809189
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=024229C0,srvhp=02434234,usrhp=0246F9C8)
    4 ETW000                                                                            2370  7.811559
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1034
    4 ETW000                                                                          656067  8.467626
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=1,svrhp=02434234)       16  8.467642
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=024229C0,srvhp=02434234)
    4 ETW000                                                                              19  8.467661
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 02434234        23932  8.491593
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1034'
    4 ETW000                                                                              64  8.491657
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  83  8.491740
    4 ETW000  [dev trc     ,00000]  Connecting as SAPSR3/<pwd>@D10 on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    4 ETW000                                                                              21  8.491761
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              21  8.491782
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1   0241DCB8   024231EC   02422A74
    4 ETW000                                                                              21  8.491803
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      48  8.491851
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server D10 (con_hdl=0,svchp=024229C0,svrhp=02434234)
    4 ETW000                                                                              35  8.491886
    4 ETW000  [dev trc     ,00000]  Fri Feb 20 01:12:02 2009                          458152  8.950038
    4 ETW000  [dev trc     ,00000]  Assigning server context 02434234 to service context 024229C0
    4 ETW000                                                                              56  8.950094
    4 ETW000  [dev trc     ,00000]  Assigning username to user session 0246F9C8           17  8.950111
    4 ETW000  [dev trc     ,00000]  Assigning password to user session 0246F9C8           35  8.950146
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=024229C0,srvhp=02434234,usrhp=0246F9C8)
    4 ETW000                                                                              24  8.950170
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1034
    4 ETW000                                                                          234917  9.185087
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=1,svrhp=02434234)      799  9.185886
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=024229C0,srvhp=02434234)
    4 ETW000                                                                              42  9.185928
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 02434234         1364  9.187292
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1034'
    4 ETW000                                                                              61  9.187353
    4 ETW000  [dblink      ,00431]  ***LOG BY2=>sql error 1034   performing CON [dblink#3 @ 431]
    4 ETW000                                                                           10170  9.197523
    4 ETW000  [dblink      ,00431]  ***LOG BY0=>ORA-01034: ORACLE not available           49  9.197572
    4 ETW000                        ORA-27101: shared memory realm does not exist [dblink#3 @ 431]
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'D10'"

    Hello Pankaj,
    Try starting Oracle database from SQL plus using orasid as user and then start SAP
    Refer to Note 491174 and perform all the tests as mentioned
    You will be able to solve it
    Let me know if it helps
    Rohit

  • ORA-27101: shared memory realm does not exist after kernel upgrade

    Hi,
    I have installed ECC 6.0 on windows 32 bit.  After I upgraded the kernel, the database can't be started as well as SAP.  When I checked the logs, the error ORA-27101: shared memory realm does not exist was encountered.
    M  calling db_connect ...
    C  Prepending E:\usr\sap\ERP\DVEBMGS01\exe to Path.
    C  Oracle Client Version: '10.2.0.1.0'
    C  Client NLS settings: AMERICAN_AMERICA.UTF8
    C  Logon as OPS$-user to get SAPSR3's password
    C  Connecting as /@ERP on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   06E217E8   06E26D84   06E2660C
    C  Attaching to DB Server ERP (con_hdl=0,svchp=06E26558,srvhp=06E38144)
    C  Starting user session (con_hdl=0,svchp=06E26558,srvhp=06E38144,usrhp=06E4CEB8)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1034
    [dboci.c      4532]
    C  Detaching from DB Server (con_hdl=0,svchp=06E26558,srvhp=06E38144)
    C  *** ERROR => CONNECT failed with sql error '1034'
    [dbsloci.c    11042]
    C  Try to connect with default password
    C  Connecting as SAPSR3/<pwd>@ERP on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   06E217E8   06E26D84   06E2660C
    C  Attaching to DB Server ERP (con_hdl=0,svchp=06E26558,srvhp=06E38144)
    C  Starting user session (con_hdl=0,svchp=06E26558,srvhp=06E38144,usrhp=06E4CEB8)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1034
    [dboci.c      4532]
    C  Detaching from DB Server (con_hdl=0,svchp=06E26558,srvhp=06E38144)
    C  *** ERROR => CONNECT failed with sql error '1034'
    [dbsloci.c    11042]
    B  ***LOG BV3=> severe db error 1034      ; work process is stopped [dbsh#2 @ 1199] [dbsh    1199 ]
    B  ***LOG BY2=> sql error 1034   performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1426]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10283]

    Please help.
    Thanks.
    Regards.

    Hi. First restart the server, then start the LISTENER, and repeat startsap again. Check if messages repeated. Regards.

  • Error message: ORA-27125: unable to create shared memory segment Linux-x86_

    Hi,
    I am doing an installtion of SAP Netweaver 2004s SR3 on SusE Linux 11/Oracle 10.2
    But i am facing the follow issue in Create Database phase of SAPInst.
    An error occurred while processing service SAP NetWeaver 7.0 Support Release 3 > SAP Systems > Oracle > Central System > Central System( Last error reported by the step :Caught ESAPinstException in Modulecall: ORA-27125: unable to create shared memory segment Linux-x86_64 Error: 1: Operation not permitted Disconnected
    Please help me to resolve the issue.
    Thanks,
    Nishitha

    Hi Ratnajit,
    I am too facing the same error but my ORACLE is not starting,
    Here are my results of following command:
    cat /etc/sysctl.conf
    # created by /sapmnt/pss-linux/scripts/sysctl.pl on Wed Oct 23 22:55:01 CEST 2013
    fs.inotify.max_user_watches = 65536
    kernel.randomize_va_space = 0
    ##kernel.sem = 1250 256000 100 8192
    kernel.sysrq = 1
    net.ipv4.conf.all.promote_secondaries = 1
    net.ipv4.conf.all.rp_filter = 0
    net.ipv4.conf.default.promote_secondaries = 1
    net.ipv4.icmp_echo_ignore_broadcasts = 1
    net.ipv4.neigh.default.gc_thresh1 = 256
    net.ipv4.neigh.default.gc_thresh2 = 1024
    net.ipv4.neigh.default.gc_thresh3 = 4096
    net.ipv6.neigh.default.gc_thresh1 = 256
    net.ipv6.neigh.default.gc_thresh2 = 1024
    net.ipv6.neigh.default.gc_thresh3 = 4096
    vm.max_map_count = 2000000
    # Modified for SAP on 2013-10-24 07:14:17 UTC
    #kernel.shmall = 2097152
    kernel.shmall = 16515072
    # Modified for SAP on 2013-10-24 07:14:17 UTC
    #kernel.shmmax = 2147483648
    kernel.shmmax = 67645734912
    kernel.shmmni = 4096
    # semaphores: semmsl, semmns, semopm, semmni
    kernel.sem = 250 32000 100 128
    fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000
    net.core.rmem_default = 262144
    net.core.rmem_max = 262144
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144
    And here is mine Limit.conf File
    cat /etc/security/limits.conf
    #<domain>      <type>  <item>         <value>
    #*               soft    core            0
    #*               hard    rss             10000
    #@student        hard    nproc           20
    #@faculty        soft    nproc           20
    #@faculty        hard    nproc           50
    #ftp             hard    nproc           0
    #@student        -       maxlogins       4
    # Added for SAP on 2012-03-14 10:38:15 UTC
    #@sapsys          soft    nofile          32800
    #@sapsys          hard    nofile          32800
    #@sdba            soft    nofile          32800
    #@sdba            hard    nofile          32800
    #@dba             soft    nofile          32800
    #@dba             hard    nofile          32800
    # End of file
    # Added for SAP on 2013-10-24
    #               soft    nproc   2047
    #               hard    nproc   16384
    #               soft    nofile  1024
    #               hard    nofile  65536
    @sapsys                 soft   nofile          131072
    @sapsys                 hard   nofile         131072
    @sdba                  soft  nproc          131072
    @sdba                  hard   nproc         131072
    @dba                 soft    core           unlimited
    @dba                 hard     core          unlimited
                      soft     memlock       50000000
                      hard     memlock       50000000
    Here is mine   cat /proc/meminfo
    MemTotal:       33015980 kB
    MemFree:        29890028 kB
    Buffers:           82588 kB
    Cached:          1451480 kB
    SwapCached:            0 kB
    Active:          1920304 kB
    Inactive:         749188 kB
    Active(anon):    1136212 kB
    Inactive(anon):    39128 kB
    Active(file):     784092 kB
    Inactive(file):   710060 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:      33553404 kB
    SwapFree:       33553404 kB
    Dirty:              1888 kB
    Writeback:             0 kB
    AnonPages:       1135436 kB
    Mapped:           161144 kB
    Shmem:             39928 kB
    Slab:              84096 kB
    SReclaimable:      44400 kB
    SUnreclaim:        39696 kB
    KernelStack:        2840 kB
    PageTables:        10544 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:    50061392 kB
    Committed_AS:    1364300 kB
    VmallocTotal:   34359738367 kB
    VmallocUsed:      342156 kB
    VmallocChunk:   34359386308 kB
    HardwareCorrupted:     0 kB
    AnonHugePages:    622592 kB
    HugePages_Total:       0
    HugePages_Free:        0
    HugePages_Rsvd:        0
    HugePages_Surp:        0
    Hugepagesize:       2048 kB
    DirectMap4k:       67584 kB
    DirectMap2M:    33486848 kB
    Please let me know where i am going wrong.
    Wat thing basically u check on /proc/meminfo command
    Regards,
    Dipak

  • ERROR - ORA-01034: shared memory realm does not exist

    Hallo!I am a newbie in Oracle in Linux.I have just installed Oracle 10g in Oracle Eenterprise Linux version 4 Update 7.The installation was successful and I could
    work with sqlplus,isqlplus and Enterprise Manager.When I restarted my machine,I manually started the listener,OEM and isqlplus which started successfully.
    However,when I try to log into OEM and isqlplus,the error message below appears
    ERROR - ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux Error: 2: No such file or directory
    How do I resolve this?
    Thanks.

    4joey1 wrote:
    However,when I try to log into OEM and isqlplus,the error message below appears
    ERROR - ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux Error: 2: No such file or directory An Oracle instance consists of a number of Oracle server processes (the limbs) and a shared memory area (the brain). Each and every server process participating in that Oracle instance needs to attach to the shared memory area.
    The error message you see, states that the server process (launched in order to service your sqlplus/OEM client), failed to find and attach to this shared memory segment.
    Two basic reasons for the failure.
    The Oracle instance is not running. There are no shared memory area and Oracle server processes running for that instance. Solution: start up the database instance.
    The server process was launched with the incorrect parameters (ORACLE_SID specifically) and attempted to attach to shared memory that does not exist. Solution: review the TNS/JDBC parameters of the client connection and configuration of the Oracle Listener to ensure that a server process launched to service a client, does so with the correct parameters and environment.

  • ORA-27123 unable to attach shared memory segment

    Running oracle 8.1.5.0.0 on Redhat 6.0 with kernel 2.2.12, I keep getting the error ORA-27123 unable to attach shared memory segment when trying to startup and instance with an SGA > 150 MB or so. I have modified the shmmax and shmall kernel parameters via the /proc/sys interface. The relevant output of ipcs -l is below:
    ------ Shared Memory Limits --------
    max number of segments = 128
    max seg size (kbytes) = 976562
    max total shared memory (kbytes) = 16777216
    min seg size (bytes) = 1
    This system has 2gb of physical memory and is doing nothing except oracle.
    I changed the shmmax and shmall parameters after the instance was created, was their something I needed to do to inform Oracle of the changes?

    High JW,
    i had the same problem on my installation.
    The solution is written in the Oracle8i Administrator Refernece on page 1-26 "Relocating the SGA"
    a) determine the valid adress range for Shared Memory with:
    $ tstshm
    in the output Lowest & Highest SHM indicate the valid adress range
    b) run genksms to generate the file ksms.s
    $ cd $ORACLE_HOME/rdbms/lib
    $ $ORACLE_HOME/bin/genksms -b "sga_beginn_adress" > ksms.s
    c) shut down any instance
    d) rebuilt the oracle exe in $ORACLE_HOME/rdbms/lib
    $ make -f ins_rdbms.mk ksms.o
    $ make -f ins_rdbms.mk ioracle
    the result is a new oracle kernel that loads the SGA at the adress specified in "sga_beginn_adress".
    regards
    Gerhard

  • ORA-27101: shared memory realm does not exist and ORA-01139: RESETLOGS

    HI ALL,
    After the oracle has installed on a solaries server successfully, i am unable to login into oracle database.
    Below are the errors messages :
    1) ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    2) Media recovery complete.
    alter database open resetlogs
    ERROR at line 1:
    ORA-01139: RESETLOGS option only valid after an incomplete database recovery.
    and When i try to login into oracle as root .
    this is the error :
    sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Feb 12 15:52:49 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    ld.so.1: oracle: fatal: libskgxp10.so: open failed: No such file or directory
    ERROR:
    ORA-12547: TNS:lost contact
    my Operating system details :
    SunOS Blade3-Chassis2 5.10 Generic_142900-03 sun4v sparc SUNW,Netra-CP3060
    Anyone please help me here. waiting for your reply.
    Below are the ORACLE_SID Details :
    1) echo $ORACLE_SID ----- > ems
    2)ps -eaf | grep smon -------> ora_smon_ems
    do you need any data?
    Edited by: user8959150 on Feb 11, 2010 7:19 PM

    Hi
    We mostly receive this error message ( ORA-27101: shared memory realm does not exist and ORA-01139)
    When our SGA_MAX_SIZE is greater than 1.7 G.b on
    You again configure your sga size
    and sga_max_size paramete will not greater than 1.7 G.b
    Hope your database will work correctly.
    for test purpose you set all your init.ora parameter
    db_cache_size=512m
    db_keep_cache_size=64m
    db_recycle_cache_size=16m
    java_pool_size=8m
    large_pool_size=16m
    shared_pool_size=256m
    shared_pool_reserved_size=64m
    sga_max_size=1600m
    sga_max_size will not be grater than combination of of db_cache_size db_keep_cache_size,db_recycle_cache_sizejava_pool_size+share_pool_size+share_pool_reserved_size
    Hope it will work fine.
    Regard
    Abdul Hameed Malik
    [email protected]

  • 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.
    Debs

    Thanks 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

  • ORA-04031: unable to allocate 64 bytes of shared memory

    Hi All,
    We are performing System copy on a distributed environment with OS Windows 2003 and DB Oracle 10.2.0.4
    While importing the Database (ABAP) only ,we are facing error and 5 import steps are failing  in Import ABAP phase.
    Error is "ORA-00604: error occurred at recursive SQL level 1
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","select user#,type# from user...","Typecheck","kgghteInit")
    (DB) INFO: disconnected from DB"
    There is already one Oracel Instance OracleXX1 is runing this is the second instance and the server has around 1.75 GB RAM...i
    Can you please suggest what could be the error.
    Regards
    Ajay

    Dears,
    Please try increase your database parameter shared_pool_size in pfile and then try to resume the activity.
    Regards,
    Shivam

  • ORA-04031: unable to allocate 4096 bytes if shared memory

    Hello Gurus,
    Did anyone got this type of error before:
    ERROR:
    ORA-20414: Materialized View refresh failed - ORA-12008: error in materialized view refresh path
    ORA-04031: unable to allocate 4096 bytes of shared memory ("shared pool","IDX_MIF_SITE","pacdHds_kkpaco","stP_kkpacd: kkpodPacdInit")
    Every sunday full refresh of the data warehouse is scheduled. This sunday it didn't complete and gave us the above error. This can be solved by increasing the shared pool memory size. But DBA doesnot want to increase it every sunday(This has been going on for 3 weeks now) and it's not feasible to increase like this everytime.
    We want to find the actual cause of it and fix?
    Does anyone know the solution or can throw some light on this issue?
    Thanks,
    Sanjay

    We want to find the actual cause of it and fix?The cause is simple - you have run out of memory assigned to the Shared Pool in the SGA.
    The root cause is more of an issue. The Shared Pool is mostly used for keeping the SQL statements and supporting information (such as cursor support). Each unique SQL statement requires it's own area in the shared pool, however identical statements can used the same (shared) area. Shared Pool is also used to store the 'current' data dictionary (table, view, etc.) information. And in some cases, it's also used for 'large' operations such as direct path insert block builds.
    Some of the possible reasons for running out of shared pool might include
    - it's simply undersized;
    - not enough SQL is actually shareable;
    - the large pool has not been allocated.
    That second one is frequent when the application builds up SQL statements by concatenating pieces, including literals (user input) and then executing the unique statement. This is a common technique by developers using .Net, Perl or having SQL Server background. (That mode of operation is very susceptible to SQL Injection.)
    You can get a lot more info from:
    - searching the forum;
    - looking in the docco (Concepts manual and Performance Tuning guide);
    - books, like Tom Kyte's "Expert One on One Oracle", "Effective Oracle By Design", and newer on apress.com

  • Solaris 10 shared memory config/ora 11g

    The ora 11 install guide for spark solaris 10 is very confusing wrt shared memory and my system does not seem to using memory correctly, lots of swapping on an 8GB real memory system.
    The doc says to set /etc/system to:
    shmsys:shminfo_shmmax project.max-shm-memory 4294967296
    but infers that this is not used.
    Then, the doc states to set a project shared mem value of 2GB:
    # projmod -sK "project.max-shm-memory=(privileged,2G,deny)" group.dba
    Why is this number different?
    By setting to to 2G as documented oracle did not work at all and so I found Note:429191.1
    on the solaris 10 memory which hints that these numbers should be big:
    % prctl -n project.max-shm-memory -r -v 24GB -i project oracle_dss
    % prctl -n project.max-shm-memory -i project oracle_dss
    project: 101: oracle_dss
    NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
    project.max-shm-memory
    privileged 24.0GB - deny -
    system 16.0EB max deny
    Is there some logic in how to get solaris 10/ora 11 to hold hands. The install doc does not seem to contain it.

    system does not seem to using memory correctly, lots of swapping on an 8GB real memory system.We could start (for example) with this question - How big is your SGA or how much of 8GB RAM takes your SGA?
    The doc says to set /etc/system to:
    shmsys:shminfo_shmmax project.max-shm-memory 4294967296
    but infers that this is not used.From documentation:
    In Solaris 10, you are not required to make changes to the /etc/system file to implement the System V IPC. Solaris 10 uses the resource control facility for its implementation. However, Oracle recommends that you set both resource control and /etc/system/ parameters. Operating system parameters not replaced by resource controls continue to affect performance and security on Solaris 10 systems.
    Then, the doc states to set a project shared mem value of 2GB:
    # projmod -sK "project.max-shm-memory=(privileged,2G,deny)" group.dba
    Why is this number different?It's an example how "To set the maximum shared memory size to 2 GB"
    By setting to to 2G as documented oracle did not work at all Docs says:
    On Solaris 10, verify that the kernel parameters shown in the following table are set to values greater than or equal to the recommended value shown.
    If your SGA was greater than 2G I'm nor wondering why "oracle did not work at all".
    So for 4GB SGA (for example) you need allow allocation of 4G of shared memory.
    Note: shmsys:shminfo_shmmax != project.max-shm-memory. "project.max-shm-memory" is replacement of "shmsys:shminfo_shmmax" but function of these parameters differs.
    "project.max-shm-memory resource control limits the total amount of shared memory of one project, whereas previously, the shmsys:shminfo_shmmax parameter limited the size of a single shared memory segment."
    Relevant link to Sun docs: http://docs.sun.com/app/docs/doc/819-2724/chapter1-33

Maybe you are looking for

  • Error on open the Report Schedule Page from other application

    Hi, I want to open the only "Report Schedule Page" of the InfoView from my application. For this I am using the following url - http://servername:8080/businessobjects/enterprise115/desktoplaunch/InfoView/CrystalEnterprise_Report/schedule/get.do?objId

  • url-pattern for extension mapping in security-constraint not working

    I'm trying to use extension mapping in a <security-constraint> configuration, According to: http://download.oracle.com/otn-pub/jcp/servlet-3_1-fr-eval-spec/servlet-3_1-final.pdf?AuthParam=1429824454_de04222eab1b8- Section 12.2: A string beginning wit

  • Hint and Explain Plan

    Hi, in 11.2.0.3 I run a query  with hint and withou but the executed query plan from DBMS_XPLAN.DISPLAY_CURSOR are the same (any idea) even if i flushed shared pool : SQL_ID  gh0mjh2ap7maf, child number 0                                              

  • Graphical login as root [rant]

    I've read several reviews of Linux distributions oriented towards new users, and I'm a bit shocked by what I've seen. Apparently a lot of them log you into a graphical environment on first boot - as root. Now, starting as root on a command line is on

  • SSRS 2012 sp1 + sharepoint 2013 error

    This error occur  when try open my firt report each day i'm click back retry then report work sombody have some idea The content type text/html of the response message does not match the content type of the binding (application/soap+msbin1). If using