简体   繁体   English

如何还原普及Db备份?

[英]How to restore a Pervasive Db backup?

I need to ask one of our customers for a db backup of their Pervasive DB. 我需要向我们的一位客户询问其Pervasive数据库的数据库备份。 I went through the online material available in this area and surprisingly, there is very little information available. 我浏览了该领域的在线材料,令人惊讶的是,几乎没有可用的信息。 Appreciate any help in this area. 感谢这方面的帮助。

Mainly I have two questions. 我主要有两个问题。

1) What are the types of files I should request from the customer, as the backup files? 1)作为备份文件,我应该向客户要求的文件类型是什么? Because, they have sent me two files (these files do not have any file extension) and I could not figure out what the file types are nor how to restore them. 因为,他们给我发送了两个文件(这些文件没有任何文件扩展名),而且我无法弄清什么文件类型以及如何还原它们。 I tried renaming them as .DDF, but no luck. 我尝试将它们重命名为.DDF,但是没有运气。

2) After getting the files from them, how do I restore the db? 2)从文件中获取文件后,如何还原数据库? As far as I understand, I can paste these files to a location in Pervasive DB installation folder and then the server should be identifying the database. 据我了解,我可以将这些文件粘贴到Pervasive DB安装文件夹中的某个位置,然后服务器应标识数据库。

Thank you. 谢谢。

The easiest way to back up a Pervasive database is to stop the engine (or at least make sure everyone has closed any Pervasive data files) and copy the files in the data directory to another location. 备份Pervasive数据库的最简单方法是停止引擎(或至少确保每个人都关闭了Pervasive数据文件),然后将数据目录中的文件复制到另一个位置。 The files to be copied are all of the files in the data directory and dictionary location in the Pervasive Database entry. 要复制的文件是“普及数据库”条目中data directorydictionary location中的所有文件。

Pervasive data files can have any (or no) extension. 普及数据文件可以具有任何(或没有)扩展名。 I've seen MKD, BTR, DAT, DBF, DB, and even no extension although that is rare. 我见过MKD,BTR,DAT,DBF,DB,甚至没有扩展名,但这很少见。

Restoring the database is just as simple. 恢复数据库非常简单。 Take the copies of the Dictionary files (*.DDF) and the the Data files (from the data directory), put them on the new machine with the a version of the Pervasive engine greater than or equal to the original version and create a new Pervasive Database entry pointing to the new directories. 取得字典文件(* .DDF)和数据文件(来自数据目录)的副本,将它们放置在新的计算机上,并使Pervasive引擎的版本大于或等于原始版本,并创建一个新的指向新目录的普及数据库条目。

Each database is potentially different so you'd want to check your database for the locations. 每个数据库都可能不同,因此您需要检查数据库中的位置。
The Database properties in the Pervasive Control Center will show the Database properties will show the Dictionary Location and the Data Directory: 在“普及控制中心”中的“数据库”属性将显示“数据库”属性,将显示“字典位置”和“数据目录”: 字典和数据目录屏幕截图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM