Autor Tema: falla en alter table modify  (Leído 1371 veces)

0 Usuarios y 1 Visitante están viendo este tema.

asmail

  • General Guarani
  • *
  • Mensajes: 1133
    • MSN Messenger - anacsmayl@hotmail.com
    • Ver Perfil
    • Email
  • Institución: UNNOBA
  • Nombre y apellido: Ana Smail
  • Sistema: SIU-GUARANI
  • Teléfono laboral: 02362-444213
falla en alter table modify
« on: Marzo 18, 2010, 10:11:06 am »
Hola a todos!
Estoy queriendo modificar el tipo de campo de una tabla de una personalización y me tira el error ISAM-106, que requiere bloqueo exclusivo. No consigo ver en el syslocks quién la está bloqueando, cómo puedo hacer?
Gracias por su tiempo

Emilio Luque

  • Moderador Global
  • *****
  • Mensajes: 1479
    • Ver Perfil
    • Email
  • Institución: SIU
  • Nombre y apellido: Emilio Luque
  • Sistema: guarani
  • Teléfono laboral: 435955
Re: falla en alter table modify
« Respuesta #1 on: Marzo 18, 2010, 12:05:09 pm »
Hola Ana

Fijate esto

http://informix-technology.blogspot.com/2006/10/when-exclusive-is-not-really-exclusive.html

la solucion que propone es

SET LOCK MODE TO WAIT;
BEGIN WORK;
LOCK TABLE IN EXCLUSIVE MODE;
-- dummy grant to prevent new sessions from getting holds on the table structure
GRANT SELECT ON FOR dummy_user;
-- before continuing use onstat -g opn to identify the sessions with references
-- and kill them...
ALTER TABLE ;
-- clean up the dummy GRANT
REVOKE SELECT ON FROM dummy_user;
COMMIT WORK;


fijate si funciona

Emilio

asmail

  • General Guarani
  • *
  • Mensajes: 1133
    • MSN Messenger - anacsmayl@hotmail.com
    • Ver Perfil
    • Email
  • Institución: UNNOBA
  • Nombre y apellido: Ana Smail
  • Sistema: SIU-GUARANI
  • Teléfono laboral: 02362-444213
Re: falla en alter table modify
« Respuesta #2 on: Marzo 18, 2010, 01:24:48 pm »
Es lo que prové pero no bloquea en forma exclusiva. No funciona.