We are executing sql-loader in perl using command like :
`sqlldr $db_arg control=$ctl data=$data log=$log bad=$bad`;
But in this way we are unable to find if sql-loader throws any exception.
For eg:- even if data has 30,000 records and a problem was encountered after loading 1,000 records , we only get a message that 1,000 records have been loaded.
Is there a way to find out if sql-loader has thrown any exception and what exception specifically.
Note : The counting the lines in data file is turning out to be quite expensive as the file has to be executed both in some old Windows Server as well as Unix servers so using `wc`
is not an option.