how to get result from both of these modules?
Hallo All unix Guru's
I have written a small (static) pl/sql function which is inserting data into database. It is as follows: Code:
sqlplus $CONNECT <<-EOF Now let me show you another module which is giving me the file(s)names which I want to insert. Code:
N=0 Code:
/d1/d2/d3/d4/waiting/abcd.txt Let us come back to mapping of how we need to insert data based on this output. I will go through the first insert.2 insert and 3rd insert so you would get an idea of design. But these are very dynamic, meaning the insert depends on the output produced but yes the directory structure would remain same. Code:
COL_DATE,SER_NAME,TYPE_FILE,FILEFILENAME,FILE_STATUS Any ideas/help would be greatly appreciated. |
Using bash arrays
Code:
for line in $(<t1.t) Code:
sqlplus user/pass @my.sql |
I have got another way and it says success but there is no data in database !!
|
Have a look at the source code. Doesn't work.
Code:
if [[ ${no_of_files_stuck_input_directory} -eq 0 ]] ; then |
@chirsm01
Excellent stuff !the only thing which I am wondering is instead of having just abcd.txt as name of file which you have indicated with '${a[4]}' If I want to have the entire name(absolute path) what needs to be modified? I tried with something like this 'line[$i]' but that didn't work. :( |
Looking fine now. All I did was instead of '${a[5]} I did was $line and it came through beautifully !!!
|
All times are GMT -5. The time now is 08:33 AM. |