Copying navision database while its in use

skid
Member Posts: 6
I only recently realized how bad it might be to make copies of database while people are working with it (you can end up with inconsistent database?). Funny thing is that we are doing it for a year or so now and nothing went wrong.. How can that be?..
Anyway my question is: is this a problem? If I try to copy database while its in a middle of something will navision transaction system be enough to recover from that?
Anyway my question is: is this a problem? If I try to copy database while its in a middle of something will navision transaction system be enough to recover from that?
Then it comes to be that the soothing light at the end of your tunnel was just a freight train comming your way
0
Comments
-
This is a matter of timing. Like you said, most of the time it will go without any problem, but that one time that you just coincidentally happen to copy the database right in the middle of a transaction, you're screwed.
I don't really think it has implications for the database that you are copying FROM, but it would have implications for the copy of that database.
The safest way to do this would be to wait until after hours, create a backup file and create a new database by restoring that backup into it.0 -
Or, use HOTCOPY.EXE -- it is built specifically for this purpose: it can read a 'consistent' version of the db, making an exact copy, but avoiding problems with transactions 'in flight' during the copy...0
-
That made things clearer. Thanks.Then it comes to be that the soothing light at the end of your tunnel was just a freight train comming your way0
-
I was under the impression that a technique called "versioning" is used in the native database and that a Navision (fbk) backup having 100% referential integrity can be taken at any stage, irrespective of the number of current users. (This does not apply to SQL).
Basically only records created prior to the point at which you started the backup are backed up. Later transactions are ignored. This is very handy for taking on site backups for NSC use. You can do the backup without having to kick everyone off.0 -
chaswin wrote:I was under the impression that a technique called "versioning" is used in the native database and that a Navision (fbk) backup having 100% referential integrity can be taken at any stage, irrespective of the number of current users. (This does not apply to SQL).
Basically only records created prior to the point at which you started the backup are backed up. Later transactions are ignored. This is very handy for taking on site backups for NSC use. You can do the backup without having to kick everyone off.
This is correct. But the initial question about doing a file system copy of the database while it is in use does not always apply versioning. And especially if you're in the middle of a transaction the new database copy will be unusable.Kristopher Webb
Microsoft Dynamics NAV Developer0 -
You are correct. You can create a new backup of your Navision database at any time, and it is guaranteed to be correct. However, if you run a backup while you have 50 users entering sales orders, you are not going to be a popular person
, since that sucks your system resources right out of the machine.
I always recommend customers to run backups after hours, or during lunch, so that users are affected as little as possible. It doesn't interfere with production, and it finishes much quicker too.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions