Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÃORACLE½¨Á¢Êý¾Ý¿â£¨Ïê½â£©


Êý¾Ý¿â½á¹¹ºÍ¿Õ¼ä¹ÜÀí£¨Êý¾ÝÎļþ¡¢ÈÕÖ¾Îļþ¡¢±í¿Õ¼ä¡¢¶Î¡¢Ä£Ê½ºÍģʽ¶ÔÏó£©
   Ò»¸öORACLEÊý¾Ý¿âÊÇÊý¾ÝµÄ¼¯ºÏ,±»´¦Àí³ÉÒ»¸öµ¥Î»¡£Ò»¸öORACLEÊý¾Ý¿âÓÐÒ»¸öÎïÀí½á¹¹ºÍÒ»¸öÂß¼­½á¹¹¡£
   ORACLEÂß¼­Êý¾Ý¿â½á¹¹ÊÇÓû§ËùÉæ¼°µÄÊý¾Ý¿â½á¹¹¡£Ò»¸öORACLEÊý¾Ý¿âµÄÂß¼­½á¹¹ÓÉÏÂÁÐÒòËؾö¶¨:
      £®Ò»¸ö»ò¶à¸ö±í¿Õ¼ä£»
      £®Êý¾Ý¿âģʽ¶ÔÏ󣨼´±í¡¢ÊÓͼ¡¢Ë÷Òý¡¢¾Û¼¯¡¢ÐòÁС¢´æ´¢¹ý³Ì£©¡£
   ORACLE Âß¼­´æ´¢½á¹¹Èç±í¿Õ¼ä(tablespace)¡¢¶Î(segment)ºÍ·¶Î§½«Ö§ÅäÒ»¸öÊý¾Ý¿âµÄÎïÀí¿Õ¼äÈçºÎʹÓá£Ä£Ê½¶ÔÏó(schema object)¼°ËüÃÇÖ®¼äµÄÁªÏµ×é³ÉÁËÒ»¸öÊý¾Ý¿âµÄ¹ØϵÉè¼Æ¡£
1. ÎïÀí½á¹¹
(1) Êý¾ÝÎļþ
   ÿһ¸öORACLEÊý¾Ý¿âÓÐÒ»¸ö»ò¶à¸öÎïÀíµÄÊý¾ÝÎļþ(data file)¡£Ò»¸öÊý¾Ý¿âµÄÊý¾ÝÎļþ°üº¬È«²¿Êý¾Ý¿âÊý¾Ý¡£Âß¼­Êý¾Ý¿â½á¹¹(Èç±í¡¢Ë÷Òý)µÄÊý¾ÝÎïÀíµØ´æ´¢ÔÚÊý¾Ý¿âµÄÊý¾ÝÎļþÖС£Êý¾ÝÎļþÓÐÏÂÁÐÌØÕ÷£º
     £®Ò»¸öÊý¾ÝÎļþ½öÓëÒ»¸öÊý¾Ý¿âÏàÁªÏµ¡£
     £®Ò»µ©½¨Á¢£¬Êý¾ÝÎļþ²»Äܸıä´óС¡£
     £®Ò»¸ö±í¿Õ¼ä£¨Êý¾Ý¿â´æ´¢µÄÂß¼­µ¥Î»£©ÓÉÒ»¸ö»ò¶à¸öÊý¾ÝÎļþ×é³É¡£
   Êý¾ÝÎļþÖеÄÊý¾ÝÔÚÐèҪʱ¿ÉÒÔ¶ÁÈ¡²¢´æ´¢ÔÚORACLEÄÚ´æ´¢ÇøÖС£ÀýÈ磺Óû§Òª´æÈ¡Êý¾Ý¿âÒ»±íµÄijЩÊý¾Ý£¬Èç¹ûÇëÇóÐÅÏ¢²»ÔÚÊý¾Ý¿âµÄÄÚ´æ´æ´¢ÇøÄÚ£¬Ôò´ÓÏàÓ¦µÄÊý¾ÝÎļþÖжÁÈ¡²¢´æ´¢ÔÚÄÚ´æ¡£µ±Ð޸ĺͲåÈëÐÂÊý¾Ýʱ£¬²»±ØÁ¢¿ÌдÈëÊý¾ÝÎļþ¡£ÎªÁ˼õÉÙ´ÅÅÌÊä³öµÄ×ÜÊý£¬Ìá¸ßÐÔÄÜ£¬Êý¾Ý´æ´¢ÔÚÄڴ棬ȻºóÓÉORACLEºǫ́½ø³ÌDBWR¾ö¶¨ÈçºÎ½«ÆäдÈëµ½ÏàÓ¦µÄÊý¾ÝÎļþ¡£
(2) ÈÕÖ¾Îļþ
   ÿһ¸öÊý¾Ý¿âÓÐÁ½¸ö»ò¶à¸öÈÕÖ¾Îļþ(redo log file)µÄ×é,ÿһ¸öÈÕÖ¾Îļþ×éÓÃÓÚÊÕ¼¯Êý¾Ý¿âÈÕÖ¾¡£ÈÕÖ¾µÄÖ÷Òª¹¦ÄÜÊǼǼ¶ÔÊý¾ÝËù×÷µÄÐ޸ģ¬ËùÒÔ¶ÔÊý¾Ý¿â×÷µÄÈ«²¿ÐÞ¸ÄÊǼǼÔÚÈÕÖ¾ÖС£ÔÚ³öÏÖ¹ÊÕÏʱ£¬Èç¹ûδÄܽ«ÐÞ¸ÄÊý¾ÝÓÀ¾ÃµØдÈëÊý¾ÝÎļþ£¬Ôò¿ÉÀûÓÃÈÕÖ¾µÃµ½¸ÃÐ޸ģ¬ËùÒÔ´Ó²»»á¶ªÊ§ÒÑÓвÙ×÷³É¹û¡£
   ÈÕÖ¾ÎļþÖ÷ÒªÊDZ£»¤Êý¾Ý¿âÒÔ·ÀÖ¹¹ÊÕÏ¡£ÎªÁË·ÀÖ¹Á¬ÈÕÖ¾Îļþ±¾ÉíµÄ¹ÊÕÏ£¬ORACLEÔÊÐí¾µÏóÈÕÖ¾(mirrored redo log),ÒÔÖ¿ÉÔÚ²»Í¬´ÅÅÌÉÏά»¤Á½¸ö»ò¶à¸öÈÕÖ¾¸±±¾¡£
   ÈÕÖ¾ÎļþÖеÄÐÅÏ¢½öÔÚϵͳ¹ÊÕÏ»ò½éÖʹÊÕϻָ´Êý¾Ý¿âʱʹÓã¬ÕâЩ¹ÊÕÏ×èÖ¹½«Êý¾Ý¿âÊý¾ÝдÈëµ½Êý¾Ý¿âµÄÊý¾ÝÎļþ¡£È»¶øÈκζªÊ§µÄÊý¾ÝÔÚÏÂÒ»´ÎÊý¾Ý¿â´ò¿ªÊ±£¬O


Ïà¹ØÎĵµ£º

²»ÊÇORACLEµÄÎÊÌâ

                                          ²»ÊÇORACLEµÄÎÊÌâ
2009-12-30 15:00
    ......

Oracle ½â¾ö±íËø¶¨µÄÎÊÌâ

1. ͨ¹ýv$session£¬v$locked_object²é¿´Ë­Ëø¶¨ÁË×ÊÔ´
     select t1.sid, t1.serial#, t1.username, t1.logon_time
     from v$session t1 , v$locked_object t2
     where t1.sid = t2.session_id
     order by t1.logon_time ......

ͨ¹ý´´½¨ÐòÁÐÀ´ÊµÏÖORACLE SEQUENCEµÄ¼òµ¥½éÉÜ

ÔÚoracleÖÐsequence¾ÍÊÇËùνµÄÐòÁкţ¬Ã¿´ÎÈ¡µÄʱºòËü»á×Ô¶¯Ôö¼Ó£¬Ò»°ãÓÃÔÚÐèÒª°´ÐòÁкÅÅÅÐòµÄµØ·½¡£
1¡¢Create Sequence
ÄãÊ×ÏÈÒªÓÐCREATE SEQUENCE»òÕßCREATE ANY SEQUENCEȨÏÞ£¬
CREATE SEQUENCE emp_sequence
INCREMENT BY 1 -- ÿ´Î¼Ó¼¸¸ö
START WITH 1 -- ´Ó1¿ªÊ¼¼ÆÊý
NOMAXVALUE -- ²»ÉèÖÃ×î´óÖµ
NOCY ......

oracleµÄÊý¾ÝÀàÐÍ

ÔÚORACLE8Öж¨ÒåÁË£º±êÁ¿(Scalar)¡¢¸´ºÏ(COMPOSITE)¡¢ÒýÓÃ(REFERENCE)ºÍLOBËÄÖÖÊý¾ÝÀàÐÍ¡£
£¨Ò»£©±êÁ¿(Scalar)
    ±êÁ¿ÀàÐÍÓëÊý¾Ý¿âµÄÁÐËùʹÓõÄÀàÐÍÏàͬ£¬´ËÍâËü»¹ÓÐһЩÀ©Õ¹¡£
    ËüÓÖ·ÖΪÆ߸ö×飺Êý×Ö¡¢×Ö·û¡¢ÐС¢ÈÕÆÚ¡¢Ðбêʶ¡¢²¼¶ûºÍ¿ÉÐÅ¡£
¢ÙÊý×Ö
¡¡
    ÓÐÈ ......

ÀÏÄñ̸OracleÓû§±í¿Õ¼ä

ѧϰOracleʱ£¬Äã¿ÉÄÜ»áÓöµ½OracleÓû§±í¿Õ¼äÎÊÌ⣬ÕâÀォ½éÉÜOracleÓû§±í¿Õ¼äÎÊÌâµÄ½â¾ö·½·¨£¬ÔÚÕâÀïÄóöÀ´ºÍ´ó¼Ò·ÖÏíһϡ£Æäʵ¾ÍÊÇÔÚÒÑÓеÄÊý¾Ý¿âʵÀýÉÏ´´½¨Ò»¸öеÄÕʺţ¬·ÃÎÊһЩÐÂµÄ±í¡£
²Ù×÷²½ÖèÈçÏ£º
1¡¢µÇ¼linux£¬ÒÔOracleÓû§µÇ¼£¨Èç¹ûÊÇrootÓû§µÇ¼µÄ£¬µÇ¼ºóÓÃsu-oracleÃüÁîÇл»³ÉoracleÓû§£©
2¡¢ÒÔsy ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ