The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> Firebird SQL Development
|
SchemaSpy.jar
Discuss SchemaSpy.jar in the Firebird SQL Development forum on Dev Shed. SchemaSpy.jar Firebird SQL Development forum discussing administration, Firebird SQL syntax, or other Firebird SQL-related topics. Firebird is the evolution of Borland's Interbase product.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 5th, 2011, 07:06 AM
|
|
Contributing User
|
|
Join Date: Nov 2009
Posts: 74

Time spent in forums: 14 h 12 m 41 sec
Reputation Power: 4
|
|
|
SchemaSpy.jar
I try to analyse a database with this:
http://schemaspy.sourceforge.net/
Does somebody have this working on Firebird?
How?
Thanks.
|

February 5th, 2011, 05:13 PM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
|
What is your problem?
Show us the error message or whatever you are getting.
|

February 6th, 2011, 04:42 AM
|
 |
Bug Hunter
|
|
Join Date: May 2003
Location: Transylvania (Romania)
|
|
Quote: | Originally Posted by rapgame I try to analyse a database with this:
http://schemaspy.sourceforge.net/
Does somebody have this working on Firebird?
How?
Thanks. |
It should work with firebird , from what i have seen is listed in the supported databases 
|

February 6th, 2011, 08:10 AM
|
|
Contributing User
|
|
Join Date: Nov 2009
Posts: 74

Time spent in forums: 14 h 12 m 41 sec
Reputation Power: 4
|
|
I am running ubuntu Lucid (10.4).
This Java tool has to connect with the Firebird database.
So I type:
Code:
# java -jar schemaSpy_5.0.0.jar -t firebird -db employee.fdb -s schema -u SYSDBA -p bliep -o /home/user/firebird/ -port 3050 -host localhost
The computer complains:
Using database properties:
Code:
[schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/firebird.properties
java.lang.ClassNotFoundException: org.firebirdsql.jdbc.FBDriver
Failed to load driver 'org.firebirdsql.jdbc.FBDriver'
These entries don't point to valid files/directories: [/usr/java/tools/firebird/jaybird-full-2.0.1.jar, ;c, jdbc
irebirdjaybird-full-2.0.1.jar]
Use the -dp option to specify the location of the database
drivers for your database (usually in a .jar or .zip/.Z).
So how-to resolve this.
Which Java jdbc driver do you use?
Another way to formulate this question:
I hava a Java program, how to communicate with Firebird.
Last edited by rapgame : February 6th, 2011 at 08:12 AM.
|

February 6th, 2011, 08:23 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
You need to specify the location of the JDBC driver's jar file:
Code:
java -jar schemaSpy_5.0.0.jar -cp /path/to/jaybird-full-2.1.6-java6.jar -t firebird -db employee.fdb -s schema -u SYSDBA -p masterkey -o /home/stage/rrap/firebird/ -port 3050 -host localhost
|

February 6th, 2011, 08:58 AM
|
|
Contributing User
|
|
Join Date: Nov 2009
Posts: 74

Time spent in forums: 14 h 12 m 41 sec
Reputation Power: 4
|
|
|
Thanks!
so
#whereis jaybird-full-2.1.6
jaybird:
# apt-get install jaybird-full-2.1.6
failed, no such package.
Jaybird is not available for Ubuntu?
Where to get this Jaybird?
How to install this?
|

February 6th, 2011, 09:12 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
Quote: | Originally Posted by rapgame Where to get this Jaybird?
How to install this? |
Jaybird is the JDBC driver for Firebird
You can download it from the Firebird Homepage:
http://www.firebirdsql.org/index.php?op=devel&sub=jdbc
Simply copy the .jar file into a convenient directory.
Last edited by shammat : February 6th, 2011 at 09:21 AM.
|

February 6th, 2011, 09:48 AM
|
|
Contributing User
|
|
Join Date: Nov 2009
Posts: 74

Time spent in forums: 14 h 12 m 41 sec
Reputation Power: 4
|
|
|
Wait a minute...
A jar is a compressed folder.
Like a zip folder.
Right?
Does Linux accept .zip instead of .jar files?
( I still get the error).
I actually found this all ready, but only zip folders and not the .jar ...
Thanks (again)
|

February 6th, 2011, 09:53 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
|
1) Download the ZIP file
2) unzip it
3) Copy the file jaybird-full-2.1.6.jar into a convenient directory
4) specify the full path to the .jar file when starting schema spy.
|

February 6th, 2011, 09:56 AM
|
|
Contributing User
|
|
Join Date: Nov 2009
Posts: 74

Time spent in forums: 14 h 12 m 41 sec
Reputation Power: 4
|
|
Code:
[schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/firebird.properties
Gathering schema details......16:55:18.875 WARNING: Table.initColumnAutoUpdate - Failed to determine auto increment status: org.firebirdsql.jdbc.field.TypeConvertionException: Types.ARRAY: SQL type for this field is not yet supported.
16:55:18.877 WARNING: Table.initColumnAutoUpdate - SQL: select * from "PROJ_DEPT_BUDGET" where 0 = 1
....16:55:18.919 WARNING: Table.initColumnAutoUpdate - Failed to determine auto increment status: org.firebirdsql.jdbc.field.TypeConvertionException: Types.ARRAY: SQL type for this field is not yet supported.
16:55:18.920 WARNING: Table.initColumnAutoUpdate - SQL: select * from "JOB" where 0 = 1
org.firebirdsql.jdbc.FBSQLException: The resultSet is closed
at org.firebirdsql.jdbc.AbstractResultSet.getField(AbstractResultSet.java:642)
at org.firebirdsql.jdbc.AbstractResultSet.getString(AbstractResultSet.java:701)
at org.firebirdsql.jdbc.AbstractDatabaseMetaData.getPrimaryKeys(AbstractDatabaseMetaData.java:3689)
at net.sourceforge.schemaspy.model.Table.initPrimaryKeys(Table.java:235)
at net.sourceforge.schemaspy.model.Table.<init>(Table.java:90)
at net.sourceforge.schemaspy.model.Database$TableCreator.createImpl(Database.java:1003)
at net.sourceforge.schemaspy.model.Database$ThreadedTableCreator$1.run(Database.java:1044)
...(0sec)
Writing/graphing summary...java.lang.NullPointerException
at net.sourceforge.schemaspy.DbAnalyzer.getImpliedConstraints(DbAnalyzer.java:68)
at net.sourceforge.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:288)
at net.sourceforge.schemaspy.Main.main(Main.java:42)
Thanks, but
and no information in the generated folders
Do you get this too?
Last edited by rapgame : February 6th, 2011 at 10:11 AM.
|

February 6th, 2011, 10:34 AM
|
|
Contributing User
|
|
Join Date: Nov 2009
Posts: 74

Time spent in forums: 14 h 12 m 41 sec
Reputation Power: 4
|
|
I think a jar is always a zip
But a zip is not always a jar.
I found another jar:
Code:
#java -jar /home/java/schemaSpy_5.0.0.jar -t firebird -db /var/lib/firebird/2.1/data/employee.fdb -s schema -u SYSDBA -p blala -o /home/firebird/ -port 3050 -host localhost -dp /home/firebird/bla/jaybird-full-2.1.5.jar
Code:
Using database properties:
[/home/schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/firebird.properties
Gathering schema details......17:29:54.985 WARNING: Table.initColumnAutoUpdate - Failed to determine auto increment status: org.firebirdsql.jdbc.field.TypeConvertionException: Types.ARRAY: SQL type for this field is not yet supported.
.17:29:54.987 WARNING: Table.initColumnAutoUpdate - SQL: select * from "PROJ_DEPT_BUDGET" where 0 = 1
.17:29:55.004 WARNING: Table.initColumnAutoUpdate - Failed to determine auto increment status: org.firebirdsql.jdbc.field.TypeConvertionException: Types.ARRAY: SQL type for this field is not yet supported.
17:29:55.004 WARNING: Table.initColumnAutoUpdate - SQL: select * from "JOB" where 0 = 1
......(0sec)
Writing/graphing summary..............(0sec)
Writing/diagramming details...........(2sec)
Wrote relationship details of 11 tables/views to directory '/home//firebird' in 3 seconds.
View the results by opening /home//firebird/index.html
Lots of thanks, it works!
Last edited by rapgame : February 6th, 2011 at 01:40 PM.
|

February 6th, 2011, 12:27 PM
|
|
Contributing User
|
|
Join Date: Nov 2009
Posts: 74

Time spent in forums: 14 h 12 m 41 sec
Reputation Power: 4
|
|
Sometimes you have to add -dbThreads 1
Because of multiple connections.
Code:
#java -jar /home/java/schemaSpy_5.0.0.jar -t firebird -db /var/lib/firebird/2.1/data/employee.fdb -s schema -u SYSDBA -p blala -o /home/firebird/ -port 3050 -host localhost -dp /home/firebird/jaybird-full-2.1.5.jar -dbThreads 1
Why are those multiple connection issues never the case with MySQL and PostgreSQL?
Last edited by rapgame : February 6th, 2011 at 01:41 PM.
|

February 7th, 2011, 09:55 AM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 1
Time spent in forums: 8 m 30 sec
Reputation Power: 0
|
|
|
I've updated firebird.properties to indicate that it's single-threaded. Note that Oracle and MS SQL Server also have JDBC metadata services that don't support queries from multiple threads.
John
|

February 8th, 2011, 01:45 AM
|
|
Contributing User
|
|
Join Date: Nov 2009
Posts: 74

Time spent in forums: 14 h 12 m 41 sec
Reputation Power: 4
|
|
|
Thanks,
This is the kind of feedback and support I really appreciate.
Long live opensource and their contributors.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|