Help Needed: UNIX shell variables to store Oracle table records
Hello Folks,
I'm working on a requirement to automate the process of generating report(csv file) using metadata info stored in an Oracle table and E-mail it to respective people.
Meta data table:
To implement this I'm planning to store the metadata entries into Unix shell variables and create a loop and process each record(report_SUB_ID,DB, SQL etc) in the loop indivudally.
Then,planning to execute each SQL in the respective DB and spool the output of the SQL query to a csv file on the unix server and then attach it and send it to the respective user.
Can you please advise if my approach is right ? If not , please advise whats the best possible way to achieve this?
If yes , please suggest what type of shell variables I have to create and how can I looop through these values.
Thanks in Advance
Regards,
Venkat
Last edited by Don Cragun; 10-29-2015 at 04:27 PM..
Reason: Add CODE tags.
Hi friends,
I have to do the following things :
1) there should be a shell script returning the returning the return code of the script. and i have to add some more details like on which machine is has run , at what time and other details and then using plsql i have to add a row to Oracle... (3 Replies)
HI,
I'm trying to get this right, please can you help. In my unix korn shell script, I call an oracle stored proc within a package and I specify 3 parameters, 2 of which are IN OUT parameters (i.e. I expect the stored proc to change them and return them back to me).
Does the unix code... (7 Replies)
Hi,
I have delimited file(|).
Sample data:
1|name|50009|DS24|0|12
2|name|30009|DS24|0|13
3|name|20409|DS24|0|14
4|name|20009|DS24|0|15
5|name|10009|DS24|0|16
I want to load this data into a oracle table (update and insert)
Please help me the commands and also... (1 Reply)
I want to store contents of command
dir in array of variables
For eg: dir contents are
command d2 demovi~ file inven java new untitled folder
d1 demovi er1 filename inven~ myfiles ubuntu desktop xmms
-----------------------------------
I... (3 Replies)
Hi everyone, I am having some problems with my scripts so I hope you could help me.
I am trying to store the result of a division in a variable in tcshell but I have the problem that if:
For example, dividing 2/100 the result is 0.02 but if I store that I have "0".
How can I have 0.02... (8 Replies)
Hello,
I am new to UNIX.
My Requirement: Need to connect to Oracle database from UNIX and execute an SELECT statement and store the records in a flatfile of Comma delimiter.
What I have Succeeded: I was able to connect to Oracle from UNIX.
Problem: I cannot fetch multiple... (3 Replies)
I have a input file like this.
Sample.txt
30 | TXDatacenter | TXBackupDC
10 | UKDatacenter | UKBackupDC
0 | NLDatacenter | NLBackupDC
......
......
......
I need to get these values in different variables like this.
Load1=30
PriCenter1=TXDatacenter... (5 Replies)
how to store the count of queries in variables inside a filein shell script
my output :
filename
-------
variable1=result from 1st query
variable2=result from 2nd query
.
.
.
. (3 Replies)
Hi Friends,
I looking for the script for the count of the records in table.
and then it's containg the zero records then should get abort.
and should notify us through mail.
Can you please help me out in this area i am lacking. (5 Replies)
Discussion started by: victory
5 Replies
LEARN ABOUT DEBIAN
mailping-store
2004-04-15
mailping
0.0.4
MAILPING-STORE(1) Mailping MAILPING-STORE(1)NAME
mailping-store - store email from stdin to a mailping incoming maildir
SYNOPSIS
mailping-store
DESCRIPTION
mailping-store reads an email from standard input and writes it into a maildir chosen according to following logic:
1. If EXTENSION is not set, select Maildir.
2. If EXTENSION is set, ensure its value is safe to use, and select EXTENSION/incoming.
mailping-store is usually run from a .forward file, and thus the filenames above are relative to the home directory of the account in
question.
Normal use
Normally, mailping-store is used to ease the setup of new circuits to probe from mailping-cron. This is done with a system account mailping
using <mailping@yourhost.example.com> as the from address, and <mailping+circuitname@yourhost.example.com> (or some remote address aliased
to that) as the to address. In fact, these are the default values for from and to, so you can just skip creating those configuration files.
This allows adding new test circuits without any changes to the email configuration.
FILES
/var/lib/mailping/state/circuit/incoming
Maildir to store the email to.
/var/lib/mailping/state/Maildir/
Maildir to store the email to, if no extension was given.
ENVIRONMENT
MAILPING_STATEDIR
Override the location of the state directory. Circuit states are stored in the state subdirectory of this directory, in subdirectories
named after the circuit name. Default: /var/lib/mailping
EXTENSION
Name of the current circuit to store the mail for.
SEE ALSO mailping-cron(1), mailping-success(1), mailping-latency(1)AUTHOR
Tommi Virtanen <tv@havoc.fi>
Havoc Consulting
Author.
COPYRIGHT
Copyright (C) 2004 Havoc Consulting
mailping 0. 2004-04-15 MAILPING-STORE(1)