Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 31518 invoked from network); 20 Dec 2007 11:53:40 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-69-64-49-119.inaddr.intergenia.de with SMTP; 20 Dec 2007 11:53:40 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 843157DD3F5;
 Thu, 20 Dec 2007 12:53:40 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 03719-08; Thu, 20 Dec 2007 12:53:40 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E3DAB7DCDBD;
 Thu, 20 Dec 2007 12:53:39 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 20 Dec 2007 12:06:16 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 500577DD960
 for <oracle-l@freelists.org>; Thu, 20 Dec 2007 12:06:16 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 25801-08 for <oracle-l@freelists.org>;
 Thu, 20 Dec 2007 12:06:16 -0500 (EST)
Received: from email10.mywebmailserver.com (email10.mywebmailserver.com [199.231.136.140])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E05F17DD95E
 for <oracle-l@freelists.org>; Thu, 20 Dec 2007 12:06:15 -0500 (EST)
Received: from 600d620tcoyle ([72.165.244.50])
        by email10.mywebmailserver.com (IntelliMail) with ASMTP id CRY74585;
        Thu, 20 Dec 2007 12:06:14 -0500
From: "Ted Coyle" <oracle-l@webthere.com>
To: <dannorris@dannorris.com>,
 <niall.litchfield@gmail.com>,
 "'oracle-l'" <oracle-l@freelists.org>
References: <500108.81558.qm@web35414.mail.mud.yahoo.com>
Subject: RE: linux environment question
Date: Thu, 20 Dec 2007 12:06:36 -0500
Message-ID: <001d01c8432a$ae104b50$3921a8c0@medecision.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_001E_01C84300.C53A4350"
In-Reply-To: <500108.81558.qm@web35414.mail.mud.yahoo.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-archive-position: 4043
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: oracle-l@webthere.com
Precedence: normal
Reply-to: oracle-l@webthere.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------=_NextPart_000_001E_01C84300.C53A4350
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Dan, 

I believe you are correct with the path set to start the system.

 

The "initialization or shutdown" issue is probably related to starting an
instance with an incorrectly cased SID.

 

All my SIDs are lowercase.  If I were to export ORACLE_SID=ORCL and the
config files are initorcl.ora, Oracle would attempt to start an ORCL
instance that doesn't exist and I'd get the same message.

 

 Ps -ef |grep orcl    or ps -ef |grep pmon should show this.  

 

Ted

 

  _____  

From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org]
On Behalf Of Dan Norris
Sent: Thursday, December 20, 2007 10:18 AM
To: niall.litchfield@gmail.com; oracle-l
Subject: Re: linux environment question

 

I've experienced that before. While I didn't conduct very careful
experiments to determine the reason, my theory is that the ORACLE_HOME at
the time the database was started was set to /path/to/oracle/home/ (with the
trailing slash). Since it was started that way, it seemed that Oracle was
doing a comparison between the environment of the calling program (sqlplus)
and the environment stored in the running program's state (the DB instance)
and that's why you had to match it exactly--not logically match. This is
just a theory--not a proof.

Not sure why you got the "initialisation or shutdown in progress" message
though--that would require some more testing that I haven't yet done (or
needed to do). 

If anyone finds the real reason or can confirm my theory, I'd love to hear
it as well.

Dan

----- Original Message ----
From: Niall Litchfield <niall.litchfield@gmail.com>
To: oracle-l <oracle-l@freelists.org>
Sent: Thursday, December 20, 2007 8:37:20 AM
Subject: linux environment question

all

 

I'm betraying my ignorance here so be gentle. We configured an oracle
account with an ORACLE_HOME environment variable ( in .bash_profile) of

 

/path/to/oracle/home

 

and also set the PATH as $ORACLE_HOME/bin:$PATH $ORACLE_SID was also set
correctly. 

 

connecting to the running database gave 'initialisation or shutdown in
progress'. If however we ran oraenv we were able to connect. On comparison
we discovered that if we set ORACLE_HOME as 

 

/path/to/oracle/home/  (trailing /) 

 

then we could connect just fine. My question is why is the trailing slash
apparently necessary? 


-- 
Niall Litchfield
Oracle DBA
http://www.orawin.info 

 


------=_NextPart_000_001E_01C84300.C53A4350
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Dan, <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I believe you are correct with the =
path
set to start the system.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>The &#8220;initialization or =
shutdown&#8221;
issue is probably related to starting an instance with an incorrectly =
cased SID.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>All my SIDs are lowercase.&nbsp; If =
I were
to export ORACLE_SID=3DORCL and the config files are initorcl.ora, =
Oracle would
attempt to start an ORCL instance that doesn&#8217;t exist and I&#8217;d =
get
the same message.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;Ps &#8211;ef |grep
orcl&nbsp;&nbsp;&nbsp; or ps &#8211;ef |grep pmon should show =
this.&nbsp; <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ted<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> =
oracle-l-bounce@freelists.org
[mailto:oracle-l-bounce@freelists.org] <b><span =
style=3D'font-weight:bold'>On
Behalf Of </span></b>Dan Norris<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, December =
20, 2007
10:18 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
niall.litchfield@gmail.com;
oracle-l<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: linux =
environment
question</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I've experienced that =
before. While
I didn't conduct very careful experiments to determine the reason, my =
theory is
that the ORACLE_HOME at the time the database was started was set to =
/path/to/oracle/home/
(with the trailing slash). Since it was started that way, it seemed that =
Oracle
was doing a comparison between the environment of the calling program =
(sqlplus)
and the environment stored in the running program's state (the DB =
instance) and
that's why you had to match it exactly--not logically match. This is =
just a
theory--not a proof.<br>
<br>
Not sure why you got the &quot;initialisation or shutdown in =
progress&quot;
message though--that would require some more testing that I haven't yet =
done
(or needed to do). <br>
<br>
If anyone finds the real reason or can confirm my theory, I'd love to =
hear it
as well.<br>
<br>
Dan<o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>----- Original =
Message
----<br>
From: Niall Litchfield &lt;niall.litchfield@gmail.com&gt;<br>
To: oracle-l &lt;oracle-l@freelists.org&gt;<br>
Sent: Thursday, December 20, 2007 8:37:20 AM<br>
Subject: linux environment question<o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>all<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>I'm betraying my ignorance here so be gentle. We configured an =
oracle
account with an ORACLE_HOME environment variable ( in .bash_profile) =
of<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>/path/to/oracle/home<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>and also set the PATH as $ORACLE_HOME/bin:$PATH $ORACLE_SID was =
also
set correctly. <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>connecting to the running database gave 'initialisation or =
shutdown in
progress'. If however we ran oraenv we were able to connect. On =
comparison we
discovered that if we set ORACLE_HOME as <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>/path/to/oracle/home/&nbsp; (trailing /) =
<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>then we could connect just fine. My question is why is the =
trailing
slash apparently necessary? <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><br>
-- <br>
Niall Litchfield<br>
Oracle DBA<br>
<a href=3D"http://www.orawin.info" =
target=3D"_blank">http://www.orawin.info</a> =
<o:p></o:p></span></font></p>

</div>

</div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>

------=_NextPart_000_001E_01C84300.C53A4350--

--
http://www.freelists.org/webpage/oracle-l


