The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix shell script Certification for oracle developer. rdhaprakasam UNIX for Dummies Questions & Answers 1 07-09-2009 04:24 PM
Return value from oracle to unix shell ravi214u UNIX for Dummies Questions & Answers 2 12-05-2008 08:01 AM
UNIX shell scripting for retrieving from oracle sundar_ravi4 Shell Programming and Scripting 5 07-06-2006 01:06 PM
Connecting to Oracle through unix shell scripts guptan UNIX for Advanced & Expert Users 1 07-04-2005 01:16 PM
Unix + oracle doubt....involving shell script mexx_freedom UNIX for Dummies Questions & Answers 2 08-02-2001 10:48 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-17-2009
user7509 user7509 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 14
Getting value from oracle to unix shell

All,

I am using Sun Solaris and Oracle 10g.
I have a simple shell script returning a value.


Code:
#!/usr/bin/ksh

dummyvar=`sqlplus -s '/as sysdba' <<END
set feedback off;
set verify off;
set serveroutput on;
select num from scott.num1;
END`
echo $dummyvar

For the above script - i am getting value as below

Code:
NUM --------- 16-APR-09

i.e, i am getting field name and value.

I don't want NUM-------- . I just want 16-APR-09.

Can someone help me out.

Next time use CODE-tags when posting code, data or logs to enhance readability and to keep formatting like indention etc., ty.

Last edited by zaxxon; 07-17-2009 at 01:37 AM.. Reason: code tags
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0