0

So I have an Oracle database connected to Netbeans, and when I run a select statement in the Oracle command line I can see the data in the tables.

The problem is that Netbeans database browser doesn't see the data. I right-click on the table I want to see, and click "view data..." and all my tables show up as empty.

I connected to it using Oracle Thin and ojdbc6.jar if that matters. Just wondering if I missed anything and what could possibly be causing this problem. I just tried with ojdbc14.jar too and still no data in tables.

UPDATE: So I was able to run an insert using the Netbeans tool for doing so, and it was successful,I can actually see data in my table (Just the one I inserted into). However, it's the only row I can see in the table, but I can see 5 rows using the Oracle command line. Not sure what to think of this...

EDIT: Really don't see how it's unclear what the question is... It was already answered too.

4

2 回答 2

0

Why are you using netbeans to browse database? You should be using a proper sql client to browse database table. So i would recommend you to use SQL developer or Squirrel or Toad.

Secondly , are you sure data is committed to DB which you are trying to view? This is the most likely cause.

So this is what you should do:

  1. Try to connect to DB from different SQL clients and see if you are able to view data from them.
  2. If none of clients are able to view data then for sure data is not committed else Netbeans has some issue.
于 2013-08-11T06:15:46.423 回答
0

I suspect this as some IDE issue which you are facing.

  • Have you tried reconnecting to Oracle from Netbeans?
  • Try restarting the IDE itself (IDE restart helps in a lot of cases, mostly with Eclipse).

If all fails, try using SQLDeveloper for working on the database which would have more functionality (and more stability possibly) than the IDE plugin (though both seem to be using a thin driver).

于 2013-08-11T05:44:50.707 回答