Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 21st, 2013, 07:11 AM
srayner srayner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 23 srayner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 20 m 37 sec
Reputation Power: 0
Firebird database corrupted after reaching 2GB

Our main Firebird database seemed to become corrupted this morning after its file size reach 2GB.

Does anyone have any advice on how large to let the database grow before considering splitting it across multiple files?

I'm wondering how large to make each file and if there are any performance differences between a single file and multiple files?

Unfortunatly we run this on 32bit Windows XP (NTFS). The reason for this is that we have other software that is limited to this platform that needs high data thoughput with our Firebird database.


Steve

oh, we run Firebird 2.5 superserver with about 80 connections.

Reply With Quote
  #2  
Old February 22nd, 2013, 12:02 AM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,947 E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 10 h 55 m 23 sec
Reputation Power: 7053
I know absolutely nothing about Firebird; however, 2147483647 is the largest number that can be represented by a signed 32-bit integer. 2147483647 bytes is approximately 2GB.

NTFS does not have a maximum filesize of 2GB, even on a 32-bit system. So the problem with corruption is probably caused by Firebird directly. This would tend to imply that internally it is using a signed 32-bit integer to represent a position within the file. That is something you cannot change except by upgrading to a 64-bit version of Firebird, which cannot run on a 32-bit OS.

If Firebird supports splitting a database into multiple files that might solve the problem, provided that internally all of its pointers are relative to the individual files and not the database as a whole. In that case, 2147483647 bytes is theoretically the maximum size for any one database file, but in practice you would probably want to decrease that a bit to have some extra wiggle room.
__________________
PHP FAQ
How to program a basic, secure login system using PHP
Connect with me on LinkedIn


Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #3  
Old February 22nd, 2013, 01:34 AM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 309 mariuz User rank is Sergeant (500 - 2000 Reputation Level)mariuz User rank is Sergeant (500 - 2000 Reputation Level)mariuz User rank is Sergeant (500 - 2000 Reputation Level)mariuz User rank is Sergeant (500 - 2000 Reputation Level)mariuz User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 9 h 38 m 4 sec
Reputation Power: 23
Question Firebird does have support for 64bit IO for windows from version 1.0

Quote:
Originally Posted by srayner
Our main Firebird database seemed to become corrupted this morning after its file size reach 2GB.

Does anyone have any advice on how large to let the database grow before considering splitting it across multiple files?

I'm wondering how large to make each file and if there are any performance differences between a single file and multiple files?

Unfortunatly we run this on 32bit Windows XP (NTFS). The reason for this is that we have other software that is limited to this platform that needs high data thoughput with our Firebird database.


Steve

oh, we run Firebird 2.5 superserver with about 80 connections.


Are you sure that is not a FAT partition ? because Firebird does have support for 64bit IO for windows from version 1.0
http://www.ibphoenix.com/resources/documents/general/doc_69

Also what is the error log for firebird ?
__________________
My home page: http://www.firebirdsql.org and work place :http://www.reea.net

Reply With Quote
  #4  
Old February 25th, 2013, 06:17 AM
mIRCata mIRCata is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Location: Plovdiv. Bulgaria
Posts: 200 mIRCata User rank is Corporal (100 - 500 Reputation Level)mIRCata User rank is Corporal (100 - 500 Reputation Level)mIRCata User rank is Corporal (100 - 500 Reputation Level)mIRCata User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 6 h 50 m 14 sec
Reputation Power: 11
I'm working with databases larger than 2gb on 32 bits Windows and teere are no problems with them.

Reply With Quote
  #5  
Old March 6th, 2013, 02:54 AM
srayner srayner is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 23 srayner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 20 m 37 sec
Reputation Power: 0
Quote:
Originally Posted by mariuz
Are you sure that is not a FAT partition ? because Firebird does have support for 64bit IO for windows from version 1.0
http://www.ibphoenix.com/resources/documents/general/doc_69

Also what is the error log for firebird ?


Only thing in the log is

TSC001 (Server) Thu Feb 21 09:21:51 2013
INET/inet_error: read errno = 10054

We see these errors quite a bit, sometime two or three times a day, then sometimes we don't see any for several weeks.

After backup and restore the database is currently at 1.3GB and growing. I could just leave it and see if it has the same problem when it reaches 2GB again.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Firebird database corrupted after reaching 2GB

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap