Solved

Problem with restore

Posted on 2008-10-21
10
325 Views
Last Modified: 2013-12-09
I have the following gbak parameters that cause the following error:

C:\Program Files\Firebird\bin>gbak -REP -user sysdba -pass prager "E:\Downloads\
Email Attachments\20081021.gbk" c:\Prager\dbBooks.fdb
gbak: ERROR:Your user name and password are not defined. Ask your database admin
istrator to set up a Firebird login.
gbak: ERROR:failed to create database c:\Prager\dbBooks.fdb
gbak:Exiting before completion due to errors

What is it talking about?  (the backup came from a user who is having some problems; I asked him to send me the latest backup).
gbak -REP -user sysdba -pass prager "E:\Downloads\
Email Attachments\20081021.gbk" c:\Prager\dbBooks.fdb

Open in new window

0
Comment
Question by:rmmarsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 19

Accepted Solution

by:
NickUpson earned 500 total points
ID: 22771322
first, don't use REPlace, it's just a bad habit to get into, use CREATE instead, then rename

second, firebird is installed on the local machine, with that user/password?

third, current user has permission to overwrite the current database with that filename?
0
 

Author Comment

by:rmmarsh
ID: 22771380
Hi Nick...
"second, firebird is installed on the local machine, with that user/password?"    not sure; hopefully the user didn't change it, since I didn't give any directions on how to accomplish that...


"third, current user has permission to overwrite the current database with that filename?"  not sure what you mean... if the backup came from his machine, would he, by default, have permissions?
0
 
LVL 19

Expert Comment

by:NickUpson
ID: 22773992
this is about your machine, the one you want to restore the backup onto
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rmmarsh
ID: 22775934
I restored it on my machine at home and had no problems; tried to restore it on the machine at work and got the problem... it came from one of my users...
0
 
LVL 19

Expert Comment

by:NickUpson
ID: 22778174
I can't remember if REPL requires the file to be there first, check you can connect to another database on the work machine using the same password

this this version:
gbak -CREATE -user sysdba -pass prager "E:\Downloads\Email Attachments\20081021.gbk" c:\Prager\dbBooks_1.fdb
0
 

Author Comment

by:rmmarsh
ID: 22787487
What bothers me is that it works on an XP machine and won't on a Server 2003 R2 machine... is there a connection?
0
 

Author Comment

by:rmmarsh
ID: 22787790
BTW, "CREATE" doesn't work either...  sounds more and more like a Server 2003 R2 issue.
0
 

Author Comment

by:rmmarsh
ID: 22788147
Found the problem!  the master password was wrong!!  (how I did that I'll never know)...
Thanks for your help... points awarded anyway...

Rolf
0
 

Author Closing Comment

by:rmmarsh
ID: 31508473
thanks again...
0
 
LVL 19

Expert Comment

by:NickUpson
ID: 22789814
common mistake, that's why I suggested it
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question