Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> ORA-27123: unable to attach to shared memory segment

ORA-27123: unable to attach to shared memory segment

From: Dave Eidman <dave_at_access.digex.net>
Date: Wed, 11 Aug 1999 02:30:27 GMT
Message-ID: <37B0E02F.1717B659@access.digex.net>


HELP! I am trying to install Oracle 8.0.5 Enterprise Server (Trial Version) The environment is Solaris 2.6 running on a Sparc 2 with 64 meg. The install
fails when trying to create the database.

The version of Solaris has had no patches installed.

Any suggestions would be appreciated.

Below is attached more than you would ever want to know about the environment:

  1. /etc/system
  2. output of sysdef
  3. output of the unixenv utility
  4. output of the shmtst utility script
  5. output of the tstshm utility
  6. output of the 'ipcs -a' utility
  7. last 40 lines of sql.log
  8. inittest.ora

Please be specific. I have access to neither sunsolve nor Oracle support.

Thanks,

Dave Eidman

dave_at_access.digex.net

  1. /etc/system :

    *ident "@(#)system 1.18 97/06/27 SMI" /* SVR4 1.5 */
    *
    • SYSTEM SPECIFICATION FILE
      *
    • moddir:
      *
    • Set the search path for modules. This has a format similar to the
    • csh path variable. If the module isn't found in the first directory
    • it tries the second and so on. The default is /kernel /usr/kernel
      *
    • Example:
    • moddir: /kernel /usr/kernel /other/modules
    • root device and root filesystem configuration:
      *
    • The following may be used to override the defaults provided by
    • the boot program:
      *
    • rootfs: Set the filesystem type of the root.
      *
    • rootdev: Set the root device. This should be a fully
    • expanded physical pathname. The default is the
    • physical pathname of the device where the boot
    • program resides. The physical pathname is
    • highly platform and configuration dependent.
      *
    • Example:
    • rootfs:ufs
    • rootdev:/sbus_at_1,f8000000/esp_at_0,800000/sd_at_3,0:a
      *
    • (Swap device configuration should be specified in /etc/vfstab.)
    • exclude:
      *
    • Modules appearing in the moddir path which are NOT to be loaded,
    • even if referenced. Note that `exclude' accepts either a module name,
    • or a filename which includes the directory.
      *
    • Examples:
    • exclude: win
    • exclude: sys/shmsys
    • forceload:
      *
    • Cause these modules to be loaded at boot time, (just before mounting
    • the root filesystem) rather than at first reference. Note that
    • forceload expects a filename which includes the directory. Also
    • note that loading a module does not necessarily imply that it will
    • be installed.
      *
    • Example:
    • forceload: drv/foo
    • set:
      *
    • Set an integer variable in the kernel or a module to a new value.
    • This facility should be used with caution. See system(4).
      *
    • Examples:
      *
    • To set variables in 'unix':
      *
    • set nautopush=32
    • set maxusers=40
      *
    • To set a variable named 'debug' in the module named 'test_module'
      *
    • set test_module:debug = 0x13 set shmsys:shminfo_shmmax=4294967295 set shmsys:shminfo_shmmin=1 set shmsys:shminfo_shmmni=100 set shmsys:shminfo_shmseg=10 set shmsys:shminfo_shmmns=4294967295 set semsys:seminfo_semmns=200 set semsys:seminfo_semmni=70 set semsys:seminfo_semmsl=1002
  2. output of sysdef command

*

Machine Environment:


   

User: uid=1002(oracle) gid=10(staff) Current Directory: /u01/app/oracle/product/8.0.5/orainst Machine: {

	System = SunOS
	Node = SS2
	Release = 5.6
	KernelID = Generic
	Machine = sun4c
	BusType = <unknown>
	Serial = <unknown>
	Users = <unknown>
	OEM# = 0
	Origin# = 1
	NumCPU = 1
	
	[From uname -X]
	
	SS2
	[From hostname]

}
Ulimit: {
	time(seconds) unlimited
	file(blocks) unlimited
	data(kbytes) 523256
	stack(kbytes) 8192
	coredump(blocks) unlimited
	nofiles(descriptors) 64
	memory(kbytes) unlimited

}
Swap: {
	swapfile             dev  swaplo blocks   free
	/dev/dsk/c0t3d0s1   32,25      8 393672 349896
	[From swap -l]

}
Disk Mounts: {

        / on /dev/dsk/c0t3d0s0 read/write/setuid/largefiles on Tue Aug 10 16:26:40 1999

        /usr on /dev/dsk/c0t3d0s6 read/write/setuid/largefiles on Tue Aug 10 16:26:40 1999

	/proc on /proc read/write/setuid on Tue Aug 10 16:26:40 1999
	/dev/fd on fd read/write/setuid on Tue Aug 10 16:26:40 1999
	/export/home on /dev/dsk/c0t3d0s7 setuid/read/write/largefiles on Tue
Aug 10 16:26:46 1999
	/opt on /dev/dsk/c0t3d0s5 setuid/read/write/largefiles on Tue Aug 10
16:26:46 1999
	/tmp on swap read/write on Tue Aug 10 16:26:46 1999
	/u01 on /dev/dsk/c0t2d0s0 setuid/read/write/largefiles on Tue Aug 10
16:26:46 1999
	/u02 on /dev/dsk/c0t2d0s1 setuid/read/write/largefiles on Tue Aug 10
16:26:46 1999
	/u03 on /dev/dsk/c0t2d0s3 setuid/read/write/largefiles on Tue Aug 10
16:26:46 1999
	/u04 on /dev/dsk/c0t2d0s4 setuid/read/write/largefiles on Tue Aug 10
16:26:46 1999
	[From mount]

}
Disk Free: {
	Filesystem            kbytes    used   avail capacity  Mounted on
	/dev/dsk/c0t3d0s0     123205   20437  102645    17%    /
	/dev/dsk/c0t3d0s6     582654  382750  199322    66%    /usr
	/proc                      0       0       0     0%    /proc
	fd                         0       0       0     0%    /dev/fd
	/dev/dsk/c0t3d0s7     288457     135  288034     1%    /export/home
	/dev/dsk/c0t3d0s5     491910   11688  479731     3%    /opt
	swap                  205544      16  205528     1%    /tmp
	/dev/dsk/c0t2d0s0    1016453  243881  770878    25%    /u01
	/dev/dsk/c0t2d0s1    1016453  125075  889684    13%    /u02
	/dev/dsk/c0t2d0s3    1016453      11 1014748     1%    /u03
	/dev/dsk/c0t2d0s4     981757      11  980110     1%    /u04
	[From df -k]

}
Environment: {
	HOME=/export/home/oracle
	HZ=100
	LC_COLLATE=en_US
	LC_CTYPE=en_US
	LC_MESSAGES=C
	LC_MONETARY=en_US
	LC_NUMERIC=en_US
	LC_TIME=en_US
	LD_LIBRARY_PATH=/u01/app/oracle/product/8.0.5/lib:/usr/dt/lib
	LOGNAME=oracle
	MAIL=/var/mail/oracle
	ORACLE_BASE=/u01/app/oracle
	ORACLE_HOME=/u01/app/oracle/product/8.0.5
	ORACLE_SID=test
	ORACLE_TERM=sun

PATH=/u01/app/oracle/product/8.0.5/bin:/bin:/opt/bin:/usr/bin:/usr/ccs/bin:/usr/ucb:/etc:
	SHELL=/bin/sh
	TERM=ansi
	TMPDIR=/var/tmp
	TZ=US/Eastern

}
System Tables: {         

        SunOS SS2 5.6 Generic sun4c 08/10/99         

	22:09:41  proc-sz    ov  inod-sz    ov  file-sz    ov   lock-sz
	22:09:42   62/1002    0 4722/4722    0  397/397     0    0/0   
	[From sar -v 1 1]

}
Semaphores: {
	IPC status from <running system> as of Tue Aug 10 22:09:44 1999
	T         ID      KEY        MODE        OWNER    GROUP  CREATOR  
CGROUP NSEMS   OTIME    CTIME 
	Semaphores:
	[From ipcs -sa]
	
	    10	entries in semaphore map (SEMMAP)
	    70	semaphore identifiers (SEMMNI)
	   200	semaphores in system (SEMMNS)
	    30	undo structures in system (SEMMNU)
	  1002	max semaphores per id (SEMMSL)
	    10	max operations per semop call (SEMOPM)
	    10	max undo entries per process (SEMUME)
	 32767	semaphore maximum value (SEMVMX)
	 16384	adjust on exit max value (SEMAEM)
}
Shared Mem: {
	IPC status from <running system> as of Tue Aug 10 22:09:49 1999
	T         ID      KEY        MODE        OWNER    GROUP  CREATOR  
CGROUP NATTCH      SEGSZ  CPID  LPID   ATIME    DTIME    CTIME 
	Shared Memory:
	m          0   0x50018948 --rw-r--r--     root     root     root    
root      1         68   227   227 16:27:53 16:27:53 16:27:53
	[From ipcs -ma]
	
	4294967295	max shared memory segment size (SHMMAX)
	     1	min shared memory segment size (SHMMIN)
	   100	shared memory identifiers (SHMMNI)
	    10	max attached shm segments per process (SHMSEG)
}
/var/opt/oracle/oratab: {                  

}
Tracing: { adb truss crash }  


4) output of the shmtst utility script



Able to test shared memory calls.
Able to test shared memory calls for 50 segments.

5) output of the tstshm utility script



Number of segments gotten by shmget() = 50 Number of segments attached by shmat() = 10 Segments attach at lower addresses
Maximum size segments are not attached contiguously!   Segment separation = 4292804608 bytes
Default shared memory address = 0xeef20000
Lowest shared memory address  = 0xdffe0000
Highest shared memory address = 0xeef20000
Total shared memory range     = 252968960
Total shared memory attached  = 20971520
Largest single segment size   =  2097152
Segment boundaries (SHMLBA)   =     4096 (0x1000)
======================================================================


6)	output of the 'ipcs -a' command

=====================================================================
IPC status from <running system> as of Tue Aug 10 19:29:43 1999 Message Queue facility not in system.
T         ID      KEY        MODE        OWNER    GROUP  CREATOR  
CGROUP NATTCH      SEGSZ  CPID  LPID   ATIME    DTIME    CTIME 
Shared Memory:
m          0   0x50018948 --rw-r--r--     root     root     root    
root      1         68   227   227 16:27:53 16:27:53 16:27:53
T         ID      KEY        MODE        OWNER    GROUP  CREATOR  
CGROUP NSEMS OTIME CTIME
Semaphores:

7) last 40 lines of sql.log


>> Leaving rdbms_common.ins
>>> Leaving ocommon.ins
>>> Leaving client.ins
>>> Entering rdbms.ins
>>> Entering ordts_common.ins
>>> Leaving ordts_common.ins
>>> Entering agent_net_common.ins
>>> Leaving agent_net_common.ins
>>> Entering svrmgr.ins
>>> Leaving svrmgr.ins

--------------[ rdbms.ins 4534
]---------------------------------------------
Action: Running starttest.sql
Command: (/u01/app/oracle/product/8.0.5/bin/svrmgrl <<! @/u01/app/oracle/admin/test/create/starttest.sql exit
!), Out,Err=/u01/app/oracle/product/8.0.5/orainst/sql.log Status: 0
{
| Ok: 
| Ok: Oracle Server Manager Release 3.0.5.0.0 - Production
| Ok: 
| Ok: (c) Copyright 1997, Oracle Corporation.  All Rights Reserved.
| Ok: 
| Ok: Oracle8 Enterprise Edition Release 8.0.5.0.0 - Production
| Ok: PL/SQL Release 8.0.5.0.0 - Production
| Ok: 
| Ok: SVRMGR> Connected.
| Ok: ORA-27123: unable to attach to shared memory segment
| Ok: SVR4 Error: 22: Invalid argument
| Ok: create controlfile reuse set database "test"
| Ok: *
| Ok: ORA-01034: ORACLE not available
| Ok: alter database "test"  open resetlogs
| Ok: *
| Ok: ORA-01034: ORACLE not available
| Ok: Disconnected.
| Ok: SVRMGR> Server Manager complete.

}
Result: Ok
--------------[ rdbms.ins 4573
]---------------------------------------------
===============================================================================

8)	inittest.ora     ('test' was the name used for $ORACLE_SID)

===============================================================================
#
# $Header: initx.orc 12-jun-97.09:14:56 hpiao Exp $ Copyr (c) 1992 Oracle
#

# include database configuration parameters ifile = /u01/app/oracle/admin/test/pfile/configtest.ora

rollback_segments = (r01,r02,r03,r04)

##############################################################################
# Example INIT.ORA file
#
# This file is provided by Oracle Corporation to help you customize
# your RDBMS installation for your site.  Important system parameters
# are discussed, and example settings given.
#
# Some parameter settings are generic to any size installation.
# For parameters that require different values in different size
# installations, three scenarios have been provided: SMALL, MEDIUM
# and LARGE.  Any parameter that needs to be tuned according to 
# installation size will have three settings, each one commented
# according to installation size.
#
# Use the following table to approximate the SGA size needed for the
# three scenarious provided in this file:
#
#                     -------Installation/Database Size------
#                      SMALL           MEDIUM           LARGE
#  Block         2K    4500K            6800K           17000K
#  Size          4K    5500K            8800K           21000K
#
# To set up a database that multiple instances will be using, place
# all instance-specific parameters in one file, and then have all
# of these files point to a master file using the IFILE command.
# This way, when you change a public
# parameter, it will automatically change on all instances.  This is 
# necessary, since all instances must run with the same value for many # parameters. For example, if you choose to use private rollback segments,
# these must be specified in different files, but since all gc_* # parameters must be the same on all instances, they should be in one file.
#
# INSTRUCTIONS: Edit this file and the other INIT files it calls for
# your site, either by using the values provided here or by providing
# your own.  Then place an IFILE= line into each instance-specific
# INIT file that points at this file.
###############################################################################

# tuning parameters

db_files = 80

db_file_multiblock_read_count = 8                                     #
SMALL  
# db_file_multiblock_read_count = 16                                  #
MEDIUM 
# db_file_multiblock_read_count = 32                                  #
LARGE
db_block_buffers = 200                                                #
SMALL  
# db_block_buffers = 550                                              #
MEDIUM 
# db_block_buffers = 3200                                             #
LARGE
shared_pool_size = 3500000                                            #
SMALL
# shared_pool_size = 6000000                                          #
MEDIUM
# shared_pool_size = 9000000                                          #
LARGE log_checkpoint_interval = 10000
processes = 50                                                        #
SMALL  
# processes = 100                                                     #
MEDIUM 
# processes = 200                                                     #
LARGE
dml_locks = 100                                                       #
SMALL  
# dml_locks = 200                                                     #
MEDIUM 
# dml_locks = 500                                                     #
LARGE
log_buffer = 8192                                                     #
SMALL
# log_buffer = 32768                                                  #
MEDIUM
# log_buffer = 163840                                                 #
LARGE
sequence_cache_entries = 10                                           #
SMALL  
# sequence_cache_entries = 30                                         #
MEDIUM 
# sequence_cache_entries = 100                                        #
LARGE
sequence_cache_hash_buckets = 10                                      #
SMALL  
# sequence_cache_hash_buckets = 23                                    #
MEDIUM 
# sequence_cache_hash_buckets = 89                                    #
LARGE
# audit_trail = true            # if you want auditing
# timed_statistics = true       # if you want timed statistics
max_dump_file_size = 10240      # limit trace file size to 5 Meg each
              
# log_archive_start = true      # if you want automatic archiving

global_names = TRUE

# mts_dispatchers="ipc,1"
# mts_max_dispatchers=10
# mts_servers=1
# mts_max_servers=10
# mts_service=test
# mts_listener_address="(ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))"

#
# needed if running OPS

#
# PARALLEL_SERVER=TRUE Received on Tue Aug 10 1999 - 21:30:27 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US