Solved

Problem with restore

Posted on 2008-10-21
10
321 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
  • 6
  • 4
10 Comments
 
LVL 19

Accepted Solution

by:
NickUpson earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
this is about your machine, the one you want to restore the backup onto
0
 

Author Comment

by:rmmarsh
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:rmmarsh
Comment Utility
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
Comment Utility
BTW, "CREATE" doesn't work either...  sounds more and more like a Server 2003 R2 issue.
0
 

Author Comment

by:rmmarsh
Comment Utility
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
Comment Utility
thanks again...
0
 
LVL 19

Expert Comment

by:NickUpson
Comment Utility
common mistake, that's why I suggested it
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now