Welcome to SynapseDirect Sign in | Join | Help
in Search

SynapseDirect

DB Corruption repair

Last post 05-03-2008, 7:52 PM by Graham. 33 replies.
Page 2 of 3 (34 items)   < Previous 1 2 3 Next >
Sort Posts: Previous Next
  •  04-30-2008, 7:49 PM 5760 in reply to 1421

    Re: DB Corruption repair

    How to restore database backup created using FIBS?
  •  04-30-2008, 8:15 PM 5761 in reply to 5760

    Re: DB Corruption repair

    http://www.destructor.de/firebird/gbak.htm

    Eg

    gbak -c -v -user SYSDBA -password masterkey c:\backups\remr.fbk c:\emr\server\remr.fdb


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  04-30-2008, 8:39 PM 5762 in reply to 5761

    Re: DB Corruption repair

    Actually I am aware of the commands for backup / restore. However I do not know where should I type in the command line in order to execute the restore. I managed to avoid the need to use the gbak command line to perform backup since I could just use FIBS instead without the need to type anything.
  •  04-30-2008, 10:33 PM 5763 in reply to 5762

    Re: DB Corruption repair

    Let's say you have installed firebird 2.0

    Then it might be something like this from a dos shell

     "c:\program files\firebird\firebird_2_0\bin\gbak" and then the rest of the above line.

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  05-01-2008, 7:27 AM 5764 in reply to 5763

    Re: DB Corruption repair

    I usually do it manually, just find where the files are stored.

    I use FIBS


    I'm working at half mast today, I think my ESR is higher than Grahams :( Dx: URTI vs. Flu.
    Developer
  •  05-01-2008, 6:44 PM 5765 in reply to 5763

    Re: DB Corruption repair

    Do I just put the command line into Windows Command Prompt under Accessories?

    One more thing, someone told me that since firebird is based on SQL, it is OK to just use the Windows copy & paste function to back up the database. Of course I haven't try that.

     What I have tried is using Windows Backup under Accessories-System Tool-Backup to:

    1. backup the database, then 2. move the original database to somewhere else, & then 3. restoring the database from backup file. IT DID WORK! Also when I deleted the restored backup file & moved back the previously moved original database file, it looks still OK.

    Any comment especially concerning database corruption issue? 

     

  •  05-01-2008, 8:10 PM 5766 in reply to 5765

    Re: DB Corruption repair

    >Do I just put the command line into Windows Command Prompt under Accessories?

    Yes, if that is where the command prompt is.

    >One more thing, someone told me that since firebird is based on SQL, it is OK to just use the Windows copy & paste function to back up the database. Of course I haven't try that.

    Completely wrong.  That will only work if there are no Firebird process accessing the database.  If there is, you will likely corrupt the database.

    SQL is an Ansi standard for a computer language.  It has no relevance to operating system functions.

    >What I have tried is using Windows Backup under Accessories-System Tool-Backup to:

    >1. backup the database, then 2. move the original database to somewhere else, & then 3. restoring the database from backup file. IT DID WORK! Also when I deleted the restored backup file & moved >back the previously moved original database file, it looks still OK.

    I don't think this is really safe either.  Unless Firebird is shut down.  Windows backup needs to do a shadow backup if this is to work while live.  Furthermore these tools do not report on the internal consistency of the database.

    You can only use gbak to backup an open firebird database. Fibs also uses Gbak.  It just wraps a gui around it.

    Have you actually had any issues with database corruption?


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  05-02-2008, 8:09 PM 5769 in reply to 5766

    Re: DB Corruption repair

    Sorry to admit that I still can't perform backup or restore using gbak as I got error message for whatever the commands I typed into Windows Command Prompt.

    I can now perform backup using FIBS, but the problem remains as to how to restore from the backup in case such a need arises.

    I have just learned a quick backup method for Windows XP system from IBPhoenix Knowledgebase:

    1. Shut down fb server manually: open Control Panel\Administrative Tools\Services, scroll down to Firebird Server & select it, then click stop to shutdown the server.

    2. Perform an operating-system-level (OS-level) backup using the Windows Backup function under Start\All Programs\Accessories\System Tools\Backup.

    3. Restart fb server manually after completing OS-level backup: open Control Panel\Administrative Tools\Services, scroll down to Firebird Server & select it, then click start to restart the server.

    In performing an OS-level backup with the fb server shut down, restoring the backup file is easy for an "amateur" like me; to restore backup, just shut down the fb server again, restore the backup using the Windows Backup function under Start\All Programs\Accessories\System Tools\Backup, then restart the fb server. That's it, RIGHT?

    I am sure that I shut down the fb server correctly as I received the following message when I tried to start Synapse EMR Express Server with the fb server shut dwon:

    This screen has appeared as we can not open a connection to the database...........................................................
  •  05-02-2008, 8:47 PM 5770 in reply to 5769

    Re: DB Corruption repair

    Yes, that would work ...

    I normally use IBOConsole to do restores rather than  using the command line as it saves me typing the commands

    http://www.mengoni.it/Downloads/

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  05-03-2008, 12:10 AM 5773 in reply to 5770

    Re: DB Corruption repair

    I installed IBOConsole & tried to register the firebird server by choosing the Local Server option & typing in the User Name & Password. However, I received an error message saying that "Client library fbclient.dll not found in the path. Please install it to use this functionality".

    What's wrong? I can actually find fbclient.dll within the folder "C:\Program Files\firebird\firebird_1_5\bin".

    FYI, both my Synapse EMR server & client are installed & run within the same computer running Windows XP Pro. 

  •  05-03-2008, 12:59 AM 5774 in reply to 5773

    Re: DB Corruption repair

    IBOConsole from memory doesn't need to be installed.  I think it just runs from whatever directory it is placed in.

    Since Firebird is not generally in the path, you can either add it, or just copy the fbclient.dll to the same directory where IBOConsole resides.

    You might also want to consider upgrading to Firebird 2.0.x ...

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  05-03-2008, 1:20 AM 5775 in reply to 5774

    Re: DB Corruption repair

    I followed your advice & I have registered & logged into both the server & the database. Wow! There are so many things I can do to the database using IBOConsole, including database backup & restoreYes; much much simpler than the gbak commandsSmile.

    In order to upgrade to Firebird 2.0.x, what should be the proper steps to be taken? Do I just download it & install it over the existing Firebird 1.5 version? Will it affect Synapse EMR server & client functionality? Do I need to shut down the server before installation? Any significant benefit in upgrading?

  •  05-03-2008, 1:45 AM 5776 in reply to 5775

    Re: DB Corruption repair

    Yes, shut down the server.

    I think the installation should uninstall the original Firebird installation.  You also need to install the latest ODBC driver.

    FB 2 has differential backups, and the ODBC driver has better support for float values which the latest Synapse server uses.

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
  •  05-03-2008, 2:23 AM 5777 in reply to 5776

    Re: DB Corruption repair

    Which one should I install first, Firebird or ODBC driver?

    Regarding the ODBC driver, should I download & install

    Firebird ODBC/JDBC Drivers version 2 Beta?

     

  •  05-03-2008, 3:39 AM 5778 in reply to 5777

    Re: DB Corruption repair

    Firebird 2 and then the latest stable odbc driver.

     


    Graham Chiu
    Beta Downloads and Documentation Wiki
    Developer Forum
Page 2 of 3 (34 items)   < Previous 1 2 3 Next >
View as RSS news feed in XML
Try-out the Click to try-out Synapse EMR Express Edition Free Synapse EMR Express Edition Click to try-out Synapse EMR Express Edition · ©2006 SynapseDirect · Terms and Conditions · Privacy Policy · help us keep Synapse EMR Express free for all Doctors

managing your electronic medical records · Unique Visits Dell Computer