La aplicación se bloquea

forum.advanced.programming (1998-2005)
David

La aplicación se bloquea

Post by David » 07 Feb 2005, 11:38

 Posted by:  David 

Hola a todos,

Tengo Centura 1.5 atacando a sql base 7.0. El problema es que cuando atacan
varios usuarios a la misma tabla, una de las aplicaciones se me queda
colgada, aparentemente estan puestos bien los commit.
¿Se os ocurre algo por lo que pueda pasar esto?

Gracias

Tony

Re: La aplicación se bloquea

Post by Tony » 07 Feb 2005, 12:55

 Posted by:  Tony 

I do not understand your language, but most propably it has sth to do with
locking. Sth that might help is:
Set SqlIsolationLevel='RL'

David

Re: La aplicación se bloquea

Post by David » 07 Feb 2005, 13:40

 Posted by:  David 

Thanks Tony,

I am spanish, i don`t know speack English very well, my application is
blocked when 2 users attack to the same table.
Excuse my language.

Mirko
Italy
Posts: 1298
Joined: 04 Apr 2017, 08:56
Location: Geneva

Re: La aplicación se bloquea

Post by Mirko » 07 Feb 2005, 14:07

 Posted by:  Mirko BONANNO 

Hi David
What isolation level do you use in your application (RR, RO, RL, CS) ?
The default is RR and this will block indeed other user traing to select
records from the same page !!!
Change it to RL (SqlSetIsolationLevel) and read books about this subject !!!
NB Please do not post into multiple forums !!!

Ciao
Mirko

David

Re: La aplicación se bloquea

Post by David » 07 Feb 2005, 16:11

 Posted by:  David 

Thanks very much Mirko.

Anton Lwow

Re: La aplicación se bloquea

Post by Anton Lwow » 08 Feb 2005, 08:49

 Posted by:  Anton Lwow 

Hola, David.

Prueba establecer el nivel de isolacion "RL" (la funcion SqlSetIsolation() )

El consejo: escribe tus preguntas en ingles, entonces te contestaran mas.

Anton

Alberto Aviles

Re: La aplicación se bloquea

Post by Alberto Aviles » 08 Feb 2005, 18:50

 Posted by:  Alberto Aviles 

en lo particular , para no estar configurando cada coneccion toma este
codigo, en algunas ocasiones, no sabemos por que, de repente la base no toma
los parametros, to tenia ese problema con la base 7 asi que hicimos esta
funcion, y cambiamos todos los SqlConnect. asi siempre tengo la misma
configuracion en la coneccion a la base

Code: Select all

Function: ConectaDB
 Description: Hace las conecciones de los hanler's con las debidas
parametrizaciones
 Returns
 Parameters
  Receive Sql Handle: hSql
 Static Variables
 Local variables
  String: sString
 Actions
  Call SalWaitCursor( TRUE )
  Set bOk = FALSE
  If SqlConnect(hSql)
   Call SqlSetResultSet( hSql, TRUE )
   Call SqlSetIsolationLevel( hSql, 'RL' )
   Call SqlSetParameter( hSql, DBP_PRESERVE , TRUE, '' )
   Call SqlSetParameter( hSql, DBP_AUTOCOMMIT , FALSE, sString )
   Call SqlSetParameter( hSql, DBP_ROLLBACKONTIMEOUT , FALSE, '' )
   Call SqlSetLockTimeout( hSql, 60 )
   Set bOk = TRUE
  Else
   Call SalMessageBox( 'No es posible conectar con la base de Datos',
'HANDLER', MB_IconStop )
   Set bOk = FALSE
  Call SalWaitCursor( FALSE)
  Return bOk

Juan Manuel

Re: La aplicación se bloquea

Post by Juan Manuel » 08 Feb 2005, 18:50

 Posted by:  Juan Manuel 

Fijate como estan seteados los Issolation Levels de los cursores. Asegurate
que esten en RR.

Krister Henningsson

Re: La aplicación se bloquea

Post by Krister Henningsson » 09 Feb 2005, 08:41

 Posted by:  Krister Henningsson 

God morgon/dag/natt - stryk det som ej önskas
Ja tack så mycket då för din utförliga information. Det vore kul om du
kunde
förmedla din utomordentligt intresanta rapparkalja på engelska och inte på
spanska vilket inte så många förstår här.

hajar du klyket?

in short: english is the official language here

David

Re: La aplicación se bloquea

Post by David » 09 Feb 2005, 11:19

 Posted by:  David 

Gracias Juan Manuel, ya he cambiado ese parametro y despues de una serie de
pruebas tiene muy buena pinta,
gracias de nuevo.

Eduardo

Re: La aplicación se bloquea

Post by Eduardo » 13 Feb 2005, 16:43

 Posted by:  Eduardo 

Yo si entiendo tu lenguaje, y lo planteado por Tony es correcto seguramente
que esta haciendo falta el Nivel de Aislamiento antes de conectar los
cursores.

Set SqlIsolationLevel='RL'
Call SqlConnect....

Saludos.
Eduardo.

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 1 guest