If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > help in scripting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-11, 09:59
rakkab007 rakkab007 is offline
Registered User
 
Join Date: Aug 2011
Posts: 11
help in scripting

Hi,

Requirement:-

SQLs

select name from v$datafile;
select name from v$controlfile;
select name from v$tempfile;
select MEMBER from v$logfile;

These sqls has to run in one script and o/p of each sql has to write in seperate files.But the o/p is like if we issue
select name from v$datafile; o/p is like this

/path/datafilename1
/path/datafilename2
-------------------

but here need to get the o/p as like this

rm -rf /path/datafilename1
rm -rf /path/datafilename2

like that all sql o/p has to come like this and write in seperate files,so that can execute that files only

please help to create a script for the same
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On