ÔÚOracleÊý¾Ý¿âʵÏÖ×Ô¶¯¶Ï¿ªºóÔÙÁ¬½Ó
ÔÚʵ¼ÊµÄÊý¾Ý¿âÓ¦ÓÃÖУ¬ÎÒÃǾ³£Óöµ½ÕâÑùÒ»¸öÎÊÌ⣬Á¬½Óµ½OracleÊý¾Ý¿âµÄÓû§ÔÚ×÷ÁËÒ»´Î²Ù×÷ºó£¬ÔÙҲûÓкóÐø²Ù×÷£¬µ«È´³¤Ê±¼äûÓкÍÊý¾Ý¿â¶Ï¿ªÁ¬½Ó¡£¶ÔÓÚÒ»¸öСÐ͵ÄÓ¦ÓÃϵͳÀ´½²£¬±¾ÉíµÄÁ¬½ÓÊýÄ¿¾ÍÓÐÏÞ£¬ÕâºÃÏñûÓÐʲôÑÏÖصĺó¹û£¬µ«Èç¹û¶ÔÓÚÒ»¸ö´óÐ͵ÄÊý¾Ý¿âÓ¦Óá£ÈçË°Îñ¡¢¹¤É̵ȣ¬Èç¹ûÊý¾Ý¿âµÄÁ¬½ÓÊýÄ¿ºÜ¶à£¬¶ÔÓÚÊý¾Ý¿â·þÎñÆ÷À´½²£¬¶àÒ»¸öÁ¬½Ó¾ÍÒª¶àÏûºÄÒ»·Ý×ÊÔ´£¬Èç¹û´óÁ¿Óû§Á¬½Ó½øÈëÊý¾Ý¿âϵͳµ«È´²»½øÐÐÈκεIJÙ×÷£¬ÕâÎÞÐÎÖ®ÖоͰװ×Ôì³ÉÁË·þÎñÆ÷ϵͳ×ÊÔ´µÄÀË·Ñ£¬Í¬Ê±Ôì³É·þÎñÆ÷¸ºÔصÄÌá¸ß£¬¶ÔÓÚÄÇЩȷʵÔÚ¹¤×÷µÄÓû§À´½²£¬¾Í²»ÄÜ×î´óÏ޶ȵÄÀûÓ÷þÎñÆ÷µÄ×ÊÔ´£¬ÑÏÖØÇé¿öÏ¿ÉÄÜÔì³ÉϵͳÐÔÄܵļ±¾çϽµ¡£
Õë¶ÔÕâÖÖÎÊÌ⣬¸ÃÈçºÎ´¦ÀíÄØ£¿¶ÔÓÚÄ¿Ç°Á÷ÐеÄÈý²ã½á¹¹£¨Browser/Application/Server£©¿ª·¢À´½²£¬Õâ¸öÎÊÌâ¿ÉÒÔͨ¹ýÉèÖÃÓ¦Ó÷þÎñÆ÷¶ËµÄÁ¬½Ó¹²Ïí³Ø£¨shared pool£©À´±ÜÃâ¡£µ«¶ÔÓÚ´«Í³µÄÁ½²ã½á¹¹£¨Client/Server£©Ó¦Ó㬾ͱØÐëÓÉÎÒÃÇÈËΪ¸ÉÔ¤À´±ÜÃâÕâÖÖ×ÊÔ´ÀË·ÑÇé¿ö¡£¾ßÌå¿ÉÒÔͨ¹ýÒ»¸öºǫ́ÈÎÎñÀ´¼à¿ØϵͳÖеÄËùÓнø³Ì£¬¶ÔÓÚÄÇЩ¿ÕÏг¬¹ýÒ»¶¨Ê±¼äµÄ½ø³Ì²ÉÈ¡Ò»¶¨µÄÌØÊâ´¦Àí´ëÊ©£¬ÈçÔÚ¿Í»§¶ËÌáʾÓû§Á¬½Óʱ¼äÌ«³¤£¬Èç¹ûûÓкóÐø²Ù×÷ϵͳ½«×Ô¶¯É±µô¸ÃÁ¬½Ó»òÕßÖ±½Ó½«¸Ã¿ÕÏÐÁ¬½Óɱµô¡£ÏÂÃæ¾ÍÀ´¾ßÌåÌÖÂÛÈçºÎÔÚOracle 8x»·¾³ÏÂʵÏÖÓû§½ø³ÌµÄ×Ô¶¯¼à¿Ø¼°Æä¶Ô¶Ô³¬¹ýÒ»¶¨¿ÕÏÐʱ¼äÁ¬½ÓµÄ´¦Àí°ì·¨¡£
Ò»¡¢Ê¶±ðϵͳÖг¬¹ýÒ»¶¨¿ÕÏÐʱ¼äµÄÁ¬½Ó
ҪʵÏÖºǫ́ÈÎÎñ×Ô¶¯¶Ô³¬¹ýÒ»¶¨Ê±¼ä¿ÕÏÐÁ¬½ÓµÄ´¦Àí£¬Ê×ÏȵÚÒ»²½¹¤×÷¾ÍÊÇÒª´ÓËùÓÐÓëÊý¾Ý¿â·þÎñÆ÷µÄÁ¬½ÓÖÐʶ±ð³öÄÇЩÁ¬½ÓÐèÒª´¦Àí£¬Ò²¾ÍÊÇÐèÒª»ñµÃÓë·þÎñÆ÷Á¬½ÓµÄÿ¸öÓû§µÄµÇ½ʱ¼ä¼°Æä×îºóÒ»´Î²Ù×÷ºóµÄ¿ÕÏÐʱ¼ä¡£ÔÚOracleϵͳÖУ¬ÓÐÒ»¸ö¶¯Ì¬ÐÔÄÜÊÓͼv$session£¬¸ÃÊÓͼ±£´æ×Åϵͳµ±Ç°Á¬½ÓµÄ¸÷ÖÖ¶¯Ì¬ÐÅÏ¢¡£ÆäÖУ¬ÓÐÁ½¸ö×Ö¶ÎLOGON_TIMEºÍ LAST_CALL_ET¿ÉÒԵõ½ÉÏÃæµÄÁ½¸ö´ð°¸¡£
LOGON_TIMEÊÇÒ»¸öÈÕÆÚÐÍ£¨Date£©×ֶΣ¬ÎªÓû§µÇ½ʱ¼ä£»
LAST_CALL_ETÊÇÒ»¸öÊý×ÖÐÍ£¨Number£©×ֶΣ¬Æ京ÒåÊÇÓû§×îºóÒ»ÌõÓï¾äÖ´ÐÐÍê±ÏºóµÄʱ¼ä£¬µ¥Î»ÎªÃ롣ÿ´ÎÓû§Ö´ÐÐÒ»¸öеÄÓï¾äºó£¬¸Ã×ֶθ´Î»Îª0£¬ÖØпªÊ¼¼ÇÊý¡£ÎÒÃÇ¿ÉÒÔͨ¹ý¸Ã×Ö¶ÎÀ´»ñµÃÒ»¸öÁ¬½ÓÓû§×îºóÒ»´Î²Ù×÷Êý¾Ý¿âºóµÄ¿ÕÏÐʱ¼ä¡£
ÏÂÃæµÄSQL²éѯÓï¾ä¿ÉÒԵõ½Ó뵱ǰÊý¾Ý¿âÁ¬½ÓµÄËùÓÐÓû§µÄһЩ»ù±¾Çé¿ö£¬ÈçÓû§Ãû¡¢×´Ì¬¡¢Á¬½Ó»úÆ÷µÄÃû³Æ£¬²Ù×÷ϵͳÖÐÓû§µÄÃû³Æ£¬UNIXϵͳµÄ½ø³ÌºÅ£¬ÔÚUNIX²Ù×÷ϵͳ¼¶¶Ï¿ªÁ¬½ÓµÄÓï¾ä£¬OracleÊý¾Ý¿âϵͳ¶Ï¿ªÁ¬½ÓµÄÓï¾ä£¬µÇ½ʱ¼äÒÔ¼°×îºóÒ»´Î²Ù×÷µ½ÏÖÔ
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
·½·¨Ò»£ºoffline±í¿Õ¼ä
1¡¢offline±í¿Õ¼ä£ºalter tablespace tablespace_name offline£»
2¡¢¸´ÖÆÊý¾ÝÎļþµ½ÐµÄĿ¼£»
3¡¢renameÐ޸ıí¿Õ¼ä£¬²¢Ð޸ĿØÖÆÎļþ£»
4¡¢online±í¿Õ¼ä£»
1¡¢offline±í¿Õ¼äzerone
SQL> select name from v$datafile;
NAME
--------------------------------------------------------- ......
Fedora10 É쵀 Oracle 10.2.0.1 ÊÖ¹¤½¨¿âÈ«¹ý³Ì
NOTE:
(1)¼Ç×ÅÒªÔÚoracleÓû§Ï¶ø²»ÊÇrootÏÂÖ´ÐÐÕâЩ²Ù×÷£¬·ñÔòÒòΪȨÏÞµÄÎÊÌâ»á´øÀ´ÎÞÇîÎÞ¾¡µÄÂé·³
(2)Òª¼ì²é¹ý³ÌÖÐËùÓгöÏÖµÄĿ¼Ãû¶¼ÊǶÔÓ¦ÕýÈ·ÇÒÓÐЧµÄ£¬·ñÔò¼¸ºõûÓпÉÓõĴíÎóÐÅÏ¢À´²éÕÒÕâÖÖ´íÎó
(3)Òª ......
Oracle Flashback Technology
Oracle Flashback Technology reduces recovery time from hours to minutes.
from: http://www.oracle.com/technology/deploy/availability/htdocs/Flashback_Overview.htm
According to many studies, 40% of application outages are caused by operator or user errors. Part of be ......