COMENTARIOS:
por Anónimo | 10/4/2006 11:45:49 PM
RE: ORA-01861
Este problema se presenta cuando se realizan conversiones de fecha a cadena, de cadena a fecha o bien si sele quiere dar un formato específico a una salida.
Revise sus conversiones de formato, esta las puede localizar en funciones tales como TO_DATE(), TO_CHAR().
Ejemplo: Expresión con error --> TO_DATE(TO_CHAR(SYSDATE,'YYYYMM'))
Expresión sin error --> TO_DATE(TO_CHAR(SYSDATE,'YYYYMM'),'YYYYMM')
por Isabellucios | 10/28/2008 7:46:40 AM
RE: ORA-01861
no se si son los campos fecha o que
por QUIERO SOLUCION | 10/6/2009 8:16:05 AM
RE: ORA-01861
RUBEN CANALES
SOY DE LA MUNICIPLIDAD DISTRITAL DE SAN PEDRO LUCANAS
ESTOY INTENTANDO LANZAR UNA CONVOCATORIA EN EL SEACE Y EL ERROR Q SALE AL MOMENTO DE GUARDAR EL BORRADOR ES EL SGTE: Error al insertar calendarioORA-01861: literal does not match format string
POR FAVOR CORREGIRLO EN EL SISTEMA DEL SEACE
por fernigan | 1/13/2010 8:21:44 AM
RE: ORA-01861
Para RUBEN CANALES,
tio, eres un campeón!!! juaaaa jua jua jaaaaaaaa, ja ja jajaaaaaaaa.
Que buenoo!!! hacía dias que no me reía tanto!
Eres el number one the el san Pedro Lucanas, pero fijo! Madre mía que artista!
por JOrge | 3/18/2010 11:09:44 AM
RE: ORA-01861
Una duda, ¿las conversiones implícitas también pueden generar este error?
Verán cuando corro mi query, incluso mi stored procedure desde sqlplus o sqldeveloper no me marca error. Sin embargo al correr el query desde un shell el error se presenta:
BEGIN prc_est07(:vr_est, :vr_fecha, :vr_cia, '7', :vr_niv_sup); END;
*
ERROR at line 1:
ORA-01861: literal does not match format string
ORA-06512: at "ADMCATEMPL.PRC_EST07_A", line 65
ORA-06512: at "ADMCATEMPL.PRC_EST07", line 55
ORA-06512: at line 1
Y sospecho que el problema se da por esta línea en el WHERE:
AND NVL(A.EFFDT,'01011900') = NVL((SELECT MAX(D_CC.EFFDT)
FROM INR_CENCOST_TBL D_CC
WHERE D_CC.GL_EXPENSE = A.GL_EXPENSE
AND D_CC.EFF_STATUS = A.EFF_STATUS
),'01011900'
)
lo que hice fue cambiar el valor de ambos NVL con un TO_DATE y haciendo explícita la literal de transformación:
AND NVL(A.EFFDT,TO_DATE('01/01/1900','DD/MM/YYYY')) = NVL((SELECT MAX(D_CC.EFFDT)
FROM INR_CENCOST_TBL D_CC
WHERE D_CC.GL_EXPENSE = A.GL_EXPENSE
AND D_CC.EFF_STATUS = A.EFF_STATUS
),TO_DATE('01/01/1900','DD/MM/YYYY')
)
Quisiera tener la certeza de que esto solucionará el problema ya que carezco de entorno de prueba y mis cambios se están yendo con su respectiva bendición a producción jaja