Subject Re: [firebird-support] Error opening database file on Mac OSX
Author Alexandre Benson Smith
Hi !

phil_hhn wrote:

>Hi
>We're developing a multi-platform application and currently using
>Firebird 1.5, developing under win XP/2000.
>Our app also runs on the Mac. We wanted to see how well the database
>ran when it was also on the Mac (and not remotely on a windows box).
>However we installed Firebird on the Mac (Firebird-cs-1.5.1-Macos.zip)
>and copied the database file on to it, but we get a runtime exception.
>We cannot use the database via the app or IBExpert. The errors imply
>that the internal database format is invalid.
>
>What could be wrong? Please don't tell me that the internal database
>format is different on the Mac vs. the PC (I can't imagine it is).
>Here are the errors:
>
>org.firebirdsql.jdbc.FBSQLException: Resource Exception. unsupported
>on-disk structure for file /Users/bloggs/MyDb.fdb; found 2560, support 10
>Reason: unsupported on-disk structure for file /Users/bloggs/MyDb.fdb;
>found 2560, support 10
> at
>org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:112)
> at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:221)
> at java.sql.DriverManager.getConnection(DriverManager.java:512)
> at java.sql.DriverManager.getConnection(DriverManager.java:171)
>at org.firebirdsql.gds.GDSException: unsupported on-disk structure for
>file /Users/bloggs/MyDb.fdb; found 2560, support 10
>
>... and if anyone can tell me what the obscure error "found 2560,
>support 10" is, please let me know...
>TIA,
>Phil
>
>
>
Phil,

Someone with more experience with FB and MacOS than me (my experience is
zero, I never used a MAc in my hole life :-( ) will jump on.

But just to do a simples test...

Do a transportable backup on the windows server and restore it on the
Mac, could different endianness (big/little endian) be the cause ?

HTH

see you !

--

Alexandre Benson Smith
Development
THOR Software e Comercial Ltda.
Santo Andre - Sao Paulo - Brazil
www.thorsoftware.com.br