Shared memory segment: function not implemented
Hi!
I tried to install Oracle8 on a dual pentium II / 233 system
running Suse 6.0 (kernel 2.2.1, glibc6)
Everything went fine, until I got the message
"Database creation failed, see logfile"
The logfile /u01/app/oracle/products/8.0.5/orainst/install.log
tells me the following:
- Entering database actions section.
- Creating initORCL.ora file
- Creating crdb2ORCL.sql database catalog and file creation
script
- ERROR: The 'CREATE DATABASE' statement for the ORCL
database failed.
egrep failed to find 'ORA-' error in the file:
/u01/app/oracle/admin/ORCL/create/crdbORCL.lst
/u01/app/oracle/admin/ORCL/create/crdORCL.lst tells me:
Connected.
ORA-27125: unable to create shared memory segment
Linux Error: 38: Function not implemented
create database "ORCL"
ORA-01034: ORACLE not available
Disconnected.
So, I guess it3s something wrong with the kernel. I did the
following:
changed in /usr/src/linux/include/asm/shmparam.h:
#define SHMIDX_BITS 16 (was 15)
#define SHMMNI 100 (was (1<<_SHM_ID_BITS)) #define SHMSEG
10 (was SHMSEG SHMMNI)
checked /usr/src/linux/include/linux/sem.h:
#define SEMMNI 128
#define SEMMSL 32
#define SEMMNS (SEMMNI*SEMMSL)
Compiled new kernel, rebooted, verified that the right kernel
was loaded, installed oracle new, but it still doesn3t work.
Have I missed anything ?
thanks
Frank
null
Hey, I ran into this problem too. Look and see if any db
processes failed to die last time you stopped oracle. I found a
ps_mon daemon still going when the database was down. I killed
it, restarted the database and everything was fine.
StE (guest) wrote:
: Frank Schmitt (guest) wrote:
: : ORA-27125: unable to create shared memory segment
: : Linux Error: 38: Function not implemented
: : create database "ORCL"
: : Compiled new kernel, rebooted, verified that the right kernel
: : was loaded, installed oracle new, but it still doesn3t work.
: Silly question, but did you check you had enabled SysV IPC
when
: you configured the kernel?
: -michael
null
Similar Messages
-
JLaunchInitAdministration: Can't attach to shared memory segment 69
Hi ,
I am trying to bring up a EP system , and i am getting the following error in my dev_sdm and dev_dispatcher logs ...
[Thr 1] Wed Nov 10 10:30:25 2010
[Thr 1] JLaunchRequestQueueInit: create named pipe for ipc
[Thr 1] JLaunchRequestQueueInit: create pipe listener thread
[Thr 515] WaitSyncSemThread: Thread 515 started as semaphore monitor thread.
[Thr 258] JLaunchRequestFunc: Thread 258 started as listener thread for np messages.
[Thr 1] *** ERROR => JLaunchInitAdministration: Can't attach to shared memory segment 69 (rc = 7 locking (semaphore/mutex) error) [jlnchxx_mt.c 926]
[Thr 1] *** ERROR => can't initialize JControl Administration [jlnchxx_mt.c 375]
[Thr 1] SigISetIgnoreAction : SIG_IGN for signal 20
[Thr 1] *** ERROR => JsfCloseShm: FiDetachIndex(SESSION) failed (rc = 6 invalid argument) [jsfxxshm_mt. 1243]
[Thr 1] *** ERROR => JsfCloseShm: FiDetachIndex(ALIAS) failed (rc = 6 invalid argument) [jsfxxshm_mt. 1250]
[Thr 1] *** ERROR => JsfCloseShm: FiDetachIndex(SERVICE) failed (rc = 6 invalid argument) [jsfxxshm_mt. 1257]
[Thr 1] *** ERROR => JsfCloseShm: ShmDelete(69) failed (rc = 2 invalid function argument) [jsfxxshm_mt. 1283]
[Thr 1] JLaunchCloseProgram: good bye (exitcode = -1)
It would be nice if someone can provide we some direction how to solve this ...
(btw i have already done cleanipc ... it didn't help )
Regards,
Neelit might help.
but mine is a EP system (Java Only) so not sure if its applicable in my case
You should always have latest kernel on your system , irrespective of Runtime Engine (ABAP or JAVA).
So go ahead and upgrade kernel to latest available for your release.
Regards, -
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 -
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,
NishithaHi 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. -
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) -
(HELP) ORA-27101: shared memory realm does not exist
Contributors,
I am a newbie in Oracle and have oracle database installed and working as expected until few days ago. One day i was getting these ugly messages when connecting via SQLplus
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Process ID: 0
Session ID: 0 Serial number: 0I did some searches on this topic but haven't found solutions.
* Some suggested to check[b] environment variables ORACLE_HOME and ORACLE_SID : my ORACLE_HOME is fine, and i DO NOT have ORACLE_SID on the day i realize the problem.
I am not sure if ORACLE_SID variable is usually exist when my database was up and running. So i set ORACLE_SID yet did not help.
* Some said check if the required services are running :
- OracleOraDb11g_home1TNSListener : RUNNING
- OracleServiceORCL : RUNNING
* Other said that they have the same problem, but everything back to normal after several hours without anything configured / changed (miraculous)
* I tried to restart or shut down, but no luck
* In the same thread few days ago, Vlado helped me with suggestion to acces ADRCI and type SHOW PROBLEM also SHOW INCIDENT
but the reply is DIA-48494: ADR home is not set, the corresponding operation cannot be done* Other implied to check the .ora files in NETWORK\ADMIN. I will post it (TNSNAMES.ORA, LISTENER.ORA, SQLNET.ORA) after this.
My platform and some info :
* OS : MS Windows Vista Ultimate
* Oracle Database 11g Release 1 (11.1.0.6.0) Enterprise/ Standard Edition for Microsoft Windows 32-bit
Mostly i used SQLplus and SQLdeveloper, for developing procedures/ functions/ packages in Oracle Spatial.
Also, am running it in one laptop (server and client altogether).
There is only one database in the Laptop (no other oracle database).
How to fix this ? Please kindly help me.
Many thanks in advance,
DamonHere are the ORA files :
( Btw the service name / SID is "orcl")
=====================================
TNSNAMES.ORA
# tnsnames.ora Network Configuration File: C:\ORACLE\product\11.1.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = geoltmatt)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)=====================================
LISTENER.ORA
# listener.ora Network Configuration File: C:\ORACLE\product\11.1.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = geoltmatt)(PORT = 1521))
)=====================================
SQLNET.ORA
# sqlnet.ora Network Configuration File: C:\ORACLE\product\11.1.0\db_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)=====================================
also other said that we need to issue commands like
LSNRCTL STATUS
TNSPING [host]
Here they are :
LSNRCTL STATUS
LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 22-MAY-2008 18:12
:46
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.1.0.6.0 - Produ
ction
Start Date 22-MAY-2008 12:03:17
Uptime 0 days 6 hr. 9 min. 29 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\ORACLE\product\11.1.0\db_1\network\admin\listener.o
ra
Listener Log File c:\oracle\product\11.1.0\db_1\log\diag\tnslsnr\geoltma
tt\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=geoltmatt)(PORT=1521)))
The listener supports no services
The command completed successfully
TNSPING [host]
TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 22-MAY-2
008 18:14:15
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
C:\ORACLE\product\11.1.0\db_1\network\admin\sqlnet.ora
Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTO
COL=TCP)(HOST=128.250.171.197)(PORT=1521)))
OK (0 msec)Please kindly help me... (also thanks for vlado)
TIA.
=Damon -
Hi,
I found the thread Cannot attach data store shared-memory segment using JDBC (TT0837) but it can't help me out.
I encounter this issue in Windows XP, and application gets connection from jboss data source.
url=jdbc:timesten:direct:dsn=test;uid=test;pwd=test;OraclePWD=test
username=test
password=test
Error information:
java.sql.SQLException: [TimesTen][TimesTen 11.2.1.5.0 ODBC Driver][TimesTen]TT0837: Cannot attach data store
shared-memory segment, error 8 -- file "db.c", lineno 9818, procedure "sbDbConnect"
at com.timesten.jdbc.JdbcOdbc.createSQLException(JdbcOdbc.java:3295)
at com.timesten.jdbc.JdbcOdbc.standardError(JdbcOdbc.java:3444)
at com.timesten.jdbc.JdbcOdbc.standardError(JdbcOdbc.java:3409)
at com.timesten.jdbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:813)
at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:1807)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:303)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:159)
I am confused that if I use jdbc, there is no such error.
Connection conn = DriverManager.getConnection("url", "username", "password");
Regards,
NestaI think error 8 is
net helpmsg 8
Not enough storage is available to process this command.
If I'm wrong I'm happy to be corrected. If you reduce the PermSize and TempSize of the datastore (just as a test) does this allow JBOSS to load it?
You don't say whether this is 32bit or 64bit Windows. If it's the former, the following information may be helpful.
"Windows manages virtual memory differently than all other OSes. The way Windows sets up memory for DLLs guarantees that the virtual address space of each process is badly fragmented. Other OSes avoid this by densely packing shared libraries.
A TimesTen database is represented as a single contiguous shared segment. So for an application to connect to a database of size n, there must be n bytes of unused contiguous virtual memory in the application's process. Because of the way Windows manages DLLs this is sometimes challenging. You can easily get into a situation where simple applications that use few DLLs (such as ttIsql) can access a database fine, but complicated apps that use many DLLs can not.
As a practical matter this means that TimesTen direct-mode in Windows 32-bit is challenging to use for those with complex applications. For large C/C++ applications one can usually "rebase" DLLs to reduce fragmentation. But for Java based applications this is more challenging.
You can use tools like the free "Process Explorer" to see the used address ranges in your process.
Naturally, 64-bit Windows basically resolves these issues by providing a dramatically larger set of addresses." -
Hello, gurus!
I can connect this way:
oracle@mypc sqlplus sys/sys1@mydatabase
While trying to connect this way:
oracle@mypc sqlplus sys/sys1
I am getting an error:
ORA-01034: Oracle not available
ORA-27123: unable to attach to shared memory segment
Linux Error: 13 permission denied
What's wrong?
I am on LINUX RHEL 4 + Oracle 10.2.0.4
Thanks in advance.user21123, the init.ora and/or spfile have nothing to do with this issue. These errors means that you are attempting to connect to an Oracle instance that cannot be located. This can be because you have an environment error setting as the first response mentioned or before the target instance is not running as I mentioned.
Here is the error when the environment variables are set correctly but the database is not started.
JServer Release 9.2.0.6.0 - Production
$ print $ORACLE_SID $TWO_TASK
TRN1
$ sqlplus mpowel01
SQL*Plus: Release 9.2.0.6.0 - Production on Fri Aug 22 13:07:48 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
IBM AIX RISC System/6000 Error: 2: No such file or directory
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
$ sqlplus /nolog
SQL*Plus: Release 9.2.0.6.0 - Production on Fri Aug 22 13:08:24 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
> connect / as sysdba
Connected to an idle instance.
> startup
ORACLE instance started.
Total System Global Area 114468624 bytes
<snip>
> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
$ sqlplus mpowel01
SQL*Plus: Release 9.2.0.6.0 - Production on Fri Aug 22 13:11:58 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter password:
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options
JServer Release 9.2.0.6.0 - Production
TRN1 >HTH -- Mark D Powell -- -
TNS-01115: OS error 28 creating shared memory segment of 129 bytes
hi
we are operating a solaris v5.8 with 10 instances of 10.2.0.1 databases running. each with its own listener. the system shmmni=3600 and using ipcs all are being used causing the error TNS-01115: OS error 28 creating shared memory segment of 129 bytes to occur.
The kernal parameters were set to be the same as a similiar server we have with the same configuration and more databases and that box uses only 53 memory segments
Does anyone have any ideas as to what would make this happen?i wish i could. there was one db that was not needed so i just shut it down and stopped the listener. then took an ipcs -m reading. it returned 48 rows, instead of 3603 as it did when this particular db was up. in my haste i removed the db as it was not needed so i no longer have the logs to research. too bad on my part.
well at least i have a fix but have no idea why this happened. thank you for your responses. greatly appreciated. -
Locate shared memory segments outside of pool 10
Dear All,
When i am starting my sap through STARTSAP its showing started successfully .but i am not able to logon to the system
Oracle is coming up without any issues but No dialog process is running
Facing the below errors in start profile when i am running sappfpar check =pf= START_DVEBMGS00_SAPDEV
***ERROR: Size of shared memory pool 10 too small
================================================================
SOLUTIONS: (1) Locate shared memory segments outside of pool 10
with parameters like: ipc/shm_psize_<key> =0
SOLUTION: Increase size of shared memory pool 10
with parameter: ipc/shm_psize_10 =56000000
***ERROR: Size of shared memory pool 40 too small
================================================================
SOLUTIONS: (1) Locate shared memory segments outside of pool 40
with parameters like: ipc/shm_psize_<key> =0
SOLUTION: Increase size of shared memory pool 40
with parameter: ipc/shm_psize_40 =62000000
I tired the above by giving recommended values 56000000 and 6200000 to ipc/shm_psize_10 abd ipc/shm_psize_40 respectively.but its not working.
My O/s is Linux suse9.0 and oracle 9 i
Is this is related to sysctl.conf ???
help !
RegardsDear Manoj,
my ERP2005 EhP4 Unicode system has
ipc/shm_psize_10 = 156000000
ipc/shm_psize_40 = 132000000
try these values, they are at least high enough.
Regarding your question with sysctl.conf. If the error is "shm_psize too small", then it has probably nothing to do with sysctl.conf.
Thanks,
Hannes -
Getting Error : Cannot attach data store shared-memory segment,
HI Team,
I am trying to integrate Timesten IMDB in my application.
Machine details
Windows 2003, 32 bit, 4GB RAM.
IMDB DB details
Permanent size 500MB, temp size 40MB.
If I try to connect to database using ttisql it get connected. But If I try to connect in my Java application I get following exception.
java.sql.SQLException: [TimesTen][TimesTen 11.2.1.3.0 ODBC Driver][TimesTen]TT0837: Cannot attach data store shared-memory segment, error 8 -- file "db.c", lineno 7966, procedure "sbDbCreate"
at com.timesten.jdbc.JdbcOdbc.createSQLException(JdbcOdbc.java:3269)
at com.timesten.jdbc.JdbcOdbc.standardError(JdbcOdbc.java:3418)
at com.timesten.jdbc.JdbcOdbc.standardError(JdbcOdbc.java:3383)
at com.timesten.jdbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:787)
at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:1800)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:303)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:159)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
Maximum permanent size that works with Java application is 100MB. But it would not be enough for our use.
Could anybody let me know the way to resolve/reason for getting this error? Any response would be appreciated.
Thanks in Advance,
Regards,
atulThis is a very common problem on 32-bit Windows. A TimesTen datastore is a single region of 'shared memory' allocated as a shared mapping from the paging file. In 'direct mode', when the application process(in your case either ttIsql or the JVM) 'connects' to the datastore the datastore memory region is mapped into the process address space. In order for this to happen it is necessary for there to be a free region in the process adddress space that is at least the size of the datastore. This region must be contiguous (i.e. a single region). Unfortunately, the process memory map in 32-bit Windows is typically highly fragmented and the more DLLs that a process uses the worse this is. Also, JVMs typically use a lot of memory, depending on configuration.
Your options to solve this are really limited to:
1. Significantly reduce the memory used by the JVM (may not be possible).
2. Use a local client/server connection from Java instead of a direct mode connection. To minismise the performance overhead make sure you use the optimised ShmIpc connectivity rather than TCP/IP. Even with this there is likely to be a >50% reduction in performance compared to direct mode.
3. Switch to 64-bit Windows, 64-bit TimesTen and 64-bit Java. Even without adding any extra memory to your machine thsi will very likely fix the problem.
Option (3) is by far the best one.
Regards,
Chris -
Max attached shared memory segments
Hi all.
I have a client/server model using SunOs 5.8 in which the server creates one shared memory segment in a single process and attaches that segment to all connected clients' shared memory.
My question is how many clients can I support with this model? The maximum # of shared memory segments that can be attached is 6 per process according to sysdef info, but so far I have attached 8 ( meaning I have connected 8 clients to the server and have attached the shared memory of the server to each of the eight clients' shared memory). Therefore, I have 8 attached shared memory segments to the server's shared memory segment, which is more than 6. The system value of SHMSEG has not been changed. Any info would be appreciated.
Thanks
Roy Park
[email protected]I am not sure if I am reading your setup correctly, but it sounds like you may only be allocating one shared memory segment. That one shared memory segment is then attached by all of the clients. If that is the case, you can attach a virtually unlimited number of clients.
The shmseg parameter limits the number of segments which can be attached by a single process. In other words if the clients each create a shared memory segment and the server attaches to all of those, then the limit should have been reached. I would like to see a little more information if that is the case. (ipcs output to start)
Alan
Sun Developer Technical Support
http://www.sun.com/developers/support -
Cannot attach data store shared-memory segment using JDBC (TT0837)
I'm currently evaluating TimesTen during which I've encountered some problems.
All of the sudden my small Java app fails to connect to the TT data source.
Though I can still connect to the data source using ttisql.
Everything worked without problems until I started poking around in the ODBC administrator (Windows 2K).
I wanted to increase permanent data size so I changed some of the parameters.
After that my Java app fails to connect with the following message:
DriverManager.getConnection("jdbc:timesten:direct:dsn=rundata_tt60;OverWrite=0;threadsafe=1;durablecommits=0")
trying driver[className=com.timesten.jdbc.TimesTenDriver,com.timesten.jdbc.TimesTenDriver@addbf1]
SQLException: SQLState(08001) vendor code(837)
java.sql.SQLException: [TimesTen][TimesTen 6.0.4 ODBC Driver][TimesTen]TT0837: Cannot attach data store shared-memory segment, error 8 -- file "db.c", lineno 8846, procedure "sbDbConnect()"
The TT manual hasn't really provided any good explanation what the error code means.
Obviusly I'v already tried restoring the original ODBC parameters without any luck.
Ideas..anyone?
/PeterPeter,
Not sure if you have resolved this issue or not. In any case, here are some information to look into.
- On Windows 32-bit, the allocation of shared data segment doesn't work the same way like on Unix and Linux. As a result, the maximum TimesTen database size one can allocate is much smaller on the Windows platform than on other platforms.
- Windows error 8 means ERROR_NOT_ENOUGH_MEMORY: not enough storage is available to process this command.
- TimesTen TT0837 says the system was unable to attach a shared memory segment during a data store creation or data store connection operation.
- What was the largest successful perm-size and temp-size you used when allocating the TimesTen database?
* One explanation for why you were able to connect using ttIsql is that it doesn't use much of the DLLs, whereas your Java application typically has a lot more DLLs.
* As a troubleshooting step, you can try reduce your Temp-size to a very small size and just see if you can connect to the data store. Eventually, you may need to reduce your perm-size to get Windows to fit the shared data segment in the process space.
By the way the TimesTen documentation has been modified to document this error as follows:
Unable to attach to a shared memory segment during a data store creation or data store connection operation.
You will receive this error if a process cannot attach to the shared memory segment for the data store.
On UNIX or Linux systems, the shmat call can fail due to one of:
- The application does not have access to the shared memory segment. In this case the system error code is EACCESS.
- The system cannot allocate memory to keep track of the allocation, or there is not enough data space to fit the segment. In this case the system error code is ENOMEM.
- The attach exceeds the system limit on the number of shared memory segments for the process. In this case the system error code is EMFILE.
It is possible that some UNIX or Linux systems will have additional possible causes for the error. The shmat man page lists the possibilities.
On Windows systems, the error could occur because of one of these reasons:
- Access denied
- The system has no handles available.
- The segment cannot be fit into the data section
Hope this helps.
-scheung -
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
Maybe you are looking for
-
Macbook Pro 15" mid 2012 system freezing
My Macbook is out of warranty fyi My macbook pro mid 2012 is freezing so that I have to do a hard restart. When I first got it I put ram that was the wrong speed in it, so it was messed up for a while and froze a lot. Now I have 16GB ram that is righ
-
How to populate value into textboxes
Hi, I'm working with oracle forms for portlet and need help populating a certain value into textboxes. There are 40 textboxes, 40 checkboxes, and a textbox for a user to enter a value. When a user checks the preferred checkboxes then enters the value
-
Could not save as filename.PDF because of a program error
I am running Photoshop CS4 Extended Version 11.0 on OS X 10.5.5. I have been trying to save a PSD file as a PDF and I've been receiving the dreaded "Could not save because of a program error" message. I tried rebooting, closing and opening the progra
-
Anyone else have this problem with mail on 4s ?
Whenever I load mail app , my mail would say downloading on the bottom.. it would try to download 150 emails.. than it says downloading 300 emails . Anyone else ahve this problem ? This just started with IOS 7 and I have no clue how to fix this . My
-
Hi, My computer use to open everything in safari but I did something to my computer and now it opens everything in firefox. I want it to open everything in safari (I think). How do I change it back?