I was doing a project related to the IBM competition and need to create a web application. I have done a web application before by connecting netbeans and mysql. But, now am facing problem right from installation.
Is there any workbench(like something for mysql) for db2 . If so can anyone give a link. Also, I need to make jdbc connections. So, is there any other software I need to install.
Kindly explain to me in detail as I'm not pretty sure about this.
All you need is a DB2 JDBC JAR. Pick the appropriate one for your version and add it to your CLASSPATH.
You should use either a DB2 admin client to create tables and view data or something like SQL Squirrel.
Related
I'm using Glassfish server 4.0 as my app server for a java project in NetBeans 7.3.1. I have a database schema which I would like to include in my server as a database. Is there a way to generate the database in Glassfish based on a previous schema?
The extensions of the files are .frm and there's one .opt file.
Also, does Glassfish include a visual interface to modify a database's table's properties and registries?
Thanks in advance.
The answer to your the last part of your question is no. Glassfish itself does not include a visual interface for modifying database tables, properties etc. It includes a visual interface for creating JDBC Connection Pools and JDBC Resources. I personally use one integrated into my IDE of choice, Netbeans may have this feature, I happen to use IDEA. In production you could use any 3rd party app that does this, TOAD being a popular one but there are many.
I have some thoughts on the first part of your question but nothing ready to put into an answer at this point. When I do I'll update this one if its still an open question.
EDIT: Although this question is still unanswered for 3.X versions of Eclipse, using 4.X versions (Juno) solves the problem.
I can't browse tables for a given schema in Informix using Eclipse Data Source Explorer. The only tables I can browse is the catalog, the sys* ones in the Informix schema.
I'm using Eclipse v3.6 (Helios) with Data Tools Project plugin v1.9.2 for accessing an Informix 11.70 database.
The driver (v10.0) and the connection configuration seem to be right as I can ping and query properly using the SQL scrap book, creating and selecting tables. In fact the applications work perfectly once deployed, but I'm unable to use Eclipse features such as JPS tools.
The user has the proper access and is able to browse and operate anything from Server Studio.
I've searched Google for a few days and found some cases expriencing something alike (for instance it can happen in MySQL if you're missing the database in the URL), but found no proper answer.
Thanks in advance
P.S.: I have the same question open in DTP forum http://www.eclipse.org/forums/index.php/m/874976/#msg_874976
P.S. II: I've created a test project that illustrates the problem. Notice the "Tables" node can't be expanded.
The issue will be 'How does Eclipse Helios with Data Tools Project' go looking for tables in an Informix database?
If it interrogates the Informix system catalog directly (systables, syscolumns, ...), there should not be an issue. The fact that you can browse the system catalog tables is curious. Maybe it is only showing you tables 'owned by informix' in the Informix jargon; that would be 'in the schema informix' in some other systems' jargon. Look at the plugin options to see if you can change the schema name somehow, or have it look at all schemas simultaneously.
If it is looking for standard SQL 'Information Schema' tables, those are AWOL in Informix. You might be able to run dbaccess yourdb $INFORMIXDIR/etc/xpg4_is.sql and get enough of an archaic version of the Information Schema tables (from the XPG4 – X/Open Portability Guide version 4 – definition of the Information Schema) to be usable, but I'd not want to bet on it being adequate.
I have been working on this for a while now and, unfortunately have little previous exposure to Birt as well as JDBC / ODBC. I've been searching and searching but can't conclusively figure out what I need for Birt to be able to connect to an SQLite database through ODBC.
I have setup the SQLit db on my windows machine to use ODBC. From here, however, I can't figure out, in the Birt Report Designer-> New data source-> JDBC data source what I am supposed to put in in order to access the DB.
Do I need a specific driver for this that I need to install to use as the "Driver Class"
Is the path to my ODBC / SQLite db the "Driver URL" field?
I would greatly appreciate any advice on this.
There is a JDBC driver specifically for SQLite, so you don't have to use a bridge.
The URL should be:
jdbc:sqlite:/path/to/my.db
The class is org.sqlite.JDBC.
As the initial answer points out, you can download the SQLite JDBC driver. Once downloaded, you need to correctly deploy the JAR into BIRT so the driver will be available in the eclipse designer. Put the JAR in:
<BIRT Install>\eclipse\plugins\com.actuate.data.oda.jdbc.drivers_<BIRT VERSION>
Once the JAR is there, re-start Eclipse/BIRT and you should be able to create a SQLite data source pretty easily.
Good Luck!
I am using ARCH Linux and Awesome3 WM.
I am looking for a good sql client for multi database include mysql postgre oracal.
Squirrel sql seems good, but I got a blank window after launch it.
Any solution for this problem or there is another better client for me?
http://henplus.sourceforge.net/
It's not a GUI, but it works with any database that has a JDBC driver (including MySQL, PostgreSQL, and Oracle), and I like it.
Several tiling window managers might have problems with java applications. Take a look at this page: http://awesome.naquadah.org/wiki/Problems_with_Java.
Especially try the workaround using wmname.
As a DB frontend you might try DbVisualizer. If you are using Eclipse to develop your application, "Eclipse SQL Editor" might be of interest. Sorry, Stackoverflow spam protection doesn't let me to provide a hyperlink for that one.
I can't see any of my schemas when I try to use Eclipse data source explorer. It's not a problem with JDBC connection because I can connect and execute SQL statements. It's just that the tables don't appear. How do I make them to appear?
Very likely you cannot. Access has a very limited ODBC support (as I suppose you are using the JDBC-ODBC bridge driver). You don't have many options. You could purchase a JDBC driver with more functionality (expensive), and if your Access is 97 or 2000, the QuantumDB Eclipse plugin has a trick to get metadata information from these versions, by exploring the system tables. Perhaps you can find other plugins that manage that for more recent versions, but otherwise, you are stuck.