I have to find the filename available in a folder with each file line count. And then, i will have kind of two column data.
Now i have to insert this record into a orac
You can load text data into Oracle with its command-line tool SQLLoader. There is too much to describe here about how to use SQLLoader, start by reading this web page:
http://www.orafaq.com/wiki/SQL*Loader_FAQ