• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7783
  • Last Modified:

Message "unavailable database" when running gfix or gbak

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
DerrickT
Asked:
DerrickT
  • 10
  • 7
  • 3
  • +1
2 Solutions
 
dprochownikCommented:
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
 
DerrickTAuthor Commented:
Hi dprochownik,

No luck with that one.  I have tried that with the same result.
0
 
Geert GruwezOracle dbaCommented:
is everybody else logged out ?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
DerrickTAuthor Commented:
There are no users attached to the database.
0
 
Geert GruwezOracle dbaCommented:
are your running this from the server ?

only works locally
0
 
DerrickTAuthor Commented:
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
 
dprochownikCommented:
You wrote -pass parameter. I'm not sure, but I think that in windows it has to be full -password
0
 
DerrickTAuthor Commented:
Nice try, dprochownik but no cigar.  Same result.
0
 
Geert GruwezOracle dbaCommented:
it doesn't say file name, but db_name ...
have you tried using the name of the database ?

without the extension ?


0
 
Geert GruwezOracle dbaCommented:
it's actually
-pa MASTERPASSWORD
0
 
Geert GruwezOracle dbaCommented:
when using RDC you use the option /console ?
0
 
dprochownikCommented:
which version of interbase are you using ?
0
 
DerrickTAuthor Commented:
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
 
Geert GruwezOracle dbaCommented:
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
 
Nick UpsonPrincipal Operations EngineerCommented:
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
 
Geert GruwezOracle dbaCommented:
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
 
Geert GruwezOracle dbaCommented:
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
 
DerrickTAuthor Commented:
This will only run if you are logged in either at the console or using mstsc/console.

Thanks to everybody for their input.
0
 
Geert GruwezOracle dbaCommented:
did something not work completely as you gave a B grade ?
0
 
DerrickTAuthor Commented:
Sorry about that, I'm an EE newbie.  Should have been A.

Any idea how I can change it?
0
 
Geert GruwezOracle dbaCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

  • 10
  • 7
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now