set -A my_array `sqlplus -s username/pwd@DB <<EOF
set feedback off
SET NEWPAGE 1
SET ECHO OFF
SET FEEDBACK OFF
SET TERM OFF
SET PAGESIZE 50000
Set LINESIZE 300
SET TRIMS ON
set verify on
select * from Icunbarred_$var vv ;
exit;
EOF`
echo "there are ${#my_array
[*]} elements in the array"
element=2
while [ $element -lt ${#my_array
[*]} ]
do
echo "----->>" ${my_array[element]}
sqlplus -s username/pwd@DB <<EOF
exec nextbilldtm_change(${my_array[element]});
exit;
EOF
let element=element+1;
done
------------
My table contains around 10000 records. but after updating 1024 records it halts ...
What changes need to be done in this code. Kindly reply soon.
Forget the array. I would use a sqlplus spool command to create the output file, then read it back in the subsequent process.
However, I can't see the point of the intermediate file/array unless perhaps there are two independent databases or two different Oracle acconts. Any reason to not just invoke nextbilldtm_change in the first program?