| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Stranger
Even stranger..watch this...
SQL> select to_char(sysdate, 'HH24:MI') from dual;
TO_CH
2. now run this
SQL> UPDATE METRIC_TIMES
2 SET last_run = TRUNC(SYSDATE)
3 WHERE met_id = 'def_dummy_softalert'
4 AND TO_DATE('12:22', 'HH24:MI') <= TO_DATE
3. ok now rerun the first one
SQL> select to_char(sysdate, 'HH24:MI') from dual; select to_char(sysdate, 'HH24:MI') from dual
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [], [], [], [], [],
[], [], []
4. Want to fix it, just run this
SQL> select to_char(sysdate, 'MON-DD-RR') from dual;
TO_CHAR(S
SQL> select to_char(sysdate, 'HH24:MI') from dual;
TO_CH
6. and the corrected sql statement that causes this whole mess is
UPDATE METRIC_TIMES
SET last_run = TRUNC(SYSDATE)
WHERE met_id = 'def_dummy_softalert'
AND TO_DATE('12:22', 'HH24:MI') <= TO_DATE(TO_CHAR
(sysdate, 'HH24:MI'), 'HH24:MI');
Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com
Received on Thu Jul 20 2000 - 00:00:00 CDT
![]() |
![]() |