ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist
I am getting the above error when trying to connect to a server database from a client using service name orcl . It is getting connected when I am using the other service name i.e. dms
Below is my listener.ora
Please tell me what to do?
15 Answers 15
Open command prompt and execute the below commands:
Sometimes, the database will not be mounted correctly, so we need to mount it manually. For that, shut it down and start it up then mount. Log in as oracle user, then run the following commands:
Make sure that your ORACLE_HOME and ORACLE_SID are correct To see the current values in windows, at the command prompt type
If the values are not your current oracle home and SID you need to correct them. This can be done in Windows environment variables.
ORA-01034 and ORA-27101 normally indicate that the database instance you’re attempting to connect to is shut down and that you’re not connected as a user who has permission to start it up. Log on to the server 192.168.1.53 and start up the orcl instance, or ask your DBA to do this for you.
Had the same issue on windows XP. Resolved. The error was caused due to the system log being full. Control Panel -> Administrative Tools -> Event viewer Right click on application log, clear all events, optionaly save the log. Same process for system log. Restart and it should work.
Remove sga_target line in init.ora file, then:
This same error occurred to me even though the ORACLE_HOME and ORACLE_SID seemed to be correctly set up.
The problem was in ORACLE_HOME , which is not supposed to end with a slash character. When I removed the ending slash, it started to work properly.
So, even if it seems everything is configured fine, check your variables for this.
I faced the same issue while creating the connection on SQLDeveloper «ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist»
1.Update the listene.ora file to include the SID.
The Oraclexe directory may have the permission set to «ReadOnly», Change the directory/sub-directory permission to read/write and restart the listener services. Problem is solved.
I hit the same shared memory realm does not exist symptom (on Windows) but for a different reason. I had just installed Oracle (XE) and after some troubleshooting, established that my installation was corrupt due to the presence of an ORACLE_HOME environment property at the time I installed it.
If this is TLDR, skip to ‘So to resolve:’!
My initial symptom was:
Apparently the Windows install reads the ORACLE_HOME from the registry and doesn’t need (and certainly in my case shouldn’t have. ) an environment property.
Remove it, as follows:
- Edit the system environment settings (Windows key and start typing ‘env’ and you should see this option come up.
- Delete any User and System Environment Variables called ORACLE_HOME, if present. (make a note of their values, mainly out of interest, but may be of use if you want to put them back for some reason!)
- Restart your machine. Don’t muck around with just a log off — restart your machine. The Windows Oracle install uses Windows services by default and your installation is currently very bad — it needs a restart.
Following the restart I was then able to get error messages other than ‘No message file. ‘ and could start looking at what the issue was. Setting the ORACLE_SID to XE and connecting @XE I got as far as the errors in this page, namely the following symptoms:
Another symptom was: When launching the ‘Get started’ page it failed to connect, giving a not found error (if I recall correctly), despite the Windows listener & XE services being started. As noted in another answer, this could be due to the windows services not being started. In my case those services were started, so something else was misconfigured.
At this point, I figured maybe my install had just gone so badly wrong due to the presence of my bad ORACLE_HOME environment property that I should reinstall. (Previous reinstalls hadn’t helped, but those had all been before I noticed the ORACLE_HOME system environment property (probably set up by me a year ago!).
So to resolve:
- Close any app looking at the Oraclexe install directory (editors/explorer/cmd prompts)
- A quick trip to Add/Remove programs and uninstall OracleXe
- Double-check you have no ORACLE_HOME environment property set anywhere, remember — Windows will use registry entries to get it.
- Restart (take no chances — we’re in this for the long term!)
- Did you make sure there was no ORACLE_HOME property?
- Run the Oracle installer again (as local admin account if applicable)
- You should be able to rejoice in a working install. I did, at least!
ORA-01034: ORACLE недоступен ORA-27101: область общей памяти не существует
Я получаю вышеуказанную ошибку при попытке подключиться к базе данных сервера от клиента, используя имя службы orcl . Он подключается, когда я использую другое имя службы, т.е. dms
Ниже мой listener.ora
Скажите, пожалуйста, что делать?
Откройте командную строку и выполните следующие команды:
Когда-то. База данных не будет правильно подключена, поэтому нам нужно смонтировать ее вручную. Для этого выключите ее и запустите, а затем смонтируйте. Выполните следующие команды
войдите как пользователь оракула, затем
Убедитесь, что ваши ORACLE_HOME и ORACLE_SID верны Чтобы увидеть текущие значения в окнах, введите в командной строке
Если значения не являются вашим текущим оракулом и SID, вам нужно их исправить. Это можно сделать в переменных среды Windows.
ORA-01034 и ORA-27101 обычно указывают, что экземпляр базы данных, к которому вы пытаетесь подключиться, выключен и что вы не подключены как пользователь, у которого есть разрешение на его запуск. Войдите в систему на сервере 192.168.1.53 и запустите экземпляр orcl или попросите своего администратора базы данных сделать это за вас.
Я столкнулся с той же проблемой при создании соединения в SQLDeveloper «ORA-01034: ORACLE недоступен ORA-27101: область общей памяти не существует»
1. Обновите файл listene.ora, чтобы включить SID.
В каталоге Oraclexe может быть установлено разрешение «ReadOnly». Измените разрешение каталога/подкаталога на чтение/запись и перезапустите службы прослушивателя. Проблема решена.
Имела ту же проблему в Windows XP. Решено. Ошибка вызвана тем, что системный журнал заполнен. Панель управления → Администрирование → Просмотр событий Щелкните правой кнопкой мыши журнал приложений, очистите все события, необязательно сохраните журнал. Тот же процесс для системного журнала. Перезагрузитесь, и он должен работать.
Эта та же самая ошибка произошла со мной, хотя ORACLE_HOME и ORACLE_SID , казалось, были настроены правильно.
Проблема была в ORACLE_HOME , который не должен заканчиваться символом косой черты. Когда я удалил завершающий слеш, он начал работать правильно.
Итак, даже если кажется, что все настроено нормально, проверьте ваши переменные для этого.
Удалить sga_target строку в init.ora файл, а затем:
Я попал в один и тот же симптом shared memory realm does not exist (в Windows), но по другой причине. Я только что установил Oracle (XE) и после некоторого устранения неполадок установил, что моя установка была повреждена из-за наличия свойства среды ORACLE_HOME в момент его установки.
Если это TL;DR, перейдите к «Чтобы решить:»!
Мой первоначальный симптом был:
Очевидно, что установка Windows считывает ORACLE_HOME из реестра и не нуждается (и, конечно, в моем случае не должна иметь. ) свойство среды.
Удалите его, как показано ниже:
- Изменить настройки системной среды (клавиша Windows и запустить набрав ‘env’, и вы должны увидеть этот вариант.
- Удалить любые переменные пользовательской и системной среды, называемые ORACLE_HOME, если настоящее время. (запишите их значения, в основном из интереса, но могут быть используйте, если вы хотите вернуть их по какой-то причине!)
- Перезагрузите компьютер. Не отчаивайтесь с выключенным протоколом — перезагрузите машина. Установка Windows Oracle по умолчанию использует службы Windows и ваша установка в настоящее время очень плоха — ей нужен перезапуск.
После перезагрузки я смог получить сообщения об ошибках, отличные от «Нет файла сообщений. «, и мог бы начать смотреть на то, что проблема была. Установка ORACLE_SID на XE и подключение @XE Я получил до ошибок на этой странице, а именно следующие симптомы:
Еще один признак: При запуске страницы «Начало работы» она не смогла соединиться, предоставив ошибку не найденную (если я правильно помню), несмотря на запуск слушателей Windows и служб XE. Как отмечено в другом ответе, это может быть связано с тем, что службы Windows не запускаются. В моем случае эти службы были запущены, поэтому что-то еще было неправильно сконфигурировано.
В этот момент я подумал, что, возможно, моя установка просто так плохо поступила из-за наличия моего плохого свойства среды ORACLE_HOME, которое я должен переустановить. (Предыдущие переустановки не помогли, но все это было до того, как я заметил свойство системной среды ORACLE_HOME (возможно, установленное мной год назад!).
Итак, чтобы решить:
- Закройте любое приложение, смотрящее на установочный каталог Oraclexe (приглашения редакторов/исследователей/cmd)
- Быстрая поездка на добавление и удаление программ и удаление OracleXe
- Дважды проверьте, что у вас нет никакого свойства среды ORACLE_HOME, помните — Windows будет использовать записи реестра, чтобы получить его.
- Перезагрузите (не рискуйте — мы в этом надолго!)
- Вы уверены, что не было свойства ORACLE_HOME?
- Запустите программу установки Oracle еще раз (в качестве учетной записи локального администратора)
- Вы должны уметь радоваться работе. Я сделал, по крайней мере!
One Can Succeed at Almost Anything For Which He Has Enthusiasm.
All the Views expressed here are my own and do not reflect opinions or views of the anyone else.All the views are tested on my testing environment and kindly test the post before applying anything on production.You can reach to me at neeraj.vishen@gmail.com .
Tuesday, February 7, 2012
ORA-01034 & ORA-27101: Shared Memory Realm Does Not Exist
Case 1 : When try to connect with normal user we get the error as
C:\> sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Mon Feb 6 11:22:08 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: scott
Enter password:
ERROR:
O RA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Process ID: 0
Session ID: 0 Serial number: 0
To solve this issue , set the ORACLE_SID and start the database using the «sys» user as sysdba and start the database ,
C:\> set ORACLE_SID=noida
C:\> sqlplus sys/xxxx@noida as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Feb 6 11:25:13 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 331350480 bytes
Database Buffers 197132288 bytes
Redo Buffers 5804032 bytes
Database mounted.
Database opened.
$ sqlplus user/password@db_alias
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory
We need to Manually startup the database or check whether the listener is started or not . So either connect as
$ export ORACLE_SID=noida
$ sqlplus sys/password as sysdba
SQL> startup
or
check the status of listener if not started then start the listener as
$ lsnrctl
lsnrctl> stop
lsnrctl> start
lsnrctl> exit
$ export ORACLE_SID=noida
$ sqlplus sys/password@noida as sysdba
SQL> startup
Case 3 : Make sure while connecting, that the ORACLE_SID and ORACLE_HOME is correctly set . There should not be trailing trash in ORACLE_HOME path . Remove the extra «/» from the end of ORACLE_HOME
Incorrect Home location: (ORACLE_HOME = /u01/app/oracle/product/11.2.0/)
Correct Home location : (ORACLE_HOME = /u01/app/oracle/product/9.2.0)
Once , we have correctly set the path then reload the listener and set or export ORACLE_SID before connecting as :
Linux :
$ export ORACLE_SID=noida
$ sqlplus sys/xxxx@noida as sysdba
SQL> startup
Window :
C:\> set ORACLE_SID=noida
C:\> sqlplus sys/xxxx@noida as sysdba
C:\> startup
Case 4 : Sometimes in case of window , if event log is full , then we get this error . So delete the event logs and try to connect again .
Case 5 : Sometimes , in case of window , we resolve this issue by simply restart the oracle services . so restart the window services as
start —> cmd — > net stop oracleserviceXXXX
— >> net start oracleservice .
Enjoy 🙂