The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Weird Awk issue Khoomfire UNIX for Advanced & Expert Users 17 04-14-2008 08:13 AM
HP-UX weird FTP ? IngmarMeins HP-UX 10 11-29-2005 08:22 PM
Weird SSH issue AKM UNIX for Advanced & Expert Users 6 11-08-2004 02:13 PM
Weird Question rahulrathod UNIX for Advanced & Expert Users 4 10-21-2004 05:48 AM
Weird Problem??? danhodges99 UNIX for Dummies Questions & Answers 2 04-11-2003 12:05 PM

Closed Thread
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
  #1 (permalink)  
Old 03-12-2001
Duckman Duckman is offline
Registered User
  
 

Join Date: Mar 2001
Posts: 11
Talking

I need a script to do the following and have no idea how to do it...can someone help?

I need to start Sql*Plus, load a query, say "unmatched.sql", run the query, then load unmatched.sc and run it, then print the output file that unmatched.sc created...

any help greatly appreciated.

Duckman
  #2 (permalink)  
Old 03-14-2001
seshagiri seshagiri is offline
Registered User
  
 

Join Date: Nov 2000
Location: London
Posts: 4
From UNIX shell, if you would like to connect to sqlplus
and do some processing, you can go about this way by enclosing the following in a shell script

sqlplus -s user_id/passwd << end-it

set pages 0 feedback off echo off

--run the procedure you want to
@proc_name;

exit;

end-it

Run the above script at the shell command prompt

[Edited by seshagiri on 03-14-2001 at 11:21 AM]
  #3 (permalink)  
Old 03-14-2001
Duckman Duckman is offline
Registered User
  
 

Join Date: Mar 2001
Posts: 11
Thanks! It works great! I'm pretty new to unix so I have no idea how that script works. Can someone explain the script line by line to me please? thanks

Duckman
Closed Thread

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 04:15 PM.


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