In my application written in C# I use OracleDataAdapter.Fill()
for fetching data from oracle database. Is there a way to set a timeout for executing this method, because sometimes it is stucked forever?
UPDATE: Instead of "System.Data.OracleClient;" I used "Oracle.DataAccess.Client;" and then code below works good.
using Oracle.DataAcces.Client;
...
OracleDataAdapter yourAdapter = new OracleDataAdapter(strSQLString, connection);
yourAdapter.SelectCommand.CommandTimeout=120;
yourAdapter.fill(yourDataSet);