Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 March 24th, 2006, 04:29 AM
Otzi Otzi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 Otzi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 24 sec
Reputation Power: 0
Question Replace database without restarting service

I need to replace the existing database every 2 hours with fresh database from the other server.
If I try with with "gfix -shut -force 0", deleting old .fdb file and setting up the new database (localy restored backup) with the old name, it has no effect - if I connect after this I get old data (from cache?). Only if I restart service over "/etc/rc.d/init.d/firebird restart" I get new data.
The problem is that I cannot restart service every 2 hours because of other active database-client connections.
Is there any other solution for shutting down database and replacing it without restarting service.

I also wanted to install new separated firebird service (on port 3051) for this database but I don't find any documentation or examples for doing this.

Reply With Quote
  #2  
Old March 26th, 2006, 11:27 PM
Otzi Otzi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 Otzi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 24 sec
Reputation Power: 0
Any idea? I realy need answer.

Reply With Quote
  #3  
Old March 27th, 2006, 11:58 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 15 h 7 m 10 sec
Reputation Power: 279
Probably a stupid question, but ...
Do you also put it back online with
Code:
gfix -online
?

Reply With Quote
  #4  
Old March 27th, 2006, 11:50 PM
Otzi Otzi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 Otzi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 24 sec
Reputation Power: 0
Smile

Quote:
Originally Posted by pabloj
Probably a stupid question, but ...
Do you also put it back online with
gfix -online?


Yes I do use gfix -online.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Replace database without restarting service


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT