Solved

Problem with restore

Posted on 2008-10-21
10
323 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
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is there any Artificial Intelligence (AI) Software I can use with my database search engines? 1 79
null value 15 99
Exchange 2016 Databse move 5 54
Sql Join Problem 2 43
Creating and Managing Databases with phpMyAdmin in cPanel.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…

813 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

12 Experts available now in Live!

Get 1:1 Help Now