oracle job½â¾öÎÊÌâ»ã×Ü
Ò»¡£jobµÄÔËÐÐƵÂÊÉèÖÃ
1.ÿÌì¹Ì¶¨Ê±¼äÔËÐУ¬±ÈÈçÔçÉÏ8:10·ÖÖÓ£ºTrunc(Sysdate+1) + (8*60+10)/24*60
2.ToadÖÐÌṩµÄ£º
ÿÌ죺trunc(sysdate+1)
ÿÖÜ£ºtrunc(sysdate+7)
ÿÔ£ºtrunc(sysdate+30)
ÿ¸öÐÇÆÚÈÕ£ºnext_day(trunc(sysdate),'SUNDAY')
ÿÌì6µã£ºtrunc(sysdate+1)+6/24
°ë¸öСʱ£ºsysdate+30/1440
3.ÿ¸öСʱµÄµÚ15·ÖÖÓÔËÐУ¬±ÈÈ磺8:15£¬9:15£¬10:15...£ºtrunc(sysdate,'hh')+75/1440¡£ÔÏÈÎÒÉèÖõÄÊÇtrunc(sysdate,'hh')+15/1440£¬·¢ÏÖ¾ÓÈ»²»ÐС£
¶þ¡£JOBΪʲô²»ÔËÐУ¿
1.ÏÈÀ´Á˽âÒ»ÏÂJOBµÄ²ÎÊý˵Ã÷£ºÓëjobÏà¹ØµÄ²ÎÊýÒ»¸öÊÇjob_queue_processes£¬Õâ¸öÊÇÔËÐÐJOBʱºòËùÆðµÄ½ø³ÌÊý£¬µ±È»ÏµÍ³ÀïÃæJOB´óÓÚÕâ¸öÊýÖµºó£¬¾Í»áÓÐÅŶӵȺòµÄ£¬×îСֵÊÇ0£¬±íʾ²»ÔËÐÐJOB£¬×î´óÖµÊÇ36£¬ÔÚOSÉ϶ÔÓ¦µÄ½ø³ÌʱSNPn£¬9iÒÔºóOSÉϹÜÀíJOBµÄ½ø³Ì½ÐCJQn¡£¿ÉÒÔʹÓÃÏÂÃæÕâ¸öSQLÈ·¶¨Ä¿Ç°Óм¸¸öSNP/CJQÔÚÔËÐС£
select * from v$bgprocess£¬Õâ¸öpaddr²»Îª¿ÕµÄsnp/cjq½ø³Ì¾ÍÊÇÄ¿Ç°¿ÕÏеĽø³Ì£¬ÓеıíʾÕýÔÚ¹¤×÷µÄ½ø³Ì¡£
ÁíÍâÒ»¸öÊÇjob_queue_interval£¬·¶Î§ÔÚ1--3600Ö®¼ä£¬µ¥Î»ÊÇÃ룬Õâ¸öÊÇ»½ÐÑJOBµÄprocess£¬ÒòΪÿ´ÎsnpÔËÐÐÍêËû¾ÍÐÝÏ¢ÁË£¬ÐèÒª¶¨ÆÚ»½ÐÑËû£¬Õâ¸öÖµ²»ÄÜ̫С£¬Ì«Ð¡»áÓ°ÏìÊý¾Ý¿âµÄÐÔÄÜ¡£
2.Õï¶Ï£ºÏÈÈ·¶¨ÉÏÃæÕâÁ½¸ö²ÎÊýÉèÖÃÊÇ·ñÕýÈ·£¬ÕýÈ·Á˼ÌÐøÏòÏÂ
3.ʹÓÃÏÂÃæµÄSQL²ì¿´JOBµÄµÄbroken,last_dateºÍnext_date£¬last_dateÊÇÖ¸×î½üÒ»´ÎjobÔËÐгɹ¦µÄʱ¼ä£¬next_dateÊǸù¾ÝÉèÖõÄƵÂʼÆËãµÄÏ´ÎÖ´ÐÐʱ¼ä£¬¸ù¾ÝÕâ¸öÐÅÏ¢¾Í¿ÉÒÔÅжÏJOBÉÏ´ÎÊÇ·ñÕý³££¬»¹¿ÉÒÔÅжÏÏ´εÄʱ¼ä¶Ô²»¶Ô
select * from dba_jobs
ÓÐʱºòÎÒÃÇ·¢ÏÖËûµÄnext_dateÊÇ4000Äê1ÔÂ1ÈÕ£¬ËµÃ÷jobÒª²»¾ÍÊÇÔÚrunning£¬Òª²»¾ÍÊÇbreak(broken=Y)£¬Èç¹û»¹ÔÚrunning,¿ÉÒÔ¼ÌÐøÏòÏ£¬Èç¹ûÊÇbroken£¬×îºÃºÍµ±ÊÂÈËÁ˽âһϣ¬È·¶¨²»ÄÜbroken£¬ÄǾͰÑbrokenÖµÐ޸ijÉN£¬SQLÈçÏ£º
declare
BEGIN
DBMS_JOB.BROKEN(<JOB_ID>,FALSE);
END;
4.ʹÓÃÏÂÃæµÄSQL²éѯÊÇ·ñJOB»¹ÔÚRunning
select * from dba_jobs_running
µ±È»£¬Èç¹û²»Ó¦¸ÃrunÄÇô¾ÃµÄ»°£¬¾ÍÒª²éÔÒòÁË£¬Ò»°ãµÄJOB runningʱ»áËø¶¨Ïà¹ØµÄÏà¹ØµÄ×ÊÔ´£¬¿ÉÒԲ鿴һÏÂv$accessºÍv$locked_objectÕâÁ½¸öview£¬Èç¹û·¢ÏÖÆäËû½ø³ÌËø¶¨ÁËÓëJOBÏà¹ØµÄObject£¬ÄÇô¾ÍÒª°ÑÆäËû½ø³Ìɾ³ý£¬ÓбØÒªµÄ»°£¬°ÑJOBµÄ½ø³ÌҲɾ³ý£¬ÔÙÖØÐÂÅÜ¡£
5.Èç¹ûÉÏÃ涼Õý³££¬µ«ÊÇJOB»¹²»run£¬Ôõô°ì£¿ÄÇÎÒÃÇÒª¿¼ÂÇ°ÑJOB½ø³ÌÖØÆôÒ»´Î£¬·ÀÖ¹ÊÇSNP½ø³ÌËÀÁ
Ïà¹ØÎĵµ£º
ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆ𣬾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......
Êý¾Ý¿â²éѯÖÐÄÑÃâ»áÓöµ½ÐÐÁÐת»»µÄÇé¿ö£¬ÕªÁÐһЩ½Ï¾«µäµÄ½â¾ö·½°¸
--####################################################################
Ò»¡¢²ÉÓÃSQL decodeºÍPL/SQLº¯ÊýʵÏÖ
--####################################################################
1¡¢¹Ì¶¨ÁÐÊýµÄÐÐÁÐת»»
Èç
student subject grade
------ ......
ÁÙʱ±íµÄ¸ÅÄ
ÔÚOracleÊý¾Ý¿âÖл¹ÓÐÒ»ÖÖÀàÐÍµÄ±í£¬½Ð×öÁÙʱ±í¡£Õâ¸öÁÙʱ±í¸úÓÀ¾Ã±í×î´óµÄÇø±ð¾ÍÊDZíÖеÄÊý¾Ý²»»áÓÀÔ¶µÄ´æÔÚ¡£µ±Ò»¸ö»á»°½áÊø»òÕßÊÂÎñ½áÊøµÄʱºò£¬Õâ¸öÁÙʱ±íÖеÄÊý¾Ý£¬²»ÓÃÓû§×Ô¼ºÉ¾³ý£¬Êý¾Ý¿â×Ô¼º»á×Ô¶¯Çå³ý¡££¨±íÊÇÈ«¾Ö£¬Ö»ÊÇÊý¾ÝÏûʧ£©
O ......
Èí¼þ: VMware Workstation 6.0.2 build-59824
10201_database_linux32.zip
rhel.5.0.server.centoschina.com.dvd.iso
Îĵµ:ORACLE10G¹Ù·½°²×°Îĵµ B19306_01_Oracle10gR2.chm
²Î¿¼:Öܾ¼ÀÏʦµÄORACLE10G OCPÊÓƵ(½²µÄÕæµÄ ......
OracleÌåϵ½á¹¹£ºÄÚ´æ½á¹¹ºÍ½ø³Ì½á¹¹
2009-11-24 21:48
¡¡£¨Ò»£©ÄÚ´æ½á¹¹ºÍ½ø³Ì½á¹¹ OracleÊý¾Ý¿âµÄ×ÜÌå½á¹¹ÈçÏÂͼ£º
1£ºOracleʵÀý£¨Instance£©
ÔÚÒ»¸ö·þÎñÆ÷ÖУ¬Ã¿Ò»¸öÔËÐеÄOracleÊý¾Ý¿â¶¼ÓëÒ»¸öÊý¾Ý¿âʵÀýÏàÁªÏµ£¬ÊµÀýÊÇÎÒÃÇ
·ÃÎÊÊý¾Ý¿âµÄÊֶΡ£
......