<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sqlplus ksh strange problem in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677796#M41932</link>
    <description>Hi again&lt;BR /&gt;&lt;BR /&gt;I have find a workaround. In fact the $instance (particulary the $) is a problem here. &lt;BR /&gt;&lt;BR /&gt;I have replaced with that:&lt;BR /&gt;&lt;BR /&gt;spout=`$ORACLE_HOME/bin/sqlplus -s /nolog &amp;lt;&amp;lt; EOF&lt;BR /&gt; set echo off feedb off&lt;BR /&gt; SET PAGESIZE 80&lt;BR /&gt; SET LINESIZE 190&lt;BR /&gt; connect / as sysdba&lt;BR /&gt; select property_value from database_properties where property_name ='NLS_RDBMS_VERSION';&lt;BR /&gt; exit success&lt;BR /&gt; EOF`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thats's work now but I'm not entirely satisfied. &lt;BR /&gt;&lt;BR /&gt;Have a nice week-end Guys&lt;BR /&gt;Den</description>
    <pubDate>Fri, 20 Aug 2010 22:01:41 GMT</pubDate>
    <dc:creator>Leo The Cat</dc:creator>
    <dc:date>2010-08-20T22:01:41Z</dc:date>
    <item>
      <title>sqlplus ksh strange problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677795#M41931</link>
      <description>Hi guys&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm doing this:&lt;BR /&gt;&lt;BR /&gt; spout=`$ORACLE_HOME/bin/sqlplus /nolog &amp;lt;&amp;lt; EOF&lt;BR /&gt; set echo off feedb off&lt;BR /&gt; SET PAGESIZE 80&lt;BR /&gt; SET LINESIZE 190&lt;BR /&gt; connect / as sysdba&lt;BR /&gt; /&lt;BR /&gt; select version from v$instance;&lt;BR /&gt; exit success&lt;BR /&gt; EOF`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now if do&lt;BR /&gt; echo $spout &lt;BR /&gt;&lt;BR /&gt;I have this:&lt;BR /&gt;&lt;BR /&gt;SQL*Plus: Release 10.2.0.4.0 - Production on Fri Aug 20 17:53:31 2010 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. SQL&amp;gt; SQL&amp;gt; SQL&amp;gt; SQL&amp;gt; Conne&lt;BR /&gt;cted. SQL&amp;gt; SP2-0103: Nothing in SQL buffer to run. SQL&amp;gt; select version from v SR28132.log aa.sql afiedt.buf automation cbarba dje.tmp echin imports li&lt;BR /&gt;st_unix_space_gb.ksh mbox mholkar rename_files.sh setup_ede shortcuts.sh smit.log smit.script smit.transaction sqlnet.log sqlplus timezone ERROR at li&lt;BR /&gt;ne 1: ORA-00942: table or view does not exist SQL&amp;gt; Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With&lt;BR /&gt; the Partitioning, Data Mining and Real Application Testing options&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;!!!&lt;BR /&gt;&lt;BR /&gt;I suppose that some output characters like * are expanded by OS.&lt;BR /&gt;&lt;BR /&gt;Hos to eliminate this bad behaviour ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bests Regards&lt;BR /&gt;Den</description>
      <pubDate>Fri, 20 Aug 2010 21:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677795#M41931</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2010-08-20T21:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus ksh strange problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677796#M41932</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;I have find a workaround. In fact the $instance (particulary the $) is a problem here. &lt;BR /&gt;&lt;BR /&gt;I have replaced with that:&lt;BR /&gt;&lt;BR /&gt;spout=`$ORACLE_HOME/bin/sqlplus -s /nolog &amp;lt;&amp;lt; EOF&lt;BR /&gt; set echo off feedb off&lt;BR /&gt; SET PAGESIZE 80&lt;BR /&gt; SET LINESIZE 190&lt;BR /&gt; connect / as sysdba&lt;BR /&gt; select property_value from database_properties where property_name ='NLS_RDBMS_VERSION';&lt;BR /&gt; exit success&lt;BR /&gt; EOF`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thats's work now but I'm not entirely satisfied. &lt;BR /&gt;&lt;BR /&gt;Have a nice week-end Guys&lt;BR /&gt;Den</description>
      <pubDate>Fri, 20 Aug 2010 22:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677796#M41932</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2010-08-20T22:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus ksh strange problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677797#M41933</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I suppose that some output characters like&lt;BR /&gt;&amp;gt; * are expanded by OS.&lt;BR /&gt;&lt;BR /&gt;Where is the "*"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; select version from v$instance;&lt;BR /&gt;&lt;BR /&gt;I'd expect the shell (not the OS) to expand&lt;BR /&gt;      $instance&lt;BR /&gt;here, but I don't know what value that might&lt;BR /&gt;have.  If you were trying to specify a&lt;BR /&gt;literal "v$instance" there, then you might&lt;BR /&gt;try quoting or escaping "$" appropriately,&lt;BR /&gt;like, for example:&lt;BR /&gt;&lt;BR /&gt;      select version from v\$instance;&lt;BR /&gt;&lt;BR /&gt;What were you expecting to do there?&lt;BR /&gt;&lt;BR /&gt;Using "bash", for example:&lt;BR /&gt;&lt;BR /&gt;alp$ echo $HOME&lt;BR /&gt;/ALP$DKA0/SMS&lt;BR /&gt;&lt;BR /&gt;alp$ cat hd.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;cat &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;$HOME&lt;BR /&gt;\$HOME&lt;BR /&gt;EOF&lt;BR /&gt;alp$ &lt;BR /&gt;&lt;BR /&gt;alp$ ./hd.sh&lt;BR /&gt;/ALP$DKA0/SMS&lt;BR /&gt;$HOME&lt;BR /&gt;alp$</description>
      <pubDate>Fri, 20 Aug 2010 22:38:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677797#M41933</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-08-20T22:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus ksh strange problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677798#M41934</link>
      <description>&amp;gt;I suppose that some output characters like * are expanded by OS.&lt;BR /&gt;&lt;BR /&gt;Yes, here documents are expanded by the shell.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How to eliminate this bad behaviour?&lt;BR /&gt;&lt;BR /&gt;Besides quoting each "$", etc as Steven mentions, you can quote the EOF word:&lt;BR /&gt;spout=`$ORACLE_HOME/bin/sqlplus /nolog &amp;lt;&amp;lt;\EOF</description>
      <pubDate>Sat, 21 Aug 2010 00:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677798#M41934</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-21T00:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: sqlplus ksh strange problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677799#M41935</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you are using the ksh shell, you can check what gets expanded. You only need to set the shell variables "verbose" and "xtrace".&lt;BR /&gt;&lt;BR /&gt;# set -vx&lt;BR /&gt;# echo $0&lt;BR /&gt;echo $0             # this line is the command you issued - verbose mode&lt;BR /&gt;+ echo -ksh         # this line is the command after the shell expansions - xtrace&lt;BR /&gt;-ksh                # this is the output&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Viktor</description>
      <pubDate>Mon, 23 Aug 2010 12:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sqlplus-ksh-strange-problem/m-p/4677799#M41935</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-08-23T12:16:00Z</dc:date>
    </item>
  </channel>
</rss>

