![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello gang, I'm trying to come up with a full proof method of replicating a system for disaster recovery. The system is Universe NT. I also plan on creating this same scenario for QM Win. Is possible to update two files with one WRITE command? (I think D3 has such a feature)One file would be local the other a networked file. This way two machines will be TOTALY synchronize. What will happen when one system goes down? Will the WRITE command abort? I could write a SUBROUTINE to handle all the WRITE commands and have it check for connectivity just before writing. Or I could trap the WRITE failure error messages so I the program won't abort. I have looked at the Universe Replication, but don't think it will work for what I want to do. There will be gaps between the replications. Any suggestions appreciated. Peter |
#3
| |||
| |||
|
|
mdsi2000 wrote: Any suggestions appreciated. Peter If you are on Uv-Nt 10.1.x or maybe 10.0.x you can read up on file triggers in the System Description manual. You would be able to control what your program does should the second file be unavailable at write time. Ron White |
#4
| |||
| |||
|
|
Hello gang, I'm trying to come up with a full proof method of replicating a system for disaster recovery. The system is Universe NT. I also plan on creating this same scenario for QM Win. Is possible to update two files with one WRITE command? (I think D3 has such a feature)One file would be local the other a networked file. This way two machines will be TOTALY synchronize. What will happen when one system goes down? Will the WRITE command abort? I could write a SUBROUTINE to handle all the WRITE commands and have it check for connectivity just before writing. Or I could trap the WRITE failure error messages so I the program won't abort. I have looked at the Universe Replication, but don't think it will work for what I want to do. There will be gaps between the replications. Any suggestions appreciated. Peter |
#5
| |||
| |||
|
|
You could rename the WRITE verb to something like MYWRITE. Then create your own program to replace the WRITE verb. Your new WRITE program should capture the account name, file name, record ID, and record data. Execute MYWRITE using the captured parameters. This will release any locks in a timely manner. Create an NFA pointer to the other system. Execute MYWRITE to the NFA pointer to the remote system to pass the data. If NFA fails you can log any relevant information since you will have it all. This type of set up allows you to bypass files or records that you may not want sent to the redundant system. Many temporary files could be skipped. This method does not rely on triggers, there is no need to re-enable triggers after a re-boot. Also triggers may only be established by an administrator or equivalent. If no one is on site that has the required security you could be in a sticky situation. The primary system could be restarted but no data is being sent to the remote with no log as to which records were missed. There are several versions of the write verb. All will have to be dealt with to insure an air tight system. "mdsi2000" <mdsi2000 (AT) yahoo (DOT) com> wrote in message news:1156189726.336593.237280 (AT) m73g2000cwd (DOT) googlegroups.com... Hello gang, I'm trying to come up with a full proof method of replicating a system for disaster recovery. The system is Universe NT. I also plan on creating this same scenario for QM Win. Is possible to update two files with one WRITE command? (I think D3 has such a feature)One file would be local the other a networked file. This way two machines will be TOTALY synchronize. What will happen when one system goes down? Will the WRITE command abort? I could write a SUBROUTINE to handle all the WRITE commands and have it check for connectivity just before writing. Or I could trap the WRITE failure error messages so I the program won't abort. I have looked at the Universe Replication, but don't think it will work for what I want to do. There will be gaps between the replications. Any suggestions appreciated. Peter |
#6
| |||
| |||
|
|
I was reading the UV manual and there is a way to create a VOC that uses MULTIFLES files. Is in the CREATE-FILE section of the DPF. The VOC is 10 attributes and the last attribute is multivalued. These multivalues holds the multiple data files. I'll be creating a few files and testing it. I'll report back to the group. tbw: QM has a simular option in the CREATE-FILE section. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Writting the SUBROUTINE is an option, but there are too many programs to modify and like Albino mentioned too many types of write, WRITE, MATWRITE, WRITEV, ... I was reading the UV manual and there is a way to create a VOC that uses MULTIFLES files. Is in the CREATE-FILE section of the DPF. The VOC is 10 attributes and the last attribute is multivalued. These multivalues holds the multiple data files. I'll be creating a few files and testing it. I'll report back to the group. tbw: QM has a simular option in the CREATE-FILE section. Pete Albino Timberwolf wrote: You could rename the WRITE verb to something like MYWRITE. Then create your own program to replace the WRITE verb. Your new WRITE program should capture the account name, file name, record ID, and record data. Execute MYWRITE using the captured parameters. This will release any locks in a timely manner. Create an NFA pointer to the other system. Execute MYWRITE to the NFA pointer to the remote system to pass the data. If NFA fails you can log any relevant information since you will have it all. This type of set up allows you to bypass files or records that you may not want sent to the redundant system. Many temporary files could be skipped. This method does not rely on triggers, there is no need to re-enable triggers after a re-boot. Also triggers may only be established by an administrator or equivalent. If no one is on site that has the required security you could be in a sticky situation. The primary system could be restarted but no data is being sent to the remote with no log as to which records were missed. There are several versions of the write verb. All will have to be dealt with to insure an air tight system. "mdsi2000" <mdsi2000 (AT) yahoo (DOT) com> wrote in message news:1156189726.336593.237280 (AT) m73g2000cwd (DOT) googlegroups.com... Hello gang, I'm trying to come up with a full proof method of replicating a system for disaster recovery. The system is Universe NT. I also plan on creating this same scenario for QM Win. Is possible to update two files with one WRITE command? (I think D3 has such a feature)One file would be local the other a networked file. This way two machines will be TOTALY synchronize. What will happen when one system goes down? Will the WRITE command abort? I could write a SUBROUTINE to handle all the WRITE commands and have it check for connectivity just before writing. Or I could trap the WRITE failure error messages so I the program won't abort. I have looked at the Universe Replication, but don't think it will work for what I want to do. There will be gaps between the replications. Any suggestions appreciated. Peter |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Sounds like you want data replication which comes standard with U2 . |
|
From what I read in the docs, it only updates at set times. This gives me gaps in the synchronization. This will cause record counters and |
![]() |
| Thread Tools | |
| Display Modes | |
| |