Get JDK 1.2.2 for your platform. I am using Blackdown's JDK 1.2.2 RC4.
Get the OpenJGraph release 0.7.0 for DBDependency 0.1.1. If you are using DBDependency 0.1.0, then use OpenJGraph 0.6.x. Extract the OpenJGraph archive. Should you decide to recompile the OpenJGraph sources, please read the README file distributed with the OpenJGraph archive.
DBDependency uses Apache's XML parser for Java to read and write its configuration. Extract the archive to a directory of your choice. I am currently using version Xerces 1.0.3, so get this version to make sure everything works okay. If you have success using other versions of Xerces-J, let me know.
If you have Oracle JDeveloper 3.0, it already has the Oracle 8 and 8i JDBC drivers.
If you have Oracle JDeveloper 2.0, note that the JDBC driver will not work against an Oracle8i Linux database, due to a bug with the drivers shipped with JDeveloper 2.0.
If you have Oracle8i, use the JDBC drivers shipped with the Oracle8i database. You need to install this component using the Oracle Universal Installer.
I used WebLogic's Type 4 JDBC driver to connect to an MS SQL Server 6.5 database. For the connection to work, you must configure SQL Server to support TCP/IP connections, defaulted to port 1433.
The JDBC-ODBC bridge will simply not work, because of a restriction that only allows one active result set per connection.
The database user you will use to connect to the Oracle database from DBDependency must have SELECT privilege on the following views and its underlying tables: SYS.ALL_OBJECTS, SYS.ALL_USERS, and SYS.ALL_DEPENDENCIES.
I believe that all users have SELECT privilege on these objects, but I would just like to point them out.
The database user you will use to connect to the SQL Server database from DBDependency must have SELECT privilege on the following tables: sysobjects, sysusers, and sysdepends.
I believe that all users have SELECT privilege on these objects, but I would just like to point them out.
DBDependency is a Java Swing application, so you need X to be up and running.
Alternatively, you may want to obtain the sources via anonymous CVS:
export CVSROOT=:pserver:anonymous@cvs.dbdependency.sourceforge.net:/cvsroot/dbdependency
cvs -d$CVSROOT login
When prompted for a password, simply press the Enter key.
cvs -d$CVSROOT export -r dbdependency-0_1_1 dbdependency
If instead you used:
cvs -d$CVSROOT co dbdependency
... the sources that you will be getting using checkout may include interim changes between releases, which may make or break your copy of DBDependency. So use export.
cvs -d$CVSROOT logout
For Linux/UNIX users, modify compileall.sh, mkjavadoc.sh, and run.sh.
For Windows users, modify compileall.bat, mkjavadoc.bat, and run.bat.
You need to modify the following environment variables that are indicated below to match your environment. These are used as part of the CLASSPATH when compiling and running DBDependency.
This needs to point to the /bin directory of your JDK 1.2 installation.
This needs to point to the directory where the Java archive xerces.jar is located within the Apache Xerces-J installation.
This can either point to the /classes directory of the OpenJGraph installation or it can point to the Java archive stored under the /lib directory: /lib/openjgraph.jar.
This needs to point to the zip archive, named classes111.zip containing the Oracle JDBC drivers.
This needs to point to the /weblogic/mssqlserver4/classes subdirectory under the WebLogic JDBC driver directory tree. You may also need to add the license directory as part of your classpath. Please read the documentation for BEA WebLogic's JDBC driver.
If it complains of not being able to find certain Java classes, make sure you have setup the environment variables in the script correctly.
It should then display a dialog box prompting you for information to connect to a database. You can select one of the predefined connections, then select the "Edit" button to modify the parameters for the database connection, or create a new entry by selecting the "New" button.
You should modify the URL to the database of a pre-defined connection as the existing URLs are specific only to my environment. You must also use a database username that has access to your RDBM's data dictionary.
Any changes made will be saved to the configuration file. The password is never saved in the configuration file.