oracle¸´Ï°£¨Ò»£© Ö®OracleÌåϵ½á¹¹
ѧϰOracle DBAÒ²°ë¸ö¶àѧÆÚÁË£¬½ñÌìÃÍÈ»²Å·¢ÏÖ£¬ÔÀ´ÎÒµÄÊ黹ÊǺÜеģ¬ÉϿβÙ×÷ʱºòÒ²Ö»ÊÇÖªµÀ´ó¸ÅÔõô×ö£¬µ«ÊÇÒªÕæµÄÈ«²¿×Ô¼º×ö£¬¶ø²»È¥·Ê黹ÊÇÓÐÒ»¶¨µÄÄѶȵģ¬ËùÒÔÄØ£¬½ñÌ쿪ʼ½«DBA´ÓÍ·¸´Ï°Ò»±é£¬Í¬Ê±ÔÙ²Ù×÷Ò»±é¡£
µÚÒ»Õ£¬Ñ§µÄÊÇOracleµÄÌåϵ½á¹¹£¬Èçͼ£º
Á˽âÁËÕâ¸öÌåϵ½á¹¹Í¼£¬µ±È»»¹ÊDz»¹»µÄ£¬ÕâÀïÃ滹ÓкܶàÊõÓïÄØ£¬²»¹ýÄØÊ×ÏÈ¿´¿´Oracle·þÎñÆ÷¡£
Oracle·þÎñÆ÷Ö÷Òª·ÖΪÒÔÏÂÈýÖÖ£º
1¡¢»ùÓÚÖ÷»ú·½Ê½
2¡¢¿Í»§¶Ë-·þÎñÆ÷£¨client-server£©£¨Á½²ãÄ£ÐÍ£©·½Ê½
3¡¢¿Í»§¶Ë-Ó¦Ó÷þÎñÆ÷£¨client-application server-server£©£¨Èý²ãÄ£ÐÍ£©
½Ó×ÅÊÇÒ»¸öOracleʵÀý
OracleʵÀýÊÇÒ»ÖÖ·ÃÎÊÊý¾Ý¿âµÄ»úÖÆ£¬ËüÓÉÄÚ´æ½á¹¹ºÍһЩºǫ́½ø³Ì×é³É¡£ËüµÄÄÚ´æ½á¹¹Ò²³ÆΪϵͳȫ¾ÖÇø£¨System global area£¬SGA£©¡£ÊµÀýµÄºǫ́ÓÐ5¸ö½ø³ÌÊDZØÐëµÄ£ºSMON¡¢PMON¡¢DBWR¡¢LGWR¡¢CKPT¡£SGAÖÐÓÖ°üº¬ÁËһϼ¸¸öÄÚ´æ½á¹¹£º¹²Ïí³Ø£¨shared pool£©¡¢Êý¾Ý¿â¸ßËÙ»º³åÇø£¨database buffer cache£©¡¢ÖØ×öÈÕÖ¾»º³åÇø£¨redo log buffer£©ºÍÆäËûµÄһЩ½á¹¹£¨ÈçËøºÍͳ¼ÆÊý¾Ý£©¡£
SGAϵͳȫ¾ÖÇø
ʵÀý
½ÓמÍ˵Ã÷OracleÊý¾Ý¿â£¬ËüÒ²³ÉΪÎïÀí£¨Íâ´æ£©½á¹¹£¬ËüΪÊý¾Ý¿âÐÅÏ¢ÌṩÁËÕæÕýµÄÎïÀí´æ´¢£¬ËüÓÉ¿ØÖÆÎļþ£¨control files£©¡¢ÖØ×öÈÕÖ¾Îļþ£¨redo log files£©¡¢Êý¾ÝÎļþ£¨data files£©3Àà²Ù×÷ϵͳÎļþ×é³É¡£
È»ºó£¬ÒªÓÃÊý¾Ý¿â£¬µ±È»»¹ÐèÒªÁ¬½Ó£¬Á¬½ÓÊÇÓû§½ø³ÌÓëOracle·þÎñÆ÷Ö®¼äµÄͨÐÅ·¾¶£¬ÆäÖÐÓÐÈýÖÖ·½Ê½£º
1¡¢»ùÓÚÖ÷»ú·½Ê½
2¡¢¿Í»§¶Ë-·þÎñÆ÷£¨client-server£©£¨Á½²ãÄ£ÐÍ£©·½Ê½
3¡¢¿Í»§¶Ë-Ó¦Ó÷þÎñÆ÷£¨client-application server-server£©£¨Èý²ãÄ£ÐÍ£©
ÕâÈýÖÖÁ¬½ÓÊÇÓû§½ø³ÌÓë·þÎñÆ÷½ø³ÌµÄÒ»¶ÔÒ»Á¬½Ó£¬Ò²³ÆΪרҵÁ¬½Ó£¨dedicated server connection£©£¬³ý´ËÖ®Í⣬ÔÚÁª»úÊÂÎñ´¦Àí£¨online transaction processing£¬OLTP£©ÏµÍ³µÄÅäÖû¹ÓÐÁíÒ»ÖÖÁ¬½Ó£¬Îª¹²Ïí·þÎñÆ÷£¨shared server£©Á¬½Ó¡£
È»ºóÒª¸´Ï°Ï·þÎñÆ÷½ø³Ì
µ±Oracle´´½¨Ò»¸ö·þÎñÆ÷½ø³ÌµÄͬʱҪΪ¸Ã·þÎñÆ÷½ø³Ì·ÖÅäÒ»¸öÄÚ´æÇø£¬¸ÃÄÚ´æÇø³ÉΪ³ÌÐòÈ«¾ÖÇø£¨Program global area£¬PGA£©.ÓëSGA²»Í¬£¬PGAÊÇÒ»¸ö˽ÓеÄÄÚ´æÇø£¬²»Äܹ²Ïí£¬ÇÒÖ»ÊôÓÚÒ»¸ö½ø³Ì¡£ËüËæ׎ø³ÌµÄ·ÖÅä¶ø·ÖÅ䣬Ëæ׎ø³ÌµÄÖ
Ïà¹ØÎĵµ£º
ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
Ê×ÏÈ£¬Ô ......
ÔÚ¿ªÊ¼Ö®Ç°£¬ÎÒÃÇÏÈÀ´Ë¼¿¼¼¸¸öÎÊÌ⣿
1. ora-01555´íÎóµÄÊÇÔõô²úÉúµÄ£¿ÓÐʲô°ì·¨½â¾ö£¿
¸ÃÎÊÌ⣬²Î¿¼ÎÒµÄBlog£º Oracle ORA-01555¿ìÕÕ¹ý¾É
http://blog.csdn.net/tianlesoftware/archive/2009/10/31/4745898.aspx
2. »Ø¹ö¶Î(»Ø¹ö ......
OracleµÄ9¸ö_name
2008-07-17 23:47
1¡¢db_name Êý¾Ý¿âÃû
¡¡¡¡SQL> connect xys/manager as sysdba
¡¡¡¡ÒÑÁ¬½Ó¡£
¡¡¡¡SQL> show user
¡¡¡¡USER Ϊ "SYS"
¡¡¡¡SQL> show parameter db_name
¡¡¡¡NAME TYPE VALUE
¡¡¡¡---- -------- ------------
¡¡¡¡db_name string test1
¡¡¡¡db_nameÊÇÊý¾Ý¿âµÄÃû×Ö£¬or ......
ÉñÃØµÄ ORACLE DUAL±í
DUAL ? ÓÐʲôÉñÃصÄ? µ±ÄãÏëµÃµ½ORACLEϵͳʱ¼ä, ¼ò¼òµ¥µ¥ÇÃÒ»ÐÐSQL¡¡
¡¡¡¡
¡¡¡¡²»¾ÍµÃÁËÂð? ¹ÊŪÐþÐé….¡¡
¡¡¡¡
¡¡¡¡SQL> select sysdate from dual;¡¡
¡¡¡¡
¡¡¡¡SYSDATE¡¡
¡¡¡¡
¡¡¡¡———¡¡
¡¡¡¡
¡¡¡¡28-SEP-03¡ ......
Ò»¡¢×¼±¸¹¤×÷
1.1 ÉèÖÃÖ÷¿âµÄforce loggingģʽ
SQL> alter database force logging;
Database altered.
1.2 ´´½¨Ö÷¿âÃÜÂëÎļþ
$ orapwd file=orapw$ORACLE_SID password=thunis entries=4
1.3 ÅäÖÃÖ÷¿âstandby redo log£¬²¢ÑéÖ¤½á¹û
SQL> alter database add standby logfile group 4('/u01/app/oradata/guar ......