Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 15630 invoked from network); 24 Oct 2008 11:00:46 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by air964.startdedicated.com with SMTP; 24 Oct 2008 11:00:42 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 867E4A93C58;
 Fri, 24 Oct 2008 12:00:35 -0400 (EDT)
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 11424-07; Fri, 24 Oct 2008 12:00:35 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E5E2CA93C51;
 Fri, 24 Oct 2008 12:00:34 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 24 Oct 2008 11:58:33 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0B0EDA93A74	for <oracle-l@freelists.org>; Fri, 24 Oct 2008 11:58:33 -0400 (EDT)
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 10655-07 for <oracle-l@freelists.org>;	Fri, 24 Oct 2008 11:58:32 -0400 (EDT)
Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181])	by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A757AA93990	for <oracle-l@freelists.org>; Fri, 24 Oct 2008 11:58:32 -0400 (EDT)
Received: by wa-out-1112.google.com with SMTP id v33so575256wah.2        for <oracle-l@freelists.org>; Fri, 24 Oct 2008 08:58:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=domainkey-signature:received:received:message-id:date:from:to         :subject:cc:in-reply-to:mime-version:content-type:references;        bh=mONe6nQu/ciZXiFVnz6tJsw5tX2FxJ1taPvDaTTvuBA=;        b=HIouaVBCmjAK0+ajBU4uyJtTN1iQUUgUKlMtLouKoHcNYy1O8BZb9KoRyxRk2x2unb         5xAcbCT/fym9wPcdohrbr0Z8JpkYRFN48C9CsPrgt3xRWA5ckfo5bJ8lJ6hRW40fH48t         WuBfLTgBUSEdSXeS2mgNcl7xE6Q7mpAE6ZB70=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;        h=message-id:date:from:to:subject:cc:in-reply-to:mime-version         :content-type:references;        b=bmoTaH/B8HC0bYb+VOmDwVyjxT/gFRX+emgws3nItADsrINniNynjNKB7FcnyF1B9e         h671pbxXl3XkX1tK3P23MzrCyDEaM/RVraeki8QK4cBxZFdMNPT+sOo39qiMZVXuEJjY         TnrW0FAKucUhoreebPDfoZOp/z7A78SgdH30c=
Received: by 10.114.168.15 with SMTP id q15mr2095447wae.167.1224863911609;        Fri, 24 Oct 2008 08:58:31 -0700 (PDT)
Received: by 10.114.168.18 with HTTP; Fri, 24 Oct 2008 08:58:31 -0700 (PDT)
Message-ID: <e9569ef30810240858u31382b8ew9749f7eb608eacba@mail.gmail.com>
Date: Fri, 24 Oct 2008 10:58:31 -0500
From: "Bradd Piontek" <piontekdd@gmail.com>
To: fuadar@yahoo.com
Subject: Re: Version of Oracle Database without connecting to the database.
Cc: oracle-l@freelists.org
In-Reply-To: <901945.31761.qm@web82106.mail.mud.yahoo.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_4122_6223577.1224863911623"
References: <901945.31761.qm@web82106.mail.mud.yahoo.com>
X-archive-position: 11928
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: piontekdd@gmail.com
Precedence: normal
Reply-to: piontekdd@gmail.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
------=_Part_4122_6223577.1224863911623
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

or you could try  "sqlplus -v'
# sqlplus -v

SQL*Plus: Release 10.2.0.3.0 - Production

sqlplus doesnt' always match the exact patchset of the database, but it'll
get you the major level.
I'd use that in conjuction with the oratab to get the oracle_homes.

opatch is nice, but it assumes you know the oracle_home already.

Bradd Piontek
  "Next to doing a good job yourself,
        the greatest joy is in having someone
        else do a first-class job under your
        direction."
 -- William Feather


On Fri, Oct 24, 2008 at 10:45 AM, Fuad Arshad <fuadar@yahoo.com> wrote:

> Folks,
> I'm trying to find a way to script finding  an approximation of the version
> of the database without connecting to the database itself.
> The goal is to try to find out of the Oracle_home is a Oracle 10 home , 9
> home etc .
>
> right now i'm doiing something like
> DATAVERSION1=`echo $ORACLE_HOME | awk -F/ '{print $6}'`
> expecting that $6  would lead me to something like
> /usr/local/oracle/product/10.2
>
> but this is not a very foolproof implementation since installs can take
> various forms and break this implementation.
>
>
> Any ideas of how i can get the oracle version info considering that i  will
> always know the value of $ORACLE_HOME.
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

------=_Part_4122_6223577.1224863911623
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

or you could try&nbsp; &quot;sqlplus -v&#39; <br># sqlplus -v<br><br>SQL*Plus: Release 10.2.0.3.0 - Production<br><br>sqlplus doesnt&#39; always match the exact patchset of the database, but it&#39;ll get you the major level.<br>
I&#39;d use that in conjuction with the oratab to get the oracle_homes.<br><br>opatch is nice, but it assumes you know the oracle_home already.<br><br clear="all">Bradd Piontek<br> &nbsp; &quot;Next to doing a good job yourself, <br>
 &nbsp; &nbsp; &nbsp; &nbsp; the greatest joy is in having someone <br> &nbsp; &nbsp; &nbsp; &nbsp; else do a first-class job under your &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; direction.&quot;<br> &nbsp;-- William Feather<br>
<br><br><div class="gmail_quote">On Fri, Oct 24, 2008 at 10:45 AM, Fuad Arshad <span dir="ltr">&lt;<a href="mailto:fuadar@yahoo.com">fuadar@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Folks,<br>
I&#39;m trying to find a way to script finding &nbsp;an approximation of the version of the database without connecting to the database itself.<br>
The goal is to try to find out of the Oracle_home is a Oracle 10 home , 9 home etc .<br>
<br>
right now i&#39;m doiing something like<br>
DATAVERSION1=`echo $ORACLE_HOME | awk -F/ &#39;{print $6}&#39;`<br>
expecting that $6 &nbsp;would lead me to something like /usr/local/oracle/product/10.2<br>
<br>
but this is not a very foolproof implementation since installs can take various forms and break this implementation.<br>
<br>
<br>
Any ideas of how i can get the oracle version info considering that i &nbsp;will always know the value of $ORACLE_HOME.<br>
<font color="#888888">--<br>
<a href="http://www.freelists.org/webpage/oracle-l" target="_blank">http://www.freelists.org/webpage/oracle-l</a><br>
<br>
<br>
</font></blockquote></div><br>

------=_Part_4122_6223577.1224863911623--
--
http://www.freelists.org/webpage/oracle-l


