ORA 00054´íÎó OracleÊý¾Ý¿âµÄËø²Î¿¼×ÊÁÏ
½â¾ö·½°¸£º
select session_id from v$locked_object; --Ê×Ïȵõ½±»Ëø¶ÔÏóµÄsession_id
SELECT sid, serial#, username, osuser from v$session where sid = session_id; --ͨ¹ýÉÏÃæµÃµ½µÄsession_idȥȡµÃv$sessionµÄsidºÍserial#£¬È»ºó¶Ô¸Ã½ø³Ì½øÐÐÖÕÖ¹¡£
ALTER SYSTEM KILL SESSION 'sid,serial';
example:
ALTER SYSTEM KILL SESSION '13, 8';
OracleÊý¾Ý¿âµÄËø
Êý¾Ý¿âÊÇÒ»¸ö¶àÓû§Ê¹ÓõĹ²Ïí×ÊÔ´¡£µ±¶à¸öÓû§²¢·¢µØ´æÈ¡Êý¾Ýʱ£¬ÔÚÊý¾Ý¿âÖоͻá²úÉú¶à¸öÊÂÎñͬʱ´æȡͬһÊý¾ÝµÄÇé¿ö¡£Èô¶Ô²¢·¢²Ù×÷²»¼Ó¿ØÖƾͿÉÄÜ»á¶ÁÈ¡ºÍ´æ´¢²»ÕýÈ·µÄÊý¾Ý£¬ÆÆ»µÊý¾Ý¿âµÄÒ»ÖÂÐÔ¡£
¼ÓËøÊÇʵÏÖÊý¾Ý¿â²¢·¢¿ØÖƵÄÒ»¸ö·Ç³£ÖØÒªµÄ¼¼Êõ¡£µ±ÊÂÎñÔÚ¶Ôij¸öÊý¾Ý¶ÔÏó½øÐвÙ×÷Ç°£¬ÏÈÏòϵͳ·¢³öÇëÇ󣬶ÔÆä¼ÓËø¡£¼ÓËøºóÊÂÎñ¾Í¶Ô¸ÃÊý¾Ý¶ÔÏóÓÐÁËÒ»¶¨µÄ¿ØÖÆ£¬ÔÚ¸ÃÊÂÎñÊÍ·ÅËø֮ǰ£¬ÆäËûµÄÊÂÎñ²»ÄܶԴËÊý¾Ý¶ÔÏó½øÐиüвÙ×÷¡£
ÔÚÊý¾Ý¿âÖÐÓÐÁ½ÖÖ»ù±¾µÄËøÀàÐÍ£ºÅÅËüËø£¨Exclusive Locks£¬¼´XËø£©ºÍ¹²ÏíËø£¨Share Locks£¬¼´SËø£©¡£µ±Êý¾Ý¶ÔÏó±»¼ÓÉÏÅÅËüËøʱ£¬ÆäËûµÄÊÂÎñ²»ÄܶÔËü¶ÁÈ¡ºÍÐ޸ġ£¼ÓÁ˹²ÏíËøµÄÊý¾Ý¶ÔÏó¿ÉÒÔ±»ÆäËûÊÂÎñ¶ÁÈ¡£¬µ«²»ÄÜÐ޸ġ£Êý¾Ý¿âÀûÓÃÕâÁ½ÖÖ»ù±¾µÄËøÀàÐÍÀ´¶ÔÊý¾Ý¿âµÄÊÂÎñ½øÐв¢·¢¿ØÖÆ¡£
OracleÊý¾Ý¿âµÄËøÀàÐÍ
¸ù¾Ý±£»¤µÄ¶ÔÏó²»Í¬£¬OracleÊý¾Ý¿âËø¿ÉÒÔ·ÖΪÒÔϼ¸´óÀࣺDMLËø£¨data locks£¬Êý¾ÝËø£©£¬ÓÃÓÚ±£»¤Êý¾ÝµÄÍêÕûÐÔ£»DDLËø£¨dictionary locks£¬×ÖµäËø£©£¬ÓÃÓÚ±£»¤Êý¾Ý¿â¶ÔÏóµÄ½á¹¹£¬Èç±í¡¢Ë÷ÒýµÈµÄ½á¹¹¶¨Ò壻ÄÚ²¿ËøºÍãÅ£¨internal locks and latches£©£¬±£»¤Êý¾Ý¿âµÄÄÚ²¿½á¹¹¡£
DMLËøµÄÄ¿µÄÔÚÓÚ±£Ö¤²¢·¢Çé¿öϵÄÊý¾ÝÍêÕûÐÔ£¬¡£ÔÚOracleÊý¾Ý¿âÖУ¬DMLËøÖ÷Òª°üÀ¨TMËøºÍTXËø£¬ÆäÖÐTMËø³ÆΪ±í¼¶Ëø£¬TXËø³ÆΪÊÂÎñËø»òÐм¶Ëø¡£
µ±Oracle Ö´ÐÐDMLÓï¾äʱ£¬ÏµÍ³×Ô¶¯ÔÚËùÒª²Ù×÷µÄ±íÉÏÉêÇëTMÀàÐ͵ÄËø¡£µ±TMËø»ñµÃºó£¬ÏµÍ³ÔÙ×Ô¶¯ÉêÇëTXÀàÐ͵ÄËø£¬²¢½«Êµ¼ÊËø¶¨µÄÊý¾ÝÐеÄËø±ê־λ½øÐÐÖÃλ¡£ÕâÑùÔÚÊÂÎñ¼ÓËøÇ°¼ì²éTXËøÏàÈÝÐÔʱ¾Í²»ÓÃÔÙÖðÐмì²éËø±êÖ¾£¬¶øÖ»Ðè¼ì²éTMËøģʽµÄÏàÈÝÐÔ¼´¿É£¬´ó´óÌá¸ßÁËϵͳµÄЧÂÊ¡£TMËø°üÀ¨ÁËSS¡¢SX¡¢S¡¢X µÈ¶àÖÖģʽ£¬ÔÚÊý¾Ý¿âÖÐÓÃ0£6À´±íʾ¡£²»Í¬µÄSQL²Ù×÷²úÉú²»Í¬ÀàÐ͵ÄTMËø¡£
ÔÚÊý¾ÝÐÐÉÏÖ»ÓÐXËø£¨ÅÅËûËø£©¡£ÔÚ OracleÊý¾Ý¿âÖУ¬µ±Ò»¸öÊÂÎñÊ״η¢ÆðÒ»¸öDMLÓï¾äʱ¾Í
Ïà¹ØÎĵµ£º
ÓÉÓÚ֮ǰѧϰoracleµÄʱºò±È½ÏËæÒ⣬¿´ÊéÒ²ÊDZȽÏÉÙÈ¥ÉîÈë˼¿¼ÔÀí£¬¶ø´ÓÇ°¼¸Ìì¾ö¶¨ÒªÖØÐÂȼÆðoracleµÄѧϰ¼¤Çéºó£¬ÎÒÓÖÖØеĴӻù´¡Ñ§Æ𣬴ËʱÎÒѧoracleµÄÐÄ̬Ҳ±ÈÒÔÇ°ºÃºÜ¶àÁË£¬ÏÖÔÚÊÇŬÁ¦µÄÒ»µãÒ»µãÈ¥¿ÐÁË£¬¼´Ê¹ºÜ»¨Ê±¼ä£¬µ«ÎÒÏëÕýÊÇͨ¹ý½ñÌìÎÒÕâÑùµÄÂñÍ·¿à¶Á²Å»á»»À´Óг¯Ò»ÈÕÔÚoracle·½ÃæµÄÖʵķÉÔ¾µÄ¡£
  ......
ORACLEʵÀýÓÐϵͳȫ¾ÖÇø£¨SGA£©ºÍһЩºǫ́½ø³Ì×é³É.
ϵͳȫ¾ÖÇø£¨SGA£©Óй²Ïí³Ø£¨shared pool£©,Êý¾Ý¿â¸ßËÙ»º³åÇø£¨database buffer cache£©,ÖØ×öÈÕÖ¾»º³åÇø£¨redo log buffer£©.¹²Ïí³ØÓÖÓпâ¸ßËÙ»º´æ£¨library cache£©ºÍÊý¾Ý×Öµä¸ßËÙ»º´æ£¨dictionary cache£©×é³É¡£
ORACLE ʵÀý5¸ö±ØÐèµÄºǫ́½ø³Ì£ºSMON,PMON,DBWR,LGWR, ......
Ò»£¬Ó²¼þÅäÖÃ×îµÍÒªÇó£º
32루X86£©£º
¸öÈËÈÏΪÖÁÉÙ1GÄڴ棨linux ÉÏ512M ¿ÉÒÔ£¬µ«Ì«¹ýÓÚÃãÇ¿ÁË£¬ÄÇÑùÈÝÒ×ËÀ»ú»ò¿¨×¡²»¶¯£¬»áÈÃÈË×¥¿ñµÄ;
windows 512M µÄ¿Ï¶¨²»ÐУ©
10GµÄ¿ÉÓô ......
http://blog.csdn.net/flysyq/archive/2009/02/26/3939877.aspx
Oracle ¸ÅÄOracle 10.2£©
9¡¢½ø³Ì½á¹¹
ÕâÒ»ÕÂÂÛÊöÁËOracleÊý¾Ý¿âϵͳµÄ½ø³ÌºÍOracleϵͳµÄ¿ÉÓõIJ»Í¬ÅäÖá£
ÕâÒ»Õ°üº¬ÏÂÁÐÖ÷Ì⣺
u ½ø³Ì½éÉÜ
u Óû§½ø³Ì¸ÅÊö
u Oracle½ø³Ì¸ÅÊö
u ¹²Ïí·þÎñÆ÷¼Ü¹¹
u רÓ÷þÎñÆ÷ÅäÖÃ
u ³ÌÐò½Ó¿Ú
½ø³Ì½éÉÜ
ËùÓÐÁ¬ ......
µÚÒ»Õ£ºÈÕÖ¾¹ÜÀí
1.forcing log switches
sql> alter system switch logfile;
2.forcing checkpoints
sql> alter system checkpoint;
3.adding online redo log groups
sql> alter database add logfile [group 4]
sql> ('/disk3/log4a.rdo','/disk4/lo ......