Oracle JOB¼ä¸ôʱ¼äÏê½â
Oracle JOB ¼ä¸ôʱ¼äÏê½â
INTERVAL²ÎÊýÉèÖãº
ÿÌìÔËÐÐÒ»´Î 'SYSDATE + 1'
ÿСʱÔËÐÐÒ»´Î 'SYSDATE + 1/24'
ÿ10·ÖÖÓÔËÐÐÒ»´Î 'SYSDATE + 10/£¨60*24£©'
ÿ30ÃëÔËÐÐÒ»´Î 'SYSDATE + 30/(60*24*60)'
ÿ¸ôÒ»ÐÇÆÚÔËÐÐÒ»´Î 'SYSDATE + 7'
ÿ¸öÔÂ×îºóÒ»ÌìÔËÐÐÒ»´Î 'TRUNC(LAST_DAY(ADD_MONTHS(SYSDATE,1))) + 23/24'
ÿÄê1ÔÂ1ºÅÁãʱ 'TRUNC(LAST_DAY(TO_DATE(EXTRACT(YEAR from SYSDATE)||'12'||'01','YYYY-MM-DD'))+1)'
ÿÌìÎçÒ¹12µã 'TRUNC(SYSDATE + 1)'
ÿÌìÔçÉÏ8µã30·Ö 'TRUNC(SYSDATE + 1) + (8*60+30)/(24*60)'
ÿÐÇÆÚ¶þÖÐÎç12µã 'NEXT_DAY(TRUNC(SYSDATE ), ''TUESDAY'' ) + 12/24'
ÿ¸öÔµÚÒ»ÌìµÄÎçÒ¹12µã 'TRUNC(LAST_DAY(SYSDATE ) + 1)'
ÿ¸öÔÂ×îºóÒ»ÌìµÄ23µã 'TRUNC (LAST_DAY (SYSDATE)) + 23 / 24'
ÿ¸ö¼¾¶È×îºóÒ»ÌìµÄÍíÉÏ11µã 'TRUNC(ADD_MONTHS(SYSDATE + 2/24, 3 ), 'Q' ) -1/24'
ÿÐÇÆÚÁùºÍÈÕÔçÉÏ6µã10·Ö 'TRUNC(LEAST(NEXT_DAY(SYSDATE, ''S
Ïà¹ØÎĵµ£º
СÐÍ»ú·Ïߣ¬¼¸ºõÒѱ»·âËÀ¡£ÎÞ·¨Ê¹ÓÃSun£¬ËüÒѺÍOracle½ôÃܰ󶨣¬Èô»¹Ê¹ÓÃÉÏÊöÉè¼Æ£¬»áºÜÄÑ˵·þÊÛǰ½«Ð¡ÐÍ»ú¡¢´æ´¢¡¢Êý¾Ý¿â·Ö±ð´Ó²»Í¬³§É̲ɹº£»ÁíÍ⣬ÒàÎÞ·¨Ê¹ÓÃIBM£¬¾Ý˵FLYµÄij¸öÀϰ岻ϲ»¶¡£ ´óÁ¦ÍƽøÊý¾Ý¿âϵͳPC»¯£¬ÕâËÆºõÊÇ×î¼Ñ²ßÂÔ¡£FLYÓ¦ÓöÔÊý¾Ý ......
ORACLEÈÕÆÚʱ¼äº¯Êý´óÈ«
TO_DATE¸ñʽ(ÒÔʱ¼ä:2007-11-02 13:45:25ΪÀý)
Year:
yy two digits Á½Î»Äê   ......
ÓÐʱºòÍøÂç·¢Éú±ä¶¯£¬±ØÐëÊÖ¶¯ÐÞ¸ÄÒ»ÏÂRAC VIPµØÖ·£¬²»½öÊǵØÖ·£¬Ò²¿ÉÒÔÐÞ¸ÄVIPËùÔÚµÄÍø¿¨£¬ÔÔòÊÇVIPµØÖ·ÒªºÍPUBµØÖ·ÔÚͬһ¸öÍø¶ÎÄÚ£¬·½·¨ÆäʵÊDZȽϼòµ¥µÄ£¬ÓÐÈËÎʵ½£¬ÎÒ¸øÒ»¸öʾÀýÈçÏ£º
1¡¢¹Ø±ÕÊý¾Ý¿â
srvctl stop database -d db
2¡¢¹Ø±ÕNOTEAPPA
srvctl stop nodeapps -n db2
à ......
OracleÖÐto_date()Óë24Ð¡Ê±ÖÆ±íʾ·¨¼°mm·ÖÖÓµÄÏÔʾ£º
ÔÚʹÓÃOracleµÄto_dateº¯ÊýÀ´×öÈÕÆÚת»»Ê±£¬ºÜ¶àJava³ÌÐòÔ±Ò²Ðí»áºÍÎÒÒ»Ñù£¬Ö±¾õµÄ²ÉÓÓyyyy-MM-dd HH:mm:ss”µÄ¸ñʽ
×÷Ϊ¸ñʽ½øÐÐת»»£¬µ«ÊÇÔÚOracleÖлáÒýÆð´íÎ󣺓ORA 01810 ¸ñʽ´úÂë³öÏÖÁ½´Î”¡£È磺
to_date('2005-01-01 13:14:20 ......