![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would like to learn how to safely copy paradox data files while the database is operatonal. Is this possible? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
You can not do it from windows or a backup program, etc. while the tables are in use. ===================== |
#5
| |||
| |||
|
|
Paradox (the application) will natively use the BDE to lock the tables while they're being copied |
|
"Dennis Santoro" wrote: You can not do it from windows or a backup program, etc. while the tables are in use. ===================== Unless you use Windows API calls to place explicit file locks on each of the table files... then manually unlock (through code) them when completed. You will need to be sure to include a copy of ALL the related DB files also (index files etc.). While it can be done without using the BDE (ie; using Paradox or Delphi).... It is much easier to simply use Paradox (the application) to copy the Tables. Paradox (the application) will natively use the BDE to lock the tables while they're being copied.... and also assure that ALL related DB files are included in the copy process. -- ... `·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney |
#6
| |||
| |||
|
|
...paradox data files while the database is operatonal. ... We want to do this nightly. ... Our first attempt was to simply copy the data directory with Windows OS commands. |
|
He delivered a directory of .DB, .TV, .PX files. |
|
a resource where I can read about basic administration for paradox databases? Specifically how to safely copy/mirror/replicate source systems without affecting daily operations of end users. |
#7
| ||||||
| ||||||
|
|
Hello, I am very new to paradox databases but have some familiarity with Oracle and MS SQL rdbms concepts. I would like to learn how to safely copy paradox data files while the database is operatonal. Is this possible? |
|
Im used to some sort of admin tool which hides the complexity involved in preserving a valid database state. I have no idea if such a tool exists for paradox databases. |
|
To add to the confusion, I will not be allowed to touch the production tables myself. I will instead, be prviding a safe solution to the administrator so that he can provide me with consistant refreshes of the production tables. We want to do this nightly. |
|
Our first attempt was to simply copy the data directory with Windows OS commands. |
|
In fact, on one table there is a violation of the primary key on the very last record. I suspect the copy is corrupt because of the way it was copied. But honestly i have no idea. |
|
Can anyone direct me to a resource where I can read about basic administration for paradox databases? Specifically how to safely copy/mirror/replicate source systems without affecting daily operations of end users. |
#8
| |||
| |||
|
|
Unless you use Windows API calls to place explicit file locks on each of the table files... then manually unlock (through code) them when completed. |
#9
| |||
| |||
|
|
Well, there is no built-in utility that permits you to make a read-consistent snapshot of the data. The only way to do this is to make the copy while preventing updates to all of the tables involved in the copy. Paradox calls this a write lock. In a nutshell you want traverse through the list of tables you want to copy and try to get a write lock on them all. If you succeed, then hold that lock for as long as it takes to copy the tables. If you fail, then release all of the locks and try again. |
#10
| |||
| |||
|
|
By the time you've got all 5 locked, it's possible the data is out of sync - no matter what order you lock them in. |
![]() |
| Thread Tools | |
| Display Modes | |
| |