This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In Netbeans IDE 6.0 M10 (build 200706281431) the New Project Wizard has an option to create a "Java Desktop Application". When this is chosen the user then gets the opportunity to select an application shell. If "Database Application" is chosen the user can then select a DB connection, a table, columns and a detail table. Once this has been done and the project has been created a significant change has been made to my database. We run Oracle 8.1.7 and use rule-based optimization as opposed to cost-based optimization. When the new project was completed Netbeans had issued sql to Oracle to carry out cost-based analysis on the parent and detail tables. This has a huge impact on our system (the development environment version of the web application that used the tables in question effectively stopped functioning due to hugely increased SQL execution times). Instructions to the database to carry out analysis like this should not be issued behind the scenes without any warning to the user. I could not find an option to alter this behaviour. Our JDBC driver is the Oracle ojdbc14.jar.
Not NetBeans is to blame, but the Oracle driver. It issues an ANALYZE TABLE statement as part of the implementation of the DatabaseMetaData.getDriverInfo() method. Even if we call getDriverInfo() with the "approximate" parameter set to true, it still issues the ANALYZE TABLE statement. Not sure we can do anything about it apart from not calling getIndexInfo() -- which we don't want to do. Perhaps write our own query instead of calling getIndexInfo(). See also http://forums.oracle.com/forums/thread.jspa?threadID=210782
I'll see how hard it is to write our own query... If it's not possible, I'll need to close this saying WONTFIX, but let's give it a go first.
*** Issue 66471 has been marked as a duplicate of this issue. ***
Maybe we can fix this with our metadata rewrite, where we have the opportunity to override things for a specific database vendor.
Reassigned to new owner.
No plan to fix it in a present time.
NetBeans.org Migration: changing resolution from LATER to WONTFIX