- Ошибка после установки на Ubuntu ORA-27101: shared memory realm does not exist
- 1 ответ 1
- Errors — ORA-01034, ORA-27101 & Linux-x86_64 Error: 2: No such file or dir
- Best Answer
- Answers
- ORA-27101: shared memory realm does not exist Linux-x86_64 Error: 2: No such file or directory
- Answers
- Linux Error: 2: No such file or directory
- Comments
- Linux Error: 2: No such file or directory
- Comments
Ошибка после установки на Ubuntu ORA-27101: shared memory realm does not exist
SQL*PLUS выдаёт ошибку:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Ставила по этой инструкции.
Но пропустила шаг:
потому, что при простой замене имени каталога /dev/shm у меня пропал интернет. Просто так удалять системные файлы, боязно. Теперь не могу удалить /dev/shm , т.к. он занят.
1 ответ 1
Сообщение об ошибке:
ORA-27101: shared memory realm does not exist
означает, что процесс (обычно Listener, sqlplus ) не может подсоединиться к System Global Area (SGA).
В основном это вызывают две причины:
SGA действительно не существует, так как инстанция БД не стартовала. Стартуйте инстанцию БД под пользователeм oracle :
Shared memory segment Id для подключения к SGA генерируется из значений переменных окружения: $ORACLE_SID + $ORACLE_HOME . Если эти значения не соответствуют тем, которые были использованы при запуске инстанции БД, то будет выше указанная ошибка, так как такого сегмента не существует. Проверьте переменные окружения:
Значения $ORACLE_SID + $ORACLE_HOME , которые были использованы при установке хранятся в /etc/oratab и устанавливаются так:
Например, если попытаться установить вручную и при этом ошибиться:
Всё хорошо, директория существует и sqlplus из неё будет вызываться, но незначащий слэш даст при подсчёте shmid другое значение:
Источник
Errors — ORA-01034, ORA-27101 & Linux-x86_64 Error: 2: No such file or dir
I have installed Oracle 10g database and AS 10g on SUSE linux EE 10 (SP2)
When I try to log in as system/system using sqlplus locally on the server, it works fine. However, when I try the following I get error messages:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
I tried the same from my laptop through sqlplus and the error message is the same.
I checked if the database was up and to check this I executed follwing commands whicle still being logged as system/system:
SQL>Select * from v$database;
SQL>Select * from v$instance;
SQL>Select * from tab;
These do bring results. Also if I try to start up the database again, it gives error message that the database is already up. I have restarted the db number of times, checked if my listener was listening on the service BOTSDB and these all seem fine.
It is very intriguing that when @BOTSDB is attached while connecting, the connection fails.
Can someone please guide me to sort this error?
Thanks and kind regards,
Aparna
Best Answer
Your problem might be the trailing backslashes in the ORACLE_HOME lines in listener.ora.
Suggest you try removing the trailing / characters and restarting the listener.
Answers
ps -ef |grep pmon
can you post back the results.
I sounds like you have not set the ORACLE_SID correctly for your databaes.
I am answering all the three questions here.
1) No of instances on the machine, I understand it is 1.
2) Results of lsnrctl status
LSNRCTL for Linux: Version 10.1.0.4.2 — Production on 28-JUL-2010 09:19:33
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=linuxserv.dcdm.mu)(PORT=1521)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 10.1.0.4.2 — Production
Start Date 27-JUL-2010 11:24:12
Uptime 0 days 21 hr. 55 min. 20 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/app/ora10ginfra/network/admin/listener.ora
Listener Log File /oracle/app/ora10ginfra/network/log/listener.log
Listening Endpoints Summary.
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linuxserver.dcdm.mu)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary.
Service «PLSExtProc» has 1 instance(s).
Instance «PLSExtProc», status UNKNOWN, has 1 handler(s) for this service.
Service «metarep.dcdm.mu» has 1 instance(s).
Instance «metarep», status READY, has 3 handler(s) for this service.
The command completed successfully
—Note that lsnrctl status command was issued after loading 10ginfra.env file.
Please note that the listener for the database is set as DBLISTENER and lsnrctl status DBLISTENER was executed after loading 10gdb.env file. The results of lsnrctl status DBLISTENER are as follows:
> lsnrctl status DBLISTENER
LSNRCTL for Linux: Version 10.2.0.1.0 — Production on 28-JUL-2010 09:24:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.107.123)(PORT=1650)))
STATUS of the LISTENER
————————
Alias DBLISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 — Production
Start Date 27-JUL-2010 15:11:28
Uptime 0 days 18 hr. 13 min. 15 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/app/ora10gdb/network/admin/listener.ora
Listener Log File /oracle/app/ora10gdb/network/log/dblistener.log
Listening Endpoints Summary.
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.107.123)(PORT=1650)))
Services Summary.
Service «BOTSDB» has 1 instance(s).
Instance «BOTSDB», 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
3) The output of ps -ef |grep pmon is
> ps -ef |grep pmon
oracle 12524 12091 0 09:16 pts/1 00:00:00 grep pmon
oracle 12525 1 0 Jul27 ? 00:00:00 ora_pmon_metarep
oracle 25776 1 0 Jul27 ? 00:00:00 ora_pmon_BOTSDB
The contents of listener.ora in two different Oracle Homes (one for AS infrastrcuture and another one for database) are as follows:
[email protected]:/oracle/app/ora10ginfra/network/admin> vi listener.ora
# listener.ora Network Configuration File: /oracle/app/ora10ginfra/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/ora10ginfra)
(PROGRAM = extproc)
)
)
[email protected]:/oracle/app/ora10gdb/network/admin> vi listener.ora
# Generated by Oracle configuration tools.
SID_LIST_DBLISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/ora10gdb/)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = BOTSDB)
(ORACLE_HOME = /oracle/app/ora10gdb/)
)
)
Источник
ORA-27101: shared memory realm does not exist Linux-x86_64 Error: 2: No such file or directory
I downloaded the oracle webcenter linux VM and had a problem connecting to the database
when i try to connect to the db using sqlplus, i get the error.
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Session ID: 0 Serial number: 0
I have set my ORACLE_HOME and ORACLE_SID. export ORACLE_HOME=/oracle/db/ohome and ORACLE_SID=orcl. The same values set in my listener.ora and tnsnames.ora
My hosts file had 2 entries for 127.0.0.1, so i commented one and now only 1 localhost entry
::1 localhost localhost.localdomain
I restarted my vm after the changes but i still get the same error — ORA-27101 shared memory realm does not exist.
Appreciate if i could get help here resolving this problem and able to connect to my db.
Answers
Copy pate the output of the following command:-
ps -ef | grep ora_
and which user u are trying to connectvthe db .
The error means the SGA (sharem mem struct) of the database does not exist.
Typically caused by one of two issues.
Attempting to connect to the wrong SGA — SGA is uniquely identified by server process trying to attach to the SGA via ORACLE_HOME and ORACLE_SID.
The SGA does not exist as the database instance has not yet been started and the SGA not yet created.
So is the database instance started? Is the environment used for a local connection correct?
That’s an odd value for ORACLE_HOME. It needs to be where the executables are, so for example ls -l $ORACLE_HOME/bin/oracle should show you something like
-rwsr-s—x 1 oracle |