Forum Discussion

David2k's avatar
David2k
Occasional Contributor
13 years ago

Not able retrive the data from the ORACLE database.

Hi,

I am trying to do a JDBC connection with oracle.When i do a test connection it shows success and when i try to run a query like Select * from xyz table.It keeps on running for infinite time.When i try to fetch from the data using where condition it only retrieves the column names but no data.

Once i was able to retrieve all the data from the database using Select * from xyz query after that i have never been able to do that as it keeps on running now.

Any one also facing same issue...?

Thanks,
David

5 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    2 things you need to check:
    how many rows of data present in the table you are making a query? is it possible to test it by adding condition so that it returns limited rows and see? by the way is it a remote database?

    have you tried quering to different tables and see if it takes same result?
  • David2k's avatar
    David2k
    Occasional Contributor
    Thanks for taking out time to reply to the post.

    I have tried with other tables also and it is having the same behavior i.e only the table column headers are retrieved but no data when we do a select with condition.

    When i do the simple select once or twice all the data got retrieved but there after it never retrieved any data.On making the select without condition it gets in infinite loop.There are more than 10000 rows in this table.

    As suggested by you i tried with another table and for the other table on making a select statement call i am able to retrieve the data.But with the condition only table headers get fetched but no data.

    This is a remote database.

    Thanks,
    Aman
  • Are you logging in with the same credentials you provided for the JDBC connection? I'd double check the user permissions.

    Thanks,
    Michael Giller
    SmartBear Software
  • David2k's avatar
    David2k
    Occasional Contributor
    Hi Michael,

    Yes, I am using the same user credentials that i have given in the jdbc connection and when i try to retrieve the records using conditional statement with TOAD i get the records but when i try to fetch the records from the table with the same query in soap UI i only get the table column headers and no data.


    Thanks,
    David