Search Results

Search: Posts Made By: MadHatter
9,841
Posted By MadHatter
Anyone know how I would be able to output the...
Anyone know how I would be able to output the results to a txt file where it would include the variable from the list file next to its result?
9,841
Posted By MadHatter
found the error - I was missing the semicolon to...
found the error - I was missing the semicolon to actually end the statement:
echo "select count (*) from dear_trade_snapshot where id_prtf_stars = '$prtf';"
9,841
Posted By MadHatter
ok, I placed some brackets around prtf in the sql...
ok, I placed some brackets around prtf in the sql statement and my output now looks like this:



But, I'm not seeing the actual row counts. The start and end times are the same as well. I'm...
9,841
Posted By MadHatter
Just tried it, however same results...
Just tried it, however same results...
9,841
Posted By MadHatter
vgersh99, I gave that a shot, and now i see that...
vgersh99, I gave that a shot, and now i see that it connects and disconnects to sqlplus, however I don't think its running the script as it happens instantaniously (sp?) and nothing is printed...
9,841
Posted By MadHatter
Hi Jean-Pierre, Thank you for your reply. I...
Hi Jean-Pierre,

Thank you for your reply. I have tried what you suggested and still receive the same issue, with a syntax error that | is unexpected.
9,841
Posted By MadHatter
Using a variable in sqlplus
Hello,

I'm trying to write a script that will loop a sql statement through an external list. Basically, the script enters a loop and runs the sql statement for each entry in the list file. ...
10,299
Posted By MadHatter
thanks for all the suggestions everyone! turns...
thanks for all the suggestions everyone! turns out that the list file wasn't fully qualified in the main script. it wasn't pathed at all, so that's why it only worked manually when i was in the...
10,299
Posted By MadHatter
Can run script Manually, but not through Cron?
Hi all,

I have a main script (called OracleCleanup) that runs some sql queries. that runs off a wrapper script which contains the sources for the login information and and JOB_HOME (the script is...
4,020
Posted By MadHatter
i have a feeling my path is wrong for the list...
i have a feeling my path is wrong for the list file...let me correct that now...
4,020
Posted By MadHatter
sorry about that...i have never done any real...
sorry about that...i have never done any real scripts in unix, and this is my first coding assignment at my internship...basically the code is supposed to read a list file, which is structured...
4,020
Posted By MadHatter
Here is the whole script so you can get a good...
Here is the whole script so you can get a good idea of what it does:


#!/bin/ksh -x

echo "start of new archive history.ksh"
TBL_HIST_LIST=${JOB_HOME}/archiveHistTbl.list...
4,020
Posted By MadHatter
Ygor, I tried the loop, however it is not...
Ygor, I tried the loop, however it is not printing anything....I don't think it accesses the archiveHistTbl.list file
Here is the new code:

#For each table, delete based on dt_last_upd
while...
4,020
Posted By MadHatter
can anyone help??
can anyone help??
4,020
Posted By MadHatter
oh also, how would i make it so that if the 2nd...
oh also, how would i make it so that if the 2nd column had an empty value i could set a default value of 30 to be inputted?
4,020
Posted By MadHatter
Ygor, would i be able to use the awk script...
Ygor,

would i be able to use the awk script to read the 2nd column of data from the list in the code you wrote?
1,907
Posted By MadHatter
some info on awk please
i know this is a stupid question but...can awk do more than print? can i have it assign a value from a file list to a variable in the script?
4,020
Posted By MadHatter
the list file itself just contains table names. ...
the list file itself just contains table names. The goal is to have it include a table name and a number that will be passed through a variable and parsed through a query.

Sample: table_name1 30...
4,020
Posted By MadHatter
awk script
Hi all,
i need to write a script utilizing either awk or sed to allow me to read in two values off a list file (i will probably need a delimiter value there as well).
i.e. table_name, nDays. Any...
2,251
Posted By MadHatter
Reading in two inputs from a file
Hi all,

I've been assigned the task of modifying a script which reads in names of tables from a list file, exports a 30 days worth of data from these tables, then deletes the table. The list file...
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 08:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy