How to pass ksh array to oracle

Hi all..

Does anyone know have an example of passing the contents of a ksharray to oracle?

basically I am looking to loop through the contents of a file and store each line into a bash ksh. Once i have this I can then pass the array into an oracle procedure that accepts an array as an argument and process it from there..

any code snippets would be great ?

let i=0
cat file.txt | while IFS="" read x; do let i=i+1; done

Then later:

for r in "${x[@]}"; do
  sqlplus .... $r
done