Received: (qmail 17471 invoked from network); 23 Sep 2011 02:42:24 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.ip-pool.com with SMTP; 23 Sep 2011 02:42:16 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 03D59E42E72;
 Fri, 23 Sep 2011 03:42:16 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1316763736; bh=TdBuOltrvWJ2lEnjhU/MovL0qosuf3QtA2rxoE6Y
 gX8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:
	 From:To:Cc:Content-type:Content-Transfer-Encoding:Sender:Reply-To:
	 List-help:List-unsubscribe:List-Id:List-subscribe:List-owner:
	 List-post:List-archive; b=fNJ/gf8Ae5eQizVPTXZDLDWplr79KH3ZvIu30Q6A
 Df0FN7d3cWcnunJ7QKowyUsrnju5jOCe9+o1iawrVzDRSr+95YoMCASiJceqIgA+Hgu
 4B4OtcuXVor7MvpPQ/ric7wIfnMZkkH7PPIuzLpX40irldgv9C233bgKr16OOHAU=
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
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 w8gysjURmAsw; Fri, 23 Sep 2011 03:42:15 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8E7D3E42E37;
 Fri, 23 Sep 2011 03:41:32 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 23 Sep 2011 03:40:49 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C5C6DE42A68
 for <oracle-l@freelists.org>; Fri, 23 Sep 2011 00:38:31 -0400 (EDT)
Authentication-Results: turing.freelists.org; dkim=pass (1024-bit key) header.i=@gmail.com
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 J+hUiF2rtgk2 for <oracle-l@freelists.org>;
 Fri, 23 Sep 2011 00:38:31 -0400 (EDT)
Received: from mail-wy0-f179.google.com (mail-wy0-f179.google.com [74.125.82.179])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 73114E4190C
 for <oracle-l@freelists.org>; Fri, 23 Sep 2011 00:38:25 -0400 (EDT)
Received: by wyg36 with SMTP id 36so3142930wyg.10
        for <oracle-l@freelists.org>; Thu, 22 Sep 2011 21:38:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=cjDea2wilFtoOghWZnmvL/bqmbNp5gkXRKFhtWmYXh8=;
        b=L52UWUaItMweGh4l2ezOed/lTyU+C0LaKwy+8p6jYoiD8PCEGT5NCOXk0l843KaIEG
         s0+uNsGT+jMWoqKvXQAROByCIbi1LLzmSPx4imgGMbZkU9NWvgtanSEDkrNyTVZv0A3Z
         QVgrpRPSUs+vOx9FMRQ3GuAQCo3R4TPrRYbu4=
MIME-Version: 1.0
Received: by 10.216.159.68 with SMTP id r46mr3030740wek.84.1316752696885; Thu,
 22 Sep 2011 21:38:16 -0700 (PDT)
Received: by 10.217.4.145 with HTTP; Thu, 22 Sep 2011 21:38:16 -0700 (PDT)
In-Reply-To: <EF763CC31BB89B47B435AE02FE42263F0472417D21@S009-APEXM05.ds.ad.ssmhc.com>
References: <EF763CC31BB89B47B435AE02FE42263F0472417D1C@S009-APEXM05.ds.ad.ssmhc.com>
 <EF763CC31BB89B47B435AE02FE42263F0472417D21@S009-APEXM05.ds.ad.ssmhc.com>
Date: Fri, 23 Sep 2011 10:08:16 +0530
Message-ID: <CAJsOtB7jUcxkdmzNYU6cOqYE=xSV4BRjpWgKb3s7CGTBJM61Yg@mail.gmail.com>
Subject: Re: Trying to write a short script
From: Subodh Deshpande <deshpande.subodh@gmail.com>
To: Vince_Laurent@ssmhc.com
Cc: "oracle-l@freelists.org" <oracle-l@freelists.org>
Content-type: text/plain
Content-Transfer-Encoding: 8bit
X-archive-position: 38882
X-Approved-By: Mark.Bobak@proquest.com
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: deshpande.subodh@gmail.com
Precedence: normal
Reply-To: deshpande.subodh@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

oh great you solved...it... :) ..subodh
On 23 September 2011 02:22, Laurent, Vincent <Vince_Laurent@ssmhc.com>wrote:

> I hate it when I solve it the moment after I post.
> I just created an sql file called dbversion.sql with the following:
>
> select banner
> from   sys.v_$version;
> exit
>
> then from inside my unix script I just call it:
>
> sqlplus -s / @dbverion
>
> *sigh*
> I figured I post my answer for feedback.
>
> -----Original Message-----
> From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org]
> On Behalf Of Laurent, Vincent
> Sent: Thursday, September 22, 2011 3:43 PM
> To: oracle-l@freelists.org
> Subject: Trying to write a short script
>
> I am currently using Oracle 11.2.0.2 on HP-UX 11.31
> I have a script that does this:
>
>  # Get the path to the trace files
>  DUMP=`/oracle/$ORACLE_SID/112_64/bin/sqlplus -s / as sysdba <<EOF
>  set head off
>  set feedback off
>  select * from v\\$version;
>  exit
>  EOF`
>  echo $DUMP
>
> but the output comes back like this (all wrapped as one line):
>
> Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit
> Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production
> TNS for HPUX: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 -
> Production
>
> Instead of like this (each product it's own line):
>
> Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit
> Production
> PL/SQL Release 11.2.0.2.0 - Production
> CORE    11.2.0.2.0      Production
> TNS for HPUX: Version 11.2.0.2.0 - Production
> NLSRTL Version 11.2.0.2.0 - Production
>
> Ideas to fix?
>
>
>
> Confidentiality Notice: This email message, including any
> attachments, is for the sole use of the intended recipient(s) and
> may contain confidential and privileged information. Any
> unauthorized review, use, disclosure or distribution is prohibited.
> If you are not the intended recipient, please contact the sender by
> reply email and destroy all copies of the original message.
> --
> http://www.freelists.org/webpage/oracle-l
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>


-- 
==============================
DO NOT FORGET TO SMILE TODAY
==============================


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


