Oracle´Ó·Ç¹éµµÄ£Ê½±ä³É¹éµµÄ£Ê½
http://www.cuijie.net.cn/?cat=6
¸ü¸ÄÊý¾Ý¿âµÄ¹éµµÄ£Ê½ÐèÒªÖØÐÂÆô¶¯Êý¾Ý¿â£¬ÔÚmountģʽÏÂÐ޸쬼òÒª²½Öè
1 ÒÔshutdown immediate ·½Ê½¹Ø±ÕÊý¾Ý¿â
2 Æô¶¯ÊµÀýµ½mount״̬
3 ¸ü¸ÄÔËÐÐģʽ²¢´ò¿ªÊý¾Ý¿â
²Ù×÷²½Ö裺
1 µÇ¼Êý¾Ý¿â²é¿´Êý¾Ý¿âµÄ¹éµµ×´Ì¬
SQL> archive log list;
Èç¹û³öÏÖÐÅÏ¢£º
Database log mode No Archive Mode
Automatic archival Disabled
ÔòΪ·Ç¹éµµÄ£Ê½
2 ¹Ø±ÕÊý¾Ý¿â
SQL>shutdown immediate;
3 Æô¶¯Êý¾Ý¿âµ½mount״̬
SQL>startup mount;
4 Æô¶¯¹éµµÄ£Ê½
SQL>alter database archivelog; (·Ç¹éµµÄ£Ê½Îª£ºalter database noarchivelog)
5 ´ò¿ªÊý¾Ý¿â
SQL>alter database open;
²é¿´¹éµµÄ£Ê½×´Ì¬
SQL>archive log list
Èç¹û³öÏÖÐÅÏ¢£º
Database log mode Archive Mode
Automatic archival Enabled
³É¹¦¸Ä³É¹éµµÄ£Ê½
http://uplinux.com/online/dodev/sjk/2009/1103/243.html
OracleÊý¾Ý¿â¿ÉÒÔÔËÐÐÔÚ2ÖÖģʽÏÂ:¹éµµÄ£Ê½(archivelog)ºÍ·Ç¹éµµÄ£Ê½(noarchivelog)
¹éµµÄ£Ê½¿ÉÒÔÌá¸ßOracleÊý¾Ý¿âµÄ¿É»Ö¸´ÐÔ£¬Éú²úÊý¾Ý¿â¶¼Ó¦¸ÃÔËÐÐÔÚ´ËģʽÏ£¬¹éµµÄ£Ê½Ó¦¸ÃºÍÏàÓ¦µÄ±¸·Ý²ßÂÔÏà½áºÏ£¬Ö»Óй鵵ģʽûÓÐÏàÓ¦µÄ±¸·Ý²ßÂÔÖ»»á´øÀ´Âé·³¡£
±¾Îļòµ¥½éÉÜÈçºÎÆôÓú͹رÕÊý¾Ý¿âµÄ¹éµµÄ£Ê½¡£
1.shutdown normal»òshutdown immediate¹Ø±ÕÊý¾Ý¿â
[oracle@jumper oracle]$ sqlplus "/ as sysdba"
Ïà¹ØÎĵµ£º
select count(*) from t1;
Õâ¾ä»°±È½Ï¼òµ¥£¬µ«ºÜÓÐÐþ»ú£¡¶ÔÕâ¾ä»°ÔËÐеÄÀí½â£¬·´Ó³ÁËÄã¶ÔÊý¾Ý¿âµÄÀí½âÉî¶È£¡
½¨Á¢ÊµÑéµÄ´ó±íËût1
SQL> conn scott/tiger
ÒÑÁ¬½Ó¡£
SQL> drop table t1 purge;
±íÒÑɾ³ý¡£
SQL> create table t1 as select * from emp where 0=9;
±íÒÑ´´½¨¡£
SQL> insert into t1 sele ......
ÒòΪºÜÉÙÓõ½, ËùÒÔ¼¸ºõÍü¼ÇÁËÕ⼸¸öº¯Êý, ²»¹ýËüÃÇ»¹ÊǺÜÓÐÓõÄʹÓÃËüÃÇ¿ÉÒÔ´ó´ó¼ò»¯Ò»Ð©SQLÎĵÄÓï·¨, ÖÁÓÚЧÂÊÎÊÌâ, ÈçCCWËù˵ËüÃǺÍEXISTS, IN Ö®ÀàûÓÐʲô²î±ð, ¶øÇÒÒª¾ßÌåÎÊÌâ¾ßÌå·ÖÎö
ÆäÖÐANYºÍSOMEÔÚÒâ˼ÉÏÊÇÏàͬµÄ, ¿ÉÒÔÏà»¥Ìæ´ú.
¾Ù¼¸¸öÀý×ÓÀ´ËµÃ÷ALLºÍANYµÄÓ÷¨
1. SELECT * from TABLEA WHERE FLD > AL ......
¡¡Ëæ×ÅÏÖ´úÊý¾Ý¿â¿ÉÓÃÌØÕ÷¼¯µÄѸËÙÔö¼Ó£¬ºÜÄÑÇø·ÖÊëºÃÊ뻵¡£ÀýÈçOracleÀï¾ÍÓÐÐí¶àÄã¿ÉÄÜ´ÓÀ´¶¼²»ÐèÒªµÄ¸ß¼¶Êý¾Ý²Ö¿âÌØÕ÷¡£´ËÍâÒ²¿ÉÄÜÓÐһЩÆäËü²»¿É»òȱµÄÌØÕ÷±ÈÈçACIDÊÂÎñÌØÐÔ¡£ÎÒÃÇÀ´¿´Ò»¿´Ö÷ÒªµÄÒ»Ð©ÌØÕ÷£¬±ÈÈç´æ´¢¹ý³Ì£¬ÊÓͼ£¬¿ìÕÕ£¬±íÊý¾ÝÀàÐͺÍÊÂÎñµÈµÈ¡£Í¬Ê±ÎÒÃÇ·ÖÎöÒ»ÏÂPostgresql£¬MySQLºÍOracleÕ⼸¸öÊý¾Ý¿â£¬È»º ......
Wait Problem Potential Fix Sequential Read Indicates many index reads—tune the code (especially joins) Scattered Read Indicates many full table scans—tune the code; cache small tables ......
Navicat for xxx ÊÇÒ»¸öÓÅÐãµÄÊý¾Ý¿â¹ÜÀí¿Í»§¶Ë£¬ÓÐ MySQL¡¢Oracle µÈ°æ±¾¡£½¨Òé´ó¼Ò×îºÃÓà Enterprise °æ±¾£¬¹¦ÄÜÈ«ÃæÒ»Ð©£¬µ«½ÏÖ®ÓÚÃâ·ÑµÄ Lite °æ£¬ÆóÒµ°æ¿ÉÊÇÒª»¨Òø×ÓÂòµÄ¡£
°²×° Navicat for Oracle ºó£¬Ê×ÏÈÐèÒª½¨Ò»¸ö“Á¬½Ó”£¬×÷Ϊij¸ö¹ÜÀíÈÎÎñµÄ±êʶ£¬ÒòΪ×÷Î ......