Installation on MAC OS X: ORA-27101: shared memory realm does not exist
713533Sep 13 2010 — edited Sep 15 2010Hi folks,
I installed successfully Oracle 10g r2 on MAC OS X 10.6 (snow leopard) following the instructions found here:
http://blog.rayapps.com/2009/09/14/how-to-install-oracle-database-10g-on-mac-os-x-snow-leopard/
SQL*Plus was working fine right after the installation, even SQL Developer.
After rebooting the computer it appears the following issue:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Mac OS X Error: 2: No such file or directory
Here is the informations:
vi /etc/sysctl.conf
kern.sysv.shmall=2097152
kern.sysv.shmmni=4096
kern.maxproc=1024
kern.maxprocperuid=512
***
iMac-de-Jocelyn-Cote:~ root# vi /etc/sysctl.conf
iMac-de-Jocelyn-Cote:~ root# sysctl kern.sysv.semmsl # 87381
kern.sysv.semmsl: 87381
iMac-de-Jocelyn-Cote:~ root# sysctl kern.sysv.semmns # 87381
kern.sysv.semmns: 87381
iMac-de-Jocelyn-Cote:~ root# sysctl kern.sysv.semmni # 87381
kern.sysv.semmni: 87381
iMac-de-Jocelyn-Cote:~ root# sysctl kern.sysv.semmnu # 87381
kern.sysv.semmnu: 87381
iMac-de-Jocelyn-Cote:~ root# sysctl kern.sysv.semume # 10
kern.sysv.semume: 10
iMac-de-Jocelyn-Cote:~ root# sysctl kern.sysv.shmall # 2097152
kern.sysv.shmall: 2097152
iMac-de-Jocelyn-Cote:~ root# sysctl kern.sysv.shmmax #4194304
kern.sysv.shmmax: 4194304
iMac-de-Jocelyn-Cote:~ root# sysctl kern.sysv.shmmni # 4096
kern.sysv.shmmni: 4096
iMac-de-Jocelyn-Cote:~ root# sysctl kern.maxfiles # 12288
kern.maxfiles: 12288
iMac-de-Jocelyn-Cote:~ root# sysctl kern.maxfilesperproc # 10240
kern.maxfilesperproc: 10240
iMac-de-Jocelyn-Cote:~ root# sysctl net.inet.ip.portrange.last # 65535
net.inet.ip.portrange.last: 65535
iMac-de-Jocelyn-Cote:~ root# sysctl kern.corefile # /cores/core.%P
kern.corefile: /cores/core.%P
iMac-de-Jocelyn-Cote:~ root# sysctl kern.maxproc # 1024
kern.maxproc: 1024
iMac-de-Jocelyn-Cote:~ root# sysctl kern.maxprocperuid # 512
kern.maxprocperuid: 512
***
vi .bash_profile
export DISPLAY=:0.0
export ORACLE_BASE=$HOME
umask 022
# Must match sysctl kern.maxfilesperproc
ulimit -Hn 10240
ulimit -Sn 10240
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export DYLD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_SID=JCDEV
PATH=$PATH:/$ORACLE_HOME/bin
***
vi /etc/oratab
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
JCDEV:/Users/oracle/product/10.2.0/db_1:Y
***
vi $ORACLE_HOME/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /Users/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
JCDEV =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = JCDEV)
)
)
***
vi $ORACLE_HOME/network/admin/listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /Users/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = JCDEV)
(ORACLE_HOME = /Users/oracle/product/10.2.0/db_1)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
***
iMac-de-Jocelyn-Cote:~ oracle$ lsnrctl start
LSNRCTL for MacOS X Server: Version 10.2.0.4.0 - Production on 13-SEP-2010 20:48:18
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting /Users/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for MacOS X Server: Version 10.2.0.4.0 - Production
System parameter file is /Users/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /Users/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for MacOS X Server: Version 10.2.0.4.0 - Production
Start Date 13-SEP-2010 20:48:18
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /Users/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /Users/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "JCDEV" has 1 instance(s).
Instance "JCDEV", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
iMac-de-Jocelyn-Cote:~ oracle$ dbstart
ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
Usage: //Users/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME
Processing Database instance "JCDEV": log file /Users/oracle/product/10.2.0/db_1/startup.log
iMac-de-Jocelyn-Cote:~ oracle$ sqlplus sys@JCDEV
SQL*Plus: Release 10.2.0.4.0 - Production on Mon Sep 13 20:48:59 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Mac OS X Error: 2: No such file or directory