ORA-27101: shared memory realm does not exist

ORA-27101: shared memory realm does not exist
Cause: Unable to locate shared memory realm
Action: Verify that the realm is accessible

Reference: Oracle Documentation

There may be 2 scenarios, which may lead you to encounter ORA-27101
1) Invalid ORACLE_HOME and ORACLE_SID
2) Database is down

[oracle@192 ~]$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 22 16:48:05 2013
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory

Scenario 1: Invalid ORACLE_HOME and ORACLE_SID:

ORA-27101 is usually due to the invalid ORACLE_HOME and ORACLE_SID parameters at OS level. You should investigate that ORACLE_HOME and ORACLE_SID are set correctly, and ORACLE_HOME should be without trailing slash.

[oracle@192 ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/10.2.0/db_1

[oracle@192 ~]$ echo $ORACLE_SID
testdb

In our case ORACLE_SID was not correct, we need to export ORACLE_SID to the valid one which is ora10g

[oracle@192 ~]$ export ORACLE_SID=ora10g
[oracle@192 ~]$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 22 16:52:11 2013
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options


Scenario 2: Database is down:

You may also face it when the database is down, to solve ORA-27101 you may have to start the database only

[oracle@192 ~]$ sqlplus sys/sys as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 22 17:07:38 2013
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to an idle instance.

SQL> startup
ORACLE instance started.
Total System Global Area 1224736768 bytes
Fixed Size                  1219112 bytes
Variable Size             167773656 bytes
Database Buffers         1040187392 bytes
Redo Buffers               15556608 bytes
Database mounted.
Database opened.

Related Posts:
ORA-04031: unable to allocate n bytes of shared memory
- ORA-01034: ORACLE not available
- ORA-01157: cannot identify/lock data file string - see DBWR trace file
- ORA-00849: SGA_TARGET cannot be set to more than MEMORY_MAX_TARGET
- ORA-00604: error occurred at recursive SQL level string
- ORA-00600: internal error code
- ORA-00257: archiver error. Connect internal only, until freed

30 comments:

  1. Neither of these worked for me, but restarting the OracleServiceXE fixes it.

    But it's annoying. I'd like to find the cause and prevent it from happening in the first place.

    ReplyDelete
    Replies
    1. This would be a case in Windows system where u need to start the service prior to starting database.

      Delete
  2. Thanks.. it worked for me

    ReplyDelete
  3. Nice to see your post

    ReplyDelete
  4. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here.Same as your blog i found another one Oracle Project Portfolio Management Cloud Training.Actually I was looking for the same information on internet for Oracle PPM and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.

    ReplyDelete
  5. thank u so much..worked for me

    ReplyDelete
  6. pg joker vip เงาะป่า เป็นหนึ่งในเกมสล็อตที่ได้รับความนิยมและเป็นที่รู้จักอย่างกว้างขวางในวงการพนันออนไลน์ pg slot ด้วยคุณภาพของเกมที่มีความสวยงามและน่าตื่นเต้น รวมถึงรางวัลและโบนัส

    ReplyDelete
  7. Registered Nurse jobs in Australia offer remarkable career prospects for committed healthcare professionals. Applicants must hold a valid nursing license and display superior clinical skills. Responsibilities include providing high-quality patient care, collaborating with multidisciplinary teams, and following established healthcare protocols. Attractive salary packages, career advancement opportunities, and continuous professional development support are available. Strong communication skills and a dedication to patient-centered care are essential. Nurses in Australia's prestigious healthcare institutions can significantly enhance their careers while impacting patient health and wellbeing. Apply now to join an esteemed healthcare team.
    https://www.dynamichealthstaff.com/registered-nurse-jobs-australia

    ReplyDelete