Solved

Message "unavailable database" when running gfix or gbak

Posted on 2008-10-30
22
6,154 Views
Last Modified: 2013-12-09
Whenever I try to run the interbase commands gfix or gbak in a command window against a database on a w2k3 server, I get the message "unavailable database".

The database exists, Interbase is running and my user profile has full control permissions at root share, folder and file levels.

The command used is:

"C:\Program Files\Borland\InterBase\bin\gfix.exe" -v -full -user SYSDBA -pass <pword> dbfilename.gdb

Could enyone explain this and suggest a solution, please?
0
Comment
Question by:DerrickT
  • 10
  • 7
  • 3
  • +1
22 Comments
 
LVL 4

Expert Comment

by:dprochownik
ID: 22839902
At first try use full path for database file name, not a relative one as in yours example.
As I remembered, I had similar problems on w2k3 and relative paths were responsible for that

"C:\Program Files\Borland\InterBase\bin\gfix.exe" -v -full -user SYSDBA -pass <pword> <full path>\dbfilename.gdb
0
 

Author Comment

by:DerrickT
ID: 22839962
Hi dprochownik,

No luck with that one.  I have tried that with the same result.
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22840173
is everybody else logged out ?
0
 

Author Comment

by:DerrickT
ID: 22840288
There are no users attached to the database.
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22840307
are your running this from the server ?

only works locally
0
 

Author Comment

by:DerrickT
ID: 22840407
Yes.  I am logged onto the server using RDC.  I have local administrator rights and, as I said, full control permissions from the top down.

I have been using the command line interface for more years than I care to admit on Linux servers, it just doesn't seem to want to work on the Windows platform.

0
 
LVL 4

Expert Comment

by:dprochownik
ID: 22840445
You wrote -pass parameter. I'm not sure, but I think that in windows it has to be full -password
0
 

Author Comment

by:DerrickT
ID: 22840468
Nice try, dprochownik but no cigar.  Same result.
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22840476
it doesn't say file name, but db_name ...
have you tried using the name of the database ?

without the extension ?


0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22840490
it's actually
-pa MASTERPASSWORD
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 36

Accepted Solution

by:
Geert Gruwez earned 250 total points
ID: 22840496
when using RDC you use the option /console ?
0
 
LVL 4

Expert Comment

by:dprochownik
ID: 22840542
which version of interbase are you using ?
0
 

Author Comment

by:DerrickT
ID: 22840673
This is interbase 2007 (v8).

I'm not logged in via RDC using /console.  I'll try that although I don't expect it will be an issue.

I have tried all permutations of -p to -password and have used the full database name including the extension in the command line.  The same result is produced when dropping the extension.  I have tried in on a range of viable databases, all with the same result.

I am beginning to wonder if this is another one of those wonderful and extremely useful undocumented features provided by the Windows development team.
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22840838
nothing to do with Windows

have you run it from the directory where the database file resides ?

in the cmd

cd \
cd yourdatabasedirectory

"C:\Program Files\Borland\InterBase\bin\gfix.exe" -v -full -user SYSDBA -pass MASTERKEY dbfilename.gdb
0
 
LVL 19

Assisted Solution

by:NickUpson
NickUpson earned 250 total points
ID: 22841431
remember that you cannot access the database file via share,

I remeber there was an issue with doing this via any form of remote desktop, please try running on the actual machine console
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22841778
NickUpson is right
sometimes we have issues too with Remote Desktop
so we use alternatives

there are other forms of remote desktop
which probably won't have these issues
these tend to emulate keyboard/mouse on the remote machine
they usually need a service to be installed on the server
some can push the service to the server

vnc
www.realvnc.com/

remote admin (radmin)
www.radmin.com/

Dameware
www.dameware.com


0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22841937
i ran it from the command line and i had to use the full parameter name options to make it work
from the database directory on the server

C:\Company\DataInterbase>"c:\Program Files\InterBase Corp\InterBase\bin\gfix
.exe" -validate -full -user SYSDBA -password masterkey Company.gdb
0
 

Author Closing Comment

by:DerrickT
ID: 31511610
This will only run if you are logged in either at the console or using mstsc/console.

Thanks to everybody for their input.
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22841978
did something not work completely as you gave a B grade ?
0
 

Author Comment

by:DerrickT
ID: 22841999
Sorry about that, I'm an EE newbie.  Should have been A.

Any idea how I can change it?
0
 
LVL 36

Expert Comment

by:Geert Gruwez
ID: 22842081
hit the button Request attention at the top,
but first read this:
http://www.experts-exchange.com/help.jsp#hs29

EE is a great site for getting solutions.
Solutions are provided by volunteers who do this in their spare time.
There is only A, B and C.
A the solution works
B I had to look some things up and modify for this to work
--> give comments that something doesn't work, = feedback
      and maybe you'll get a better solution
      it at least gives the expert the change to provide a better one
C well if you must, but make sure to give comments why



0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

747 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

13 Experts available now in Live!

Get 1:1 Help Now