Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem with restore

Posted on 2008-10-21
10
Medium Priority
?
327 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 1500 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

688 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