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 March 1st, 2012, 06:52 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
Unhappy Problems upgrading from 1.5 to 2.5

I am trying to move an fb 1.5 database onto a server running 2.5 for testing.

I backup the database on the 1.5 server, copy the fbk file to the new server, then try to restore on the 2.5 server.

The database is dialect 1.

It starts the restore process but fails when it reaches a specific point with error: please retry, giving a database name.

Am I following the correct procedure to upgrade to 2.5?
What does this error mean and how do I solve it?

Reply With Quote
  #2  
Old March 1st, 2012, 09:02 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
Quote:
Originally Posted by srayner
I am trying to move an fb 1.5 database onto a server running 2.5 for testing.

I backup the database on the 1.5 server, copy the fbk file to the new server, then try to restore on the 2.5 server.

The database is dialect 1.

It starts the restore process but fails when it reaches a specific point with error: please retry, giving a database name.

Am I following the correct procedure to upgrade to 2.5?
What does this error mean and how do I solve it?

Can you try to migrate from 1.5 to 2.0 first? And if it's ok then from 2.0 to 2.1 and 2.1->2.5.

Reply With Quote
  #3  
Old March 2nd, 2012, 12:43 AM
tsteinmaurer tsteinmaurer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Posts: 34 tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level)tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level)tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 2 m 19 sec
Reputation Power: 3
Is this by any chance a multi-file database?

Reply With Quote
  #4  
Old March 2nd, 2012, 06:32 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 mIRCata
Can you try to migrate from 1.5 to 2.0 first? And if it's ok then from 2.0 to 2.1 and 2.1->2.5.


I think I should be able to upgrade from 1.5 to 2.1 ok.
I'll try that, then try to upgrade to 2.5, then i'll post back here.

Reply With Quote
  #5  
Old March 2nd, 2012, 06:33 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 tsteinmaurer
Is this by any chance a multi-file database?



Just for info, no this is a single file database.

Reply With Quote
  #6  
Old March 2nd, 2012, 07:36 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
Can you tell us the name of the database file? Are there intervals in the name?
Can you tell us the options that you pass to gback?

Reply With Quote
  #7  
Old March 7th, 2012, 05:53 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
migrating to firebird 2.1 works although i had to remove one of my indexes.

However migrating from 2.1 to 2.5 hits the same error at the same point.

I am using database workbench to perform the backup and restore. So to answer your question about exact gbak command i decided to use the command line from within the bin folder of the firebird_2_5 installation.

This yeilds a different error much earlier in the restore process. The command i am using is;

gbak.exe -v -c -user SYSDBA -password mypassword c:\firebird\jewel_2_1.bak c:\firebird\jewel.fdb

The error i get is;

ERROR: Malformed string
Invalid metadata detected. Use -FIX_FSS_METADATA option.

I have researched this and I understand I need to add the option along with the character set of the original database.

What character set should i use, because this is something i have never set before?

Reply With Quote
  #8  
Old March 7th, 2012, 06:00 AM
tsteinmaurer tsteinmaurer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Posts: 34 tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level)tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level)tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 2 m 19 sec
Reputation Power: 3
If you didn't care about until now, then it's probably NONE. To be sure, execute the following query on your source/original database.

Code:
select rdb$character_set_name from rdb$database

Reply With Quote
  #9  
Old March 7th, 2012, 08:57 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
Now when you mentioned the character sets I've remembered something.
Migrating from Firebird <2.1 to 2.1 you need to run a script to fix some problems with the character sets.

In Firebird subdirectory \misc\upgrade\metadata there are few documents with explanation how to do it and SQL scripts for that.

After that do backup restore to 2.5 with those -FIX_FFS options - there are 2 one for the metadata and one for the data in the database. Maybe it's good to use both.

Last edited by mIRCata : March 7th, 2012 at 09:00 AM.

Reply With Quote
  #10  
Old March 7th, 2012, 11:01 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
running the restore with the -FIX_FSS_METADATA option solved the problem.

My understanding (now) is that this new option in gbak iliminates the need to run migration scripts.


Thanks for you help with this guys, i'm now up and running on 2.5.

Reply With Quote
  #11  
Old March 7th, 2012, 11:10 AM
tsteinmaurer tsteinmaurer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Posts: 34 tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level)tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level)tsteinmaurer User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 2 m 19 sec
Reputation Power: 3
Quote:
My understanding (now) is that this new option in gbak iliminates the need to run migration scripts.

Correct.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Problems upgrading from 1.5 to 2.5

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