We have two databases on two SQL servers
DB1 on SQL Server A
DB2 on SQL Server B
User enters all transactions in DB1. This has to be replicated in DB2. If SQL Server A goes down, users should be able to use DB2 on SQL Server B. When DB1 on SQL Server A is up, we want all the transactions done in DB2 on SQL Server B to be replicated in DB1 on SQL Server A. Is this scenario possible in Navision 4.0 SP3?
0
Comments
Best Regards
As far as I understood, you're looking for a standby/failover soution. Here plenty of solutions are possible, from "Log Shipping" over "Mirroring" to "Failover Clustering". Which option is the best one, depends on your "safety"requirements: the acceptable server-down-time and amount of data-loss. Further it depends on your facilities and the budget.
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
You need "SQL Server 2000 Enterprise Edition" or "SQL Server 2005 Standard Edition" (or higher).
If you're browsing the "Books Online" for "Transaction Log Shipping" you'll find a detailed description about how to setup and use the feature.
Basically, it works like this:
You create periodically a backup of the TLog of DB A (Server 1) and transfer it to Server 2. Server 2 now re-processes the TLog on DB B, thuhs DB B is an asynchronously updated version of DB A.
If Server 1/DB A fails, you can switch Server 2/DB B online and continue working.
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
However as to how well Navision will work with replication is another matter, and that's not a criticism of Navision, database/applications that are required to be replicated usually should be designed for this. I've successsfully replicated ( one way ) databases you can't replicate with standard transactional replication, but it's not easy. Not done much with peer to peer ( only available in 2005 ) but it should do what you want.
As long as the time interval used for log shipping is an acceptable loss (the default is 15 minutes, but you can go down to less than that), I think log shipping is an excellent solution for this, it is even intended for that scenario.
RIS Plus, LLC
My personal preference for standby is log shipping.
RIS Plus, LLC
True, to a point. However Database Mirroring (full safety mode) eliminates the manual steps of bringing the standby server online. Users simply restart their Navision clients and connect to the backup server.
RIS Plus, LLC
There are several options when it comes to fault-tolerance and disaster-recovery. The idea is to select the choice that best provides the needed features at the right budget, and not simply select the method that is gettign the most buzz.
- transaction is committed to source database
- transaction log for that transaction is shipped to the mirrored database
- instead of backup files on user defined time intervals it's at every transaction
The difference would then be that there's not an actual transaction log backup file being transferred, so that part is done internally.
But I always understood that it has a sequence: source database, commit, mirror the transaction to the mirrored database, commit.
RIS Plus, LLC
RIS Plus, LLC
I know of some sites where the storage system has been configured to do exactly what you want by mirroring SQL files to a separate set of disks.
This type of "software" works indepent of your application requirements.
MBS NAV Consultant
That's what SQL Mirroring is doing. Many of these third-party solutions are leveraging underlying Windows Server and SQL technologies