Saludos amigos,
Tengo el siguiente escenario:
1 servidor con windows 10
3 terminales con windows 7
Todos los terminales tienen un acceso directo al servidor (\\SERVER\InfoFarma\InfoFarma.exe). Desde hace un par de dias DOS DE LAS TERMINALES no muestran los mismos datos de las tablas que se ven en el servidor (1 terminal en cambio si).
Por ejemplo en las 2 terminales con el problema solo se ve hasta el registro de ventas 682323 mientras que en el servidor se puede ver hasta el registro 682643
Incluso si desde el terminal accedo a las tablas y las aperturo directamente usando la ruta del acceso directo (\\SERVER\InfoFarma\Dbf\) si voy al último registro efectivamente solo me muestra hasta el 682323, y si hago lo mismo en el servidor o en la terminal que funciona bien se puede ver el último registro 682643, es como si estas 2 terminales se hubiesen quedado en el pasado. Estimo que se trata de un problema a nivel del Windows. ¿ Alguien tiene una idea de porque puede ocurrir esto ?
Cordiales saludos a todos y mil gracias anticipadas por su tiempo.
Terminales desincronizadas
Moderator: Rathinagiri
- edufloriv
- Posts: 238
- Joined: Thu Nov 08, 2012 3:42 am
- DBs Used: DBF, MariaDB, MySQL, MSSQL, MariaDB
- Location: PERU
Terminales desincronizadas
Eduardo Flores Rivas
LIMA - PERU
- AUGE_OHR
- Posts: 2064
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Terminales desincronizadas
hi,
DBF can be corrupt ...
INDEX can be corrupt
---
since Vista / Win7 we have SMB2 and when use UNC Path "most" Server Problem are gone
but we also got a "new Cache" for Local
https://docs.microsoft.com/en-us/previo ... dfrom=MSDN
as explained in Article you should set
to avoid "delay" when update and sync Data
! Note : "Lanmanworkstation" is the PC where EXE run which communicate with Server
so it have no Effect on your Home-Office PC which is remote connect to PC
DBF can be corrupt ...
Code: Select all
USE Original EXCLUSIVE
COPY TO Fresh FOR .NOT. DELETED()
CLOSE
// do you have SMB2 Patch ?
SLEEP(100)
FERASE(Original)
RENAME Fresh TO Original
Code: Select all
aDir :=Directory(cPath+"*.CDX")
AEVAL(aDir ,{|e| FERASE(e)})
// now build new Index
since Vista / Win7 we have SMB2 and when use UNC Path "most" Server Problem are gone
but we also got a "new Cache" for Local
https://docs.microsoft.com/en-us/previo ... dfrom=MSDN
as explained in Article you should set
underDirectory cache, by setting DirectoryCacheLifetime to ZERO.
File Not Found cache, by setting FileNotFoundCacheLifetime to ZERO.
File information cache, by setting FileInfoCacheLifetime to ZERO.
Code: Select all
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanworkstation\Parameters
! Note : "Lanmanworkstation" is the PC where EXE run which communicate with Server
so it have no Effect on your Home-Office PC which is remote connect to PC
have fun
Jimmy
Jimmy
Re: Terminales desincronizadas
Not sure if this is relevant. I am sure you have checked, but when I update the exe program in the server and the program is not shut down in workstations, there starting icon looses it`s link. Maybe in your case if they do not shut off there computer they may still be running old program.
Not sure if this affects data.
Not sure if this affects data.
All The Best,
Franco
Canada
Franco
Canada