4
25 /1 1/1 3 One Can S ucce ed at A lmo st An y thin g F or Wh ich He Has En th usiasm ... : ORA-01 03 4 & ORA -271 01 : Sh ared Mem ory Rea lm Doe s Not Ex ist neeraj -dba.blogspot.com.br/2012/02/ora-01034-ora-27101-shared- memor y -r eal m.html 1/4 All the Vie ws express ed here are my own and do no t reflect opinions o r view s of t he anyone el se.All the vi ews are tested o n my testing envi ronment and kindly test the p ost before applyi ng anything on production.Yo u can reach to me at [email protected] . One Can Su cceed at Almost  Anything For Which He Has Enthusiasm... TUESDAY , FEBRUARY 7, 2012 ORA-01034 & ORA-27101: Shared Memory Realm Does Not Exist ORA-27101 and  ORA-01034 combi ned may occurs in various scenarios .One of the reason for this error is that the database is not up. When we try to connect with oracle database or sometimes during installation we may get thi s e rror . We may f ace this error i n so me other scenario's too . Here are few poss ible scenario's ( some scenario's are from window platform and some are from Linux platform ) . 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, Oracl e. All rights reserved. Enter use r-name: scott Enter password: ERROR: ORA-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 s ys/x xxx @noida as sysdba SQL*Plus: Release 11.2.0.1.0 Producti on on Mon Feb 6 11:25:13 2012 Copyright (c ) 1982, 2010, Oracl e. All rights reserved. Connected to an idle instance. SQL> startup ORACLE i nstance sta rted. Total Sy stem Gl obal Area 535662592 bytes Fixed Size 1375792 bytes Variable Size 331350480 bytes Databas e Buff ers 197132288 bytes Redo Buff ers 5804032 bytes Database mounted. Database opened. Case 2 : On a system with multi ple IP addresse s, when w e connect with sqlpl us locally on the server  (i.e. "sqlplus user/password") everything is OK, but connecting through a TNS alias, either from the netwo rk or locally on the server, we get the the foll owing errors : $ sqlplus user/password@db_alias ERROR: ORA-01034:  ORACLE not available ORA-27101:  shared memory realm does not e xist SVR4 Error: 2: No such file or directory We ne ed to Manua ll y startup the datab ase o r check whethe r the li stene r 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_SI D and O RACLE_HOME is correctly set . There should not b e traili ng trash in ORACLE_HOME path . Remove the extra "/" from the end of ORACLE_HOME Search SEARCH BLOG POST Selecione o idioma P ow ered by Tradutor TRA NSLATE MY PAGE NEERAJ VISHEN Gurgoan, Ncr/Delhi, India I have started this blog to share my knowledge and experience with other Oracle DBA enthusi asts.I have e xperience on database architecture ,design and administrating ranging from 9i,10g,11g on various platforms.My main interests are high availability and disaster recovery solut ions for mission critical 24×7 systems. View my complete profile  A BOUT ME FOLLOW BY EMAIL Email address... Submit SUBSCRIBE T O  Posts  Comments Join this site w ith Google F riend Connect Membe rs (101) More »  Already a member? Sign in FOLLOWERS  V ISIT ORS mais Próximo blog» Criar um blog  Login

Oracle Service Do Not Start

Embed Size (px)

Citation preview

8/12/2019 Oracle Service Do Not Start

http://slidepdf.com/reader/full/oracle-service-do-not-start 1/4

25/11/13 One Can Succeed at Almost Anything For Which He Has Enthusiasm...: ORA-01034 & ORA-27101: Shared Memory Realm Does Not Exist

neeraj-dba.blogspot.com.br/2012/02/ora-01034-ora-27101-shared-memory-realm.html 1/4

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

[email protected] .

One Can Succeed at Almost Anything For Which He HasEnthusiasm...

TUESDAY , FEBRUARY 7, 2012

ORA-01034 & ORA-27101: Shared Memory Realm Does Not Exist

ORA-27101 and  ORA-01034  combined may occurs in various scenarios .One of the reason for this

error is that the database is not up. When we try to connect with oracle database or sometimes during

installation we may get this e rror . We may face this error in some other scenario's too . Here are few

poss ible scenario's ( some scenario's are from window platform and some are from Linux platform ) .

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 use r-name: scott

Enter password:

ERROR:

ORA-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.

Case 2 :  On a system with multiple IP addresses, when we connect with sqlplus locally on the server

 (i.e. "sqlplus user/password") everything is OK, but connecting through a TNS alias, either from the

network or locally on the server, we get the the following errors :

$ sqlplus user/password@db_aliasERROR:

ORA-01034: ORACLE not available

ORA-27101: shared memory realm does not exist

SVR4 Error: 2: No such file or directory

We need to Manua lly startup the database o r check whethe r 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 sta rt 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

Search

SEARCH BLOG POST

Selecione o idioma

Pow ered by Tradutor 

TRA NSLATE MY PAGE

NEERAJ VISHENGurgoan, Ncr/Delhi,

India

I have started this

blog to share my knowledge and

experience with other Oracle DBA

enthusiasts.I have experience on

database architecture ,design and

administrating ranging from

9i,10g,11g on various platforms.My

main interests are high availability

and disaster recovery solutions for

mission critical 24×7 systems.

View my complete profile

 A BOUT ME

FOLLOW BY EMAIL

Email address... Submit

SUBSCRIBE T O

 Posts

 Comments

Join this site

w ith Google Friend Connect

Membe rs (101) More »

 Already a member? Sign in

FOLLOWERS

 V ISIT ORS

mais Próximo blog» Criar um blog   Login

8/12/2019 Oracle Service Do Not Start

http://slidepdf.com/reader/full/oracle-service-do-not-start 2/4

25/11/13 One Can Succeed at Almost Anything For Which He Has Enthusiasm...: ORA-01034 & ORA-27101: Shared Memory Realm Does Not Exist

neeraj-dba.blogspot.com.br/2012/02/ora-01034-ora-27101-shared-memory-realm.html 2/4

Newer Post Older PostHome

Subscribe to: Post Comments (Atom)

Posted by NEERAJ VISHEN at Tuesday, February 07, 2012 

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=noidaC:\> 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 reso lve this issue by simply restart the oracle services .

so restart the window services as

start --> cmd --- > net stop oracleserviceXXXX

--- >> net start oracleservice .

Enjoy :-)

Recommend this on Google

Post a Comment

Create a Link

3 comments:

Madhu Sudhana Reddy said...

good document

July 12, 2012 at 4:15 PM

Anonymous said...

Thanks a lot guru! You saved my day.

August 28, 2012 at 9:50 PM

Ewerton Costa said...When I execute the startup command I get TNS:listener does not currently know of service requested

in connect descriptor. Any hints?

October 29, 2012 at 9:56 PM

Links to this post

Visit Oracle Community 

► 2013 (6)

▼ 2012 (29)

► August (1)

► July (2)

► June (1)

► May (5)

► April (6)

► March (5)

▼ February (5)

Difference Between UniqueIndexes and Unique Cons...

What is bootstrap?

ORA-01078 : Failure inProcessing SystemParameter...

ORA-01034 & ORA-27101:Shared Memory Realm DoesNo...

SQL*Plus Error Logging inOracle 11g

► January (4)

► 2011 (206)

BLOG ARCHIVE

MY BLOG LIST

Hemant's Oracle DBA Blog

Gather Statistics Enhancements

in 12c -- 5

The Oracle Instructor

The #DOAG2013 – Impressions

Gavin Sorma

Creating an O racle 12c Data

Guard Active Standby Databa se

Oracle database internals

by Riyaj

Scripts to create AWR reports

quickly.

Real Life Database / SQL

Experiences : An Oracle

Blog from Vivek Sharma

Issue with Autotrace ! Criticality

of Using a R ight tool…..

The Tom Kyte Blog

All day optimize r event....

AristaDBA's Oracle Blog....

I Am Speaking @ Sangam

2013, Will You Be Joining Me?

Oracle Database Experts

rotate all the log files in the

RAC environment

Kamran Agayev's Oracle

Blog

Step by Step Installing O racle

12c RAC on VirtualBox – Video

Tutorial

Oracle help at your

desk....:-)

AIX topas explained.

Alberto Dell'Era's Oracle

blog

Fast refresh of aggregate-only

materialized views with MAX –

algorithm

el-caro

12C ADG Enhancements

8/12/2019 Oracle Service Do Not Start

http://slidepdf.com/reader/full/oracle-service-do-not-start 3/4

25/11/13 One Can Succeed at Almost Anything For Which He Has Enthusiasm...: ORA-01034 & ORA-27101: Shared Memory Realm Does Not Exist

neeraj-dba.blogspot.com.br/2012/02/ora-01034-ora-27101-shared-memory-realm.html 3/4

Charles Hooper's Oracle

Notes

Oracle Enqueue Rules Leading

to Deadlock Changes Again in

12.1?

Miladin Modrakovic's Blog:

Oraclue

2012 in review

oracle-developer.net

Profiling trace files with

preprocessor external tables in

11g

Radoslav Rusinov's Oracle

Blog

Forcing Oracle to use LOGGING

mode

Presentations

oaktable

Oracle Distilled

Jonathan Lewis blog's

Pythian: Plan, Deploy and

Manage Your Enterprise

Database Infrastructure

Oracle Database Online

Documentation 11g Release2 (11.2)

Table_exists_action Parameter of Data Pump

Sometimes it happens that we needto import table into an existingtable.If we import the table in thatschemas it throws error regardingth...

ORA-01034 & ORA-27101: SharedMemory Realm Does Not Exist

ORA-27101 and ORA-01034 combined may occurs in variousscenarios .One of the reason for this

error is that the database is not up .Whe...

ORA-01000: Maximum Open CursorsExceeded

Once our client report that they arefacing error “ORA-01000: maximumopen cursors exceeded” while running a application . As it seems...

How to Register Listener in theDatabase ?

The listener is a separate processthat runs on the database servercomputer. It receives incomingclient connection requests andmanages ...

How to resize redolog file in oracle

Once , i receive the e-mail regarding

the resize of the redo log file . TheSender want the easiest way to sizethe redo log file something...

IMP-00010 not a valid export fileheader failed verification , IMP-00000:

While performing an exp/impoperation , i got IMP-00010 whileimporting the dumps .On googling ifound that this error occur generallydue ...

Flashback_Scn and flashback_Timeparameter of Data Pump

Flashback_Scn and flashback_Time are two important feature of the datapump 11g . If we want to run a large export whilst...

How to Reduce DB File SequentialRead Wait

DB File Sequential Read wait eventoccurs when we are trying to accessdata using index and oracle is waitingfor the read of index bloc...

Tracking Oracle database growth

Keeping track of database space

POPULA R POSTS

8/12/2019 Oracle Service Do Not Start

http://slidepdf.com/reader/full/oracle-service-do-not-start 4/4

25/11/13 One Can Succeed at Almost Anything For Which He Has Enthusiasm...: ORA-01034 & ORA-27101: Shared Memory Realm Does Not Exist

neeraj-dba.blogspot.com.br/2012/02/ora-01034-ora-27101-shared-memory-realm.html 4/4

growth in production environments isa must-to-do job of every DBA.Maintaining and reporting informationo...

ORA-39082 ".... created withcompilation warnings" whileImporting

ORA-39082 generally occur during the import . The error message states that the object in the SQLstatement following this ...

Share this on Facebook

Tweet this

View stats

 (NEW) Appointment g adget >>

SHARE IT

 483,396

TOTA L PAGEVIEWS

All IS WELL. Powered by Blogger.