Hi. We are using CDXAuge_Ohr wrote:did you use NTX or CDXdbroder@nycourts.gov wrote:Thanks for your response. We are using indexes.skiman wrote:Hi,
Are you using indexes? It looks as you don't? You really need indexes!
Multi User Database Issue
-
- Posts: 10
- Joined: Thu May 10, 2018 9:47 am
Re: Multi User Database Issue
Re: Multi User Database Issue
so you must have a own DBESYS ... please show itdbroder@nycourts.gov wrote:Auge_Ohr wrote:dbroder@nycourts.gov wrote: Hi. We are using CDX
greetings by OHR
Jimmy
Jimmy
-
- Posts: 10
- Joined: Thu May 10, 2018 9:47 am
Re: Multi User Database Issue
[quote="Auge_Ohr"][quote="dbroder@nycourts.gov"][quote="Auge_Ohr"][quote="dbroder@nycourts.gov"]
Hi. We are using CDX[/quote][/quote][/quote]so you must have a own DBESYS ... please show it[/quote]
[code]
PROCEDURE dbeSys()
SET COLLATION TO // Use strict ASCII sorting
SET DATE TO AMERICAN // mm/dd/yy
DbeLoad("DBFDBE",.T.)
DbeLoad("FOXDBE",.T.)
DbeLoad("NTXDBE",.T.)
DbeLoad("CDXDBE",.T.)
DbeLoad("DELDBE",.T.)
IF !DbeBuild( "DELCDX", "DELDBE", "CDXDBE" )
ALERT("DELCDX Database Engine is not created", {"OK"} )
ENDIF
IF !DbeBuild( "FOXCDX", "FOXDBE", "CDXDBE" )
ALERT("FOXCDX Database-Engine is not created", {"OK"} )
ENDIF
IF !DbeBuild( "DBFNTX", "DBFDBE", "NTXDBE" )
ALERT("DBFNTX Database-Engine is not created", {"OK"} )
ENDIF
IF !DbeBuild( "DBFCDX", "DBFDBE", "CDXDBE" )
ALERT("DBFCDX Database-Engine is not created", {"OK"} )
ENDIF
DbeSetDefault("FOXCDX")
DbeInfo( COMPONENT_DATA, FOXDBE_LOCKRETRY, 100000)
DbeInfo( COMPONENT_DATA, FOXDBE_LOCKDELAY, 10)
DbeInfo( COMPONENT_DATA, FOXDBE_LIFETIME, 0)
DbeInfo( COMPONENT_DATA, FOXDBE_CREATE_2X, .F. )
DbeInfo( COMPONENT_DATA, FOXDBE_LOCKMODE , FOXDBE_LOCKMODE_VISUAL )
DbeSetDefault( "DBFCDX" )
DbeInfo( COMPONENT_DATA, DBFDBE_LOCKRETRY, 100000 )
DbeInfo( COMPONENT_DATA, DBFDBE_LOCKDELAY, 10 )
DbeInfo( COMPONENT_DATA, DBFDBE_LIFETIME, 0 )
DbeInfo( COMPONENT_DATA, DBFDBE_LOCKOFFSET, 1000000000 )
DbeInfo( COMPONENT_ORDER, CDXDBE_LOCKRETRY, 100000)
DbeInfo( COMPONENT_ORDER, CDXDBE_LOCKDELAY, 1 )
DbeInfo( COMPONENT_ORDER, CDXDBE_LIFETIME, 0 )
DbeInfo( COMPONENT_ORDER, DBE_LOCKMODE, LOCKING_STANDARD )
RETURN
[/code]
Hi. We are using CDX[/quote][/quote][/quote]so you must have a own DBESYS ... please show it[/quote]
[code]
PROCEDURE dbeSys()
SET COLLATION TO // Use strict ASCII sorting
SET DATE TO AMERICAN // mm/dd/yy
DbeLoad("DBFDBE",.T.)
DbeLoad("FOXDBE",.T.)
DbeLoad("NTXDBE",.T.)
DbeLoad("CDXDBE",.T.)
DbeLoad("DELDBE",.T.)
IF !DbeBuild( "DELCDX", "DELDBE", "CDXDBE" )
ALERT("DELCDX Database Engine is not created", {"OK"} )
ENDIF
IF !DbeBuild( "FOXCDX", "FOXDBE", "CDXDBE" )
ALERT("FOXCDX Database-Engine is not created", {"OK"} )
ENDIF
IF !DbeBuild( "DBFNTX", "DBFDBE", "NTXDBE" )
ALERT("DBFNTX Database-Engine is not created", {"OK"} )
ENDIF
IF !DbeBuild( "DBFCDX", "DBFDBE", "CDXDBE" )
ALERT("DBFCDX Database-Engine is not created", {"OK"} )
ENDIF
DbeSetDefault("FOXCDX")
DbeInfo( COMPONENT_DATA, FOXDBE_LOCKRETRY, 100000)
DbeInfo( COMPONENT_DATA, FOXDBE_LOCKDELAY, 10)
DbeInfo( COMPONENT_DATA, FOXDBE_LIFETIME, 0)
DbeInfo( COMPONENT_DATA, FOXDBE_CREATE_2X, .F. )
DbeInfo( COMPONENT_DATA, FOXDBE_LOCKMODE , FOXDBE_LOCKMODE_VISUAL )
DbeSetDefault( "DBFCDX" )
DbeInfo( COMPONENT_DATA, DBFDBE_LOCKRETRY, 100000 )
DbeInfo( COMPONENT_DATA, DBFDBE_LOCKDELAY, 10 )
DbeInfo( COMPONENT_DATA, DBFDBE_LIFETIME, 0 )
DbeInfo( COMPONENT_DATA, DBFDBE_LOCKOFFSET, 1000000000 )
DbeInfo( COMPONENT_ORDER, CDXDBE_LOCKRETRY, 100000)
DbeInfo( COMPONENT_ORDER, CDXDBE_LOCKDELAY, 1 )
DbeInfo( COMPONENT_ORDER, CDXDBE_LIFETIME, 0 )
DbeInfo( COMPONENT_ORDER, DBE_LOCKMODE, LOCKING_STANDARD )
RETURN
[/code]
Re: Multi User Database Issue
hi,
i wonder that you are using FOXCDX and (!) DBFCDX
your last DbeSetDefault() is using "DBFCDX". did you switch it in you App
CDXDBE_LIFETIME does not exist. look at CDXDBE (ORDER Komponente)
i wonder that you are using FOXCDX and (!) DBFCDX

your last DbeSetDefault() is using "DBFCDX". did you switch it in you App

CDXDBE_LIFETIME does not exist. look at CDXDBE (ORDER Komponente)
greetings by OHR
Jimmy
Jimmy
-
- Posts: 10
- Joined: Thu May 10, 2018 9:47 am
Re: Multi User Database Issue
We inherited this code so I'm not sure why the dbesys has a reference to FOXCDE.Auge_Ohr wrote:hi,
i wonder that you are using FOXCDX and (!) DBFCDX![]()
your last DbeSetDefault() is using "DBFCDX". did you switch it in you App![]()
CDXDBE_LIFETIME does not exist. look at CDXDBE (ORDER Komponente)
We have the xbase help for 2.0 (we are using 1.9) wasn't sure if the CDXDBE_LIFETIME was removed in 2.0 so we left it in place in the dbesys. I can remove it. Thanks/
Re: Multi User Database Issue
hi,
more Comment
that is less than default ...
*_LOCKRETRY and *_LOCKDELAY default value most working well (since v1.5x)
DBE_LOCKMODE i recommend default LOCKING_STANDARD until all run stable.
more Comment
i recommend to remove hole "DBFCDX" DATA-Component, just use "FOXCDX" DATA-Component*_LIFETIME are for DATA-Component not for ORDER-Component
Code: Select all
DbeInfo( COMPONENT_ORDER, CDXDBE_LOCKDELAY, 1 )

*_LOCKRETRY and *_LOCKDELAY default value most working well (since v1.5x)
CDXDBE_MODE must be same Type like FOXDBE_LOCKMODEFOXDBE (DATA-Komponente) have FOXDBE_LOCKMODE
CDXDBE (ORDER Komponente) have CDXDBE_MODE and DBE_LOCKMODE

DBE_LOCKMODE i recommend default LOCKING_STANDARD until all run stable.
greetings by OHR
Jimmy
Jimmy
-
- Posts: 10
- Joined: Thu May 10, 2018 9:47 am
Re: Multi User Database Issue
Thank you. We will try your recommendationsAuge_Ohr wrote:hi,
more Commenti recommend to remove hole "DBFCDX" DATA-Component, just use "FOXCDX" DATA-Component*_LIFETIME are for DATA-Component not for ORDER-Component
that is less than default ...Code: Select all
DbeInfo( COMPONENT_ORDER, CDXDBE_LOCKDELAY, 1 )
![]()
*_LOCKRETRY and *_LOCKDELAY default value most working well (since v1.5x)
CDXDBE_MODE must be same Type like FOXDBE_LOCKMODEFOXDBE (DATA-Komponente) have FOXDBE_LOCKMODE
CDXDBE (ORDER Komponente) have CDXDBE_MODE and DBE_LOCKMODE![]()
DBE_LOCKMODE i recommend default LOCKING_STANDARD until all run stable.
Re: Multi User Database Issue
don't forget to create Index NEW (not REINDEX)dbroder@nycourts.gov wrote:Thank you. We will try your recommendations
greetings by OHR
Jimmy
Jimmy
Re: Multi User Database Issue
I had this problem 2 years ago, and at that time, Kaspersky anti-virus was causing this.
I remove the Kaspersky and used only Defender and my problem was solved.
A few months ago, the very slow situation came back, around october 2018. I realize that it comes when a file is open in shared mode and another user is trying in exclusive mode.
If I use all files access, always in EXCLUSIVE MODE, I don t get the slow situation.
If I use SHARED and EXCLUSIVE, I get the slow situation.
The solution for me was to make sure that the file is always OPEN in SHARED mode at the beginning of the program, and no function would try to open the file in EXCLUSIVE mode.
I also installed the SMB2 patch from Alaska on all computers, Windows 7, Windows 8, Windows 10.
I remove the Kaspersky and used only Defender and my problem was solved.
A few months ago, the very slow situation came back, around october 2018. I realize that it comes when a file is open in shared mode and another user is trying in exclusive mode.
If I use all files access, always in EXCLUSIVE MODE, I don t get the slow situation.
If I use SHARED and EXCLUSIVE, I get the slow situation.
The solution for me was to make sure that the file is always OPEN in SHARED mode at the beginning of the program, and no function would try to open the file in EXCLUSIVE mode.
I also installed the SMB2 patch from Alaska on all computers, Windows 7, Windows 8, Windows 10.