oracle Êý¾Ýͬ²½¸´ÖƹÊÕϽâ¾ö
¹ÊÕϽâ¾ö£ºoracle10g Êý¾Ý¿â¸´ÖÆͬ²½
ºÇºÇ¡£oracleÎÒÊǸö²ËÄñ£¬Ã»»¨¹¦·òÑо¿Ëü£¬µ«ÎÒ»¹ÊǼæÈÎdba£¬Ä¿Ç°oracleÈ«²¿ÊÇÓÉÒÔÇ°µÄdba´´½¨µÄ£¬oracleȷʵºÃ¡£»ù±¾Ã»Óгö¹ýÎÊÌ⣬ÎÒÒ²¾Í»ù±¾²»¹ÜËüÁË£¬¿ÉÊÇÓÉÓÚ×Ô¼º´ÖÐÄ´óÒ⣬ÔÚÒ»´ÎÐ޸ķþÎñÆ÷µØַʱºò£¬Êý¾Ý¿âÀïµÄtns...Õâ¸öÅäÖÃÎļþÍüÁËÐ޸ģ¬½á¹ûµ¼ÖÂͬ²½Ê§°Ü£¬µÈÎÒ·¢ÏÖµÄʱºò£¬·¢ÏÖÒѾʧЧ£¬½á¹ûÎÒ»¨ÁË2Ììʱ¼ä£¬²ÅµÃÒÔ½â¾ö¡£¡£¡£
ÏÈ˵˵ÎÊÌâµÄ·¢ÏÖ
ÎÒÓÐ2̨·þÎñÆ÷£¬·Ö±ð·ÅÖÃÓÚ²»Í¬»ú·¿£¬ÏµÍ³¶¼Îªlinux£¬Êý¾Ý¿â¶¼Îªoracle10g£¬Á©Ì¨Êý¾Ý¿âÖ®¼ä¶¨Ê±Í¬²½Êý¾Ý£¬ÓÐÒ»´ÎÎÒ¸ü¸ÄÁËһ̨·þÎñÆ÷µØÖ·£¬ºóÀ´·¢ÏÖoracleͬ²½³öÏÖ¹ÊÕÏ£¬¹ÊÕÏΪbroken µÄֵΪY£¬FAILURES=16,¾¹ýgoogle £¬ËµÊÇbroken =Y£¬FAILURES=16¾ÍÊDZíʾ´Ëjob ʧЧ£¬¾ÍÊDz»ÔÙÖ´ÐС£
¹ÊÕϽâ¾ö£º
¾¹ýÁËÎÞÊý´ÎµÄgoogle¡£¡£¡£¡£¡£ÎÒ½â¾ö¹ý³ÌÈçÏ£º
Ê×ÏÈÓÃoracleÕʺŵǽ½øÊý¾Ý¿â
sqlplus / as sysdba
È»ºó²éѯdba_jobsÇé¿ö
select job,next_date,next_sec,failures,broken from dba_jobs;
ÓÚÊÇÎÒÔËÐÐ
execute dbms.job.run(ÕâÀïÊÇÍ£Ö¹Á˵Äjob-idºÅ)
·¢ÏÖÎÞ·¨ÔËÐС£
Õâʱ·¢ÏÖfailures Ϊ16 £¬ broken Ϊ Y
¾¹ýgoogle£¬jobÈç¹ûÓÉÓÚijÖÖÔÒòδÄܳɹ¦Ö®ÐУ¬oracle½«ÖØÊÔ16´Îºó£¬»¹Î´Äܳɹ¦Ö´ÐУ¬½«±»±ê¼ÇbrokenΪY£¨ËµÃ÷´Ë¹¤×÷½«±ê¼ÇΪÆÆ£¬¶øFLASE˵Ã÷´Ë¹¤×÷½«±ê¼ÇΪδÆÆ£©
ÏÖÔÚ¿´À´Õâ¸öjobΪÆÆÁË£¬ÄǾÍÏȽ«Ëü¸ÄΪδÆÆ
execute dbms.job_broken(idºÅ£¬false,next_date);
˵Ã÷һϣº
idºÅ£ºÊÇÍ£Ö¹ÁËjobËù±êʾµÄΨһºÅ
false£º±íʾ½«broken ÉèÖÃΪfalse,Òâ˼¾ÍÊÇδÆÆÀ²
next_date:±íʾÏÂÒ»´Î´ËjobÔËÐеÄʱ¼ä¡£
ÔËÐÐÒÔÉÏÃüÁîºó£¬·¢ÏÖÌáʾһÏ£º
Ìáʾ´íÎóÈçÏ£º
ORA-23421: job number 109 is not a job in the job queue
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_IJOB", line 529
ORA-06512: at "SYS.DBMS_JOB", line 258
ORA-06512: at line 2
ͨ¹ý²éѯ£¬²ÅÃ÷°×£¬Èç¹ûÄãÊÇÒÔsysµÇ¼Êý¾Ý¿âµÄ»°£¬Èç¹ûÔËÐÐÆäËûÓû§µÄjob£¬±ØÐëʹÓÃSYS.DBMS_IJOB£¬Èç¹ûÊǵ±Ç°Óû§µÇ¼ÔËÐе±Ç°Óû§µÄjob£¬¾ÍÓÃSYS.DBMS_JOB£¬ÕâÎÒ²ÅÃ÷°×¡£ÖØÐÂÊäÈëÉÏÊö´úÂ룺£º
execute sys.dbms_ijob.broken(idºÅ£¬false,next_date);
ÊäÈëºóÍê³É£¬ÏÔʾ³É¹¦
È»ºóÌá½» commit;
ÕâʱÔÚ²éѯjob±íµÄbroken£¬·¢ÏÖÄǸöΪÆƵÄjob£¬ÏÖÔÚÒÔ¸ÄΪδÆÆ N¡£
½ÓÏÂÀ´ÔÚÔËÐÐexecute dbms_ijob.run£¨id£©
·¢ÏÖ×Ô¶¯Í£Ö¹£¬Ôڲ쿴ÓÖ·¢ÏÖbroken ÓÖ±äΪ
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
ʹÓÃCodeSmithÉú³ÉoracleÊý¾Ý¿â±íµÄʵÌå²ã(Model)
http://blog.csdn.net/dacong/archive/2009/01/27/3853663.aspx
×Ô¼ºÐ´µÄ£¬CodeSimthÖеÄÀý×Ó¶¼ÊÇmsSQL serverµÄ£¬ËùÒÔ×Ô¼ºÐ´Á˸öÖ§³ÖOracleÊý¾Ý¿â±íµÄ£¬²»Ò»¶¨ºÜÍêÉÆ£¬ÊÊÓþͺã¬Êý¾ÝÀàÐÍûÓÐÖÜÈ«¿¼ÂÇ£¬Ö»¿¼ÂÇÁ˳£ÓõÄһЩÀàÐÍ£¬Ôö¼ÓÁ˸ö±íÃû×ÖÊôÐÔ£¬²ÉÓõÄ.net2.0ÎÒ½á ......
²é¿´±»ËøµÄ±í
select p.spid,a.serial#,
c.object_name,b.session_id,b.oracle_username,b.os_user_name from
v$process p,v$session a, v$locked_object b,all_objects c
where p.addr=a.p ......
SVRMGR> select * from dba_jobs;
³õʼ»¯Ïà¹Ø²ÎÊýjob_queue_processes
alter system set job_queue_processes=39 scope=spfile;//×î´óÖµ²»Äܳ¬¹ý1000 ;job_queue_interval = 10 //µ÷¶È×÷ҵˢÐÂƵÂÊÃëΪµ¥Î»
DBA_JOBS describes all jobs in the database.
USER_JOBS describes all jobs owned by the c ......
½ñÌìÔÚÒ»±¾ÊéÉÏ¿´µ½µÄ£¬¸Ð¾õͦȫµÄ¡£Ó¡ÏóÖÐ×Ô¼ºÒѾ²»ÖªµÀ°Ù¶ÈÁ˶àÉÙ´ÎÕâ¸öÎÊÌ⣬½ñÌì¾Í¼ÇÏÂÀ´°É£¬·½±ãÒÔºó²éѯ¡£
Êý¾Ý¿âд½ø³ÌÔÚÒÔÏÂʼþÖ®Ò»·¢Éúʱ°ÑÊý¾Ý¿â¸ßËÙ»º³åÇøµÄÊý¾Ýдµ½Êý¾ÝÎļþÉÏ:
µ±Ô໺³åÇøµÄÊýÁ¿³¬¹ýÁËËùÉ趨µÄÏÞ¶î
µ±ËùÉ趨µÄʱ¼ä¼ä¸ôÒѵ½
µ±Óнø³ÌÐèÒªÊý¾Ý¿â¸ßËÙ»º³åÇøÈ´ÕÒ²»µ½¿ÕÏеĻº³åÇøʱ
µ±¼ì²éµ ......