oracle ¹éµµÓë²»¹éµµ
oracle ¹éµµÓë²»¹éµµ
1. ²é¿´Êý¾Ý¿âµÄ¹éµµÄ£Ê½
£¨1£©Ê¹ÓÃÃüÁ
-------------------------------------------------
SQL> archive log list
Êý¾Ý¿âÈÕ־ģʽ ´æµµÄ£Ê½
×Ô¶¯´æµµ ÆôÓÃ
´æµµÖÕµã f:\oradata\dblearn\arch
×îÔçµÄ¸ÅÒªÈÕÖ¾ÐòÁÐ 14
ÏÂÒ»¸ö´æµµÈÕÖ¾ÐòÁÐ 16
µ±Ç°ÈÕÖ¾ÐòÁÐ 16
-------------------------------------------------
£¨2£©²éѯ×ÖµäÊÓͼ£º
-------------------------------------------------
SQL> select name,log_mode from v$database;
NAME LOG_MODE
--------- ------------
DBLEARN ARCHIVELOG
-------------------------------------------------
2. ¹éµµÄ£Ê½µÄһЩ³£¼ûÉèÖÃ
¹éµµÄ£Ê½Éæ¼°µ½ºÜ¶àϵͳ²ÎÊý£¬¿ÉÒÔͨ¹ýÉèÖÃÕâЩ²ÎÊýÆô¶¯»ò¹Ø±Õ¹éµµÄ£Ê½¡¢¹éµµÈÕÖ¾´æ´¢µÄĿ¼¡¢ÊÇ·ñ¶à·¹éµµµÈµÈ£¬ÕâЩ²ÎÊýÒ»°ãÒÔ“log_archive_*”¿ªÍ·¡£Ê¹ÓÃÏÂÁÐÃüÁî¿ÉÒԲ鿴£º
-------------------------------------------------
SQL> show parameter log_archive;
-------------------------------------------------
2.1 ÉèÖù鵵ÈÕÖ¾µÄ·¾¶
ÉèÖù鵵ÈÕÖ¾µÄ·¾¶ÓÐÁ½ÖÖ·½Ê½£º
£¨1£©LOG_ARCHIVE_DESTºÍLOG_ARCHIVE_DUPLEX_DEST²ÎÊý
ÕâÁ½¸ö²ÎÊýÖ¸Ã÷Á˹鵵ÈÕÖ¾´æ·ÅµÄÁ½¸ö·¾¶£¬Èç¹ûÖ»ÉèÖõÚÒ»¸ö£¬Ôò¹éµµÈÕÖ¾Ö»´æ·Åµ½Ò»¸ö·¾¶¡£
Àý£º
-------------------------------------------------
log_archive_dest=/disk1/archive
log_archive_duplex_dest=/disk2/archive
-------------------------------------------------
£¨2£©LOG_ARCHIVE_DEST_n²ÎÊý
ÆäÖÐnΪ1-10µÄÕûÊý£¬±ØÐè´ÓµÍµ½¸ßÉèÖã¬ÏÂÃæ¾ÙÀý˵Ã÷£º
-------------------------------------------------
log_archive_dest_1="LOCATION=/archive MANDATORY REOPEN"
log_archive_dest_2="SERVICE=standby_db1 MANDATORY REOPEN=600"
log_archive_dest_3="LOCATION=/archive2 OPTIONAL"
-------------------------------------------------
LOCATION¹Ø¼ü×Ö˵Ã÷ÊDZ¾»úµÄÒ»¸öĿ¼£¬¶øSERVICE¹Ø¼ü×Ö˵Ã÷ÊÇÒѾÔÚNet8ÖнøÐÐÁËÅäÖõÄÆäËûÊý¾Ý¿âÖ÷»úµÄ±ðÃû¡£
MANDATORY¹Ø¼ü×Ö˵Ã÷Áª»úÈÕÖ¾Îļþ±ØÐëÒª³É¹¦¹éµµµ½Õâ¸öĿ¼ºó²ÅÄܱ»¸²Ð´£¨Áª»úÈÕÖ¾ÎļþÊÇÖظ´Ê¹ÓõÄÎļþ£©¡£È±Ê¡Îª¿ÉÑ¡£¨OPTIONAL£©£¬¼´¼´Ê¹¹éµµ²»³É¹¦Ò²¿ÉÒÔ¸²Ð´¡£ÔÚÉèÖÃÊ
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
OracleÊý¾Ý¿âÌṩÁ˼¸ÖÖ²»Í¬µÄÊý¾Ý¿âÆô¶¯ºÍ¹Ø±Õ·½Ê½£¬±¾ÎĽ«Ïêϸ½éÉÜÕâЩÆô¶¯ºÍ¹Ø±Õ·½Ê½Ö®¼äµÄÇø±ðÒÔ¼°ËüÃǸ÷×Ô²»Í¬µÄ¹¦ÄÜ¡£
Ò»¡¢Æô¶¯ºÍ¹Ø±ÕOracleÊý¾Ý¿â¡¡¡¡¶ÔÓÚ´ó¶àÊýOracle DBAÀ´Ëµ£¬Æô¶¯ºÍ¹Ø±ÕOracleÊý¾Ý¿â×î³£Óõķ½Ê½¾ÍÊÇÔÚÃüÁîÐз½Ê½ÏµÄServer Manager¡£´ÓOracle 8iÒÔºó£¬ÏµÍ³½«Server ManagerµÄËùÓй¦Äܶ¼¼¯Öе½ ......
ÒÔǰתÔعýһƪ¹ØÓÚ±¸·ÝºÍ»Ö¸´controlfileµÄÎÄÕ£¬µØÖ·ÈçÏÂ
http://blog.csdn.net/wh62592855/archive/2009/11/20/4844506.aspx
¿ØÖÆÎļþµÄÖ÷ÒªÄÚÈÝ
½ñÌìͻȻÔÚÏ룬controlfileÀïµ½µ×°üº¬ÁËÄÄЩÐÅÏ¢£¬²éѯÁ˼¸¸öÏà¹ØµÄÊý¾Ý×ÖµäÊÓͼ£¬ÍøÉÏËÑÁËËÑ£¬ÏÖÔÚС×ܽáÒ»ÏÂ
Êý¾Ý¿âµÄÃû×Ö¡£¸ÃÃûÈ¡×Ô³õʼ»¯²ÎÊý˵Ã÷µÄÊý¾Ý¿âÃû×Ö»òCRE ......
ÔÚµ¼ÈëÒ»¸ö2GµÄ±¸·ÝÎļþʱ£¬Êý¾Ý¿â±¨ORA-00257¹ÊÕÏ£¬ÕÒµ½ÕâƪÎÄÕ¡£×ª×Ôhttp://dev.yesky.com/438/2525938.shtml
¸ÅÊö£º
¡¡¡¡OracleÊý¾Ý¿âÊÇÄ¿Ç°Òµ½ç×î³£ÓõĴóÐÍÊý¾Ý¿âϵͳ£¬ÎÒÔÚʵ¼ÊÏîÄ¿ÖÐÓöµ½³öÏÖORA-00257´íÎ󣨿ռ䲻×ã´íÎ󣩣¬Í¨¹ý²éÕÒ×ÊÁÏ£¬¾ø´ó²¿·Ö˵ÕâÊÇÓÉÓڹ鵵ÈÕ־̫¶à£¬Õ¼ÓÃÁËÈ«²¿µÄÓ²ÅÌÊ£Óà¿Õ¼äµ¼Öµģ¬Í¨¹ý ......