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
Ïà¹ØÎĵµ£º
´Óoracle8µ½oracle10£¬JDBCĿ¼ÏµÄÇý¶¯°ü¶¼¸÷Óв»Í¬¡£¿´ÁËÒ»ÏÂoracleµÄÎĵµËµÃ÷£¬Á˽âÁËÒ»ÏÂËüÃǵÄÓÃ;£¬ÏàÐÅ´ó¼ÒÓÐʱºòÒ²ºÜÃÔ»ó£¬Ð´³öÀ´¹²Ïíһϡ£
ÕâЩÊÇoracle10gϵÄÇý¶¯°üµÄÃû³ÆºÍËüÃǵÄ×÷Óã¬ÆäËû°æ±¾µÄoracle»ù±¾ÀàËÆ¡£
Ö§³ÖËùÓÐƽ̨µÄJDBC ThinÇý¶¯
classes12.jar (1,417,089 bytes) - JDK 1.2 ºÍ JDK 1.3ÏÂÊ¹Ó ......
1¡¢Í¨¹ýToad½«Êý¾Ý¿É½á¹¹Éú³ÉSQL£¨×¢ÒâÓû§£©¡£
[DataBase] [Export] [GenerateSchmaScript]
2¡¢´´½¨DBLink.
DROP PUBLIC DATABASE LINK "ROOT.US.ORACLE.COM";
CREATE PUBLIC DATABASE LINK "ROOT.US.ORACLE.COM"
&nb ......
ÓÐʱºòÍøÂç·¢Éú±ä¶¯£¬±ØÐëÊÖ¶¯ÐÞ¸ÄÒ»ÏÂRAC VIPµØÖ·£¬²»½öÊǵØÖ·£¬Ò²¿ÉÒÔÐÞ¸ÄVIPËùÔÚµÄÍø¿¨£¬ÔÔòÊÇVIPµØÖ·ÒªºÍPUBµØÖ·ÔÚͬһ¸öÍø¶ÎÄÚ£¬·½·¨ÆäʵÊDZȽϼòµ¥µÄ£¬ÓÐÈËÎʵ½£¬ÎÒ¸øÒ»¸öʾÀýÈçÏ£º
1¡¢¹Ø±ÕÊý¾Ý¿â
srvctl stop database -d db
2¡¢¹Ø±ÕNOTEAPPA
srvctl stop nodeapps -n db2
à ......
select t.OSUSER,t.STATUS,t.LOGON_TIME from v$session t
select t.OSUSER,t.STATUS,t.LOGON_TIME from v$session t where t.OSUSER='admin'
select t.OSUSER,t.STATUS,t.LOGON_TIME from v$session t where t.OSUSER='liuzhaoqing'
select t.OSUSER,t.STATUS,t.LOGON_TIME from v$session t where t.OSUSER='ymx'
sel ......