Download VeriCentre LE Database Backup and Restore

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Title:
VeriCentre LE Database Backup and Restore
Question
What is a cold backup? How do I perform a cold back up and restore VeriCentre LE database?
:
Answer:
A cold backup is a database backup procedure wherein the database being backed up is currently
not in use. The VeriCentre LE database consists of 2 files (VeriCentredat.mdf and
VeriCentreLog.ldf). These 2 files by default are stored in C:\Program Files\Microsoft SQL
Server\Mssql$VERICENTRE\Data\MSSQL$VERICENTRE\Data.
Cold Backup Methods:
Method I:
Cold backup when MSSQL$VERICENTRE service is NOT running.
1. Logout all VeriCentre client.
2. Stop VeriCentre LE Server service.
3. Stop MSSQL$VERICENTRE service.
4. Copy the VeriCentre database files (vericentredata.mdf and vericentrelog.ldf) out to an archive
media or directory.
Method II:
Cold backup when MSSQL$VERICENTRE service is running.
If you have access to SQL Server Enterprise Manager, register VeriCentre server in Enterprise
Manager then detach VeriCentre database.
If you don't have SQL Enterprise Manager, follow the steps below in DOS to detach the database:
C:\> osql -E -S localhost\vericentre
1> EXEC sp_detach_db 'vericentre', 'true'
2> go
1> quit
Once the VeriCentre database is detached, copy vericentredat.mdf and vercentrelog.ldf files out
to a backup media or archive directory.
VeriCentre LE Database Recovery:
Using SQL Enterprise Manager:
1. Register the VeriCentre server into SQL Enterprise Manager.
2. Detach the existing freshly installed VeriCentre database.
3. Rename the existing VeriCentre database files (vericentredat.mdf and vericentrelog.ldf).
4. Copy back the 2 VeriCentre database from archive.
5. Attach VeriCentre database and follow the prompts in SQL Enterprise Manager.
Using osql utility in DOS if SQL Enterprise is not available:
1. Detach the existing VeriCentre LE database using the osql procedure in Cold Backup Method II
above.
2. Rename the existing VeriCentre database files (vericentredat.mdf and vericentrelog.ldf).
3. Copy back the 2 VeriCentre database from archive.
4. Type the following in DOS to attach the database:
C:\> osql -E -S localhost\vericentre
1> EXEC sp_droplogin 'vericentre'
2> go
1> EXEC sp_attach_db 'vericentre', 'C:\Program Files\Microsoft SQL
Server\Mssql$VERICENTRE\data\Mssql$VERICENTRE\data\VeriCentredat.mdf', 'C:\Program
Files\Microsoft SQL Server\Mssql$VERICENTRE\data\Mssql$VERICENTRE\data\VeriCentrelog.ldf'
2> go
1> exec sp_addlogin 'vericentre', 'vericentre'
2> go
1> use vericentre
2> go
1> exec sp_change_users_login 'Update_One', 'vericentre', 'vericentre'
2> go
1> quit
The VeriCentre LE database is now restored and is ready for use.
**Notes: If you will be restoring the VeriCentre LE database on another machine, you need to
ensure that the machine name is the same as the servername entry in CORE_SERVER table. To
update the servername in the database, follow the steps in the FAQ below:
ftp://ftp.verifone.com/support/vericentre/Docs/Updating_VeriCentre_DB_with_Current_Server_N
ame.pdf
Related documents