[Oracle 10g] ÉÁ»Ø»Ö¸´Çø (Flash Recovery Area)
ºÎΪÉÁ»Ø»Ö¸´Çø
Oracle 10g ÓÐÒ»Ïîй¦ÄܳÆΪ:×Ô¶¯µÄ»ùÓÚ´ÅÅ̵ı¸·ÝÓë»Ö¸´( Automatic Disk-Based Backup and Recovery )¡£ÊµÏָù¦ÄܵĻù´¡Îª±¾ÎÄÒª½²ÊöµÄÉÁ»Ø»Ö¸´Çø( Flash Recovery Area )¡£ÉÁ»Ø»Ö¸´ÇøÊÇ Oracle 10g ÖеÄÐÂÊÂÎï¡£¼òµ¥µÄ˵£¬ÉÁ»Ø»Ö¸´ÇøÊÇÒ»¿éÓÃÒÔ´æ´¢»Ö¸´Ïà¹ØµÄÎļþµÄ´æ´¢¿Õ¼ä¡£ÔÊÐíÓû§¼¯Öд洢ËùÓлָ´Ïà¹ØµÄÎļþ¡£
ÉÁ»Ø»Ö¸´Çø¿ÉÒÔ·ÅÔÚÈçϼ¸ÖÖ´æ´¢ÐÎʽÉÏ:
Ŀ¼
Ò»¸öÎļþϵͳ
×Ô¶¯´æ´¢¹ÜÀí(ASM)´ÅÅÌ×é
ÔÚ RAC »·¾³ÖÐ,Õâ¸ö¸ÃλÖñØÐëΪ ¼¯ÈºÎļþϵͳ (cluster file system) »òÊÇ ASM ´ÅÅÌ×éÒà»òÊÇͨ¹ý NFS ¿ØÖƵÄÎļþ¹²ÏíĿ¼£¬»¹Òª×¢ÒâµÄÊÇ£¬ËùÓÐʵÀýµÄλÖúͲÙ×÷ϵͳµÄ´ÅÅÌÏÞ¶î (disk quota) ±ØÐëÒ»Ö¡£
Èçϼ¸ÖÖÎļþ¿ÉÒԷŵ½ÉÁ»Ø»Ö¸´ÇøÖÐ:
¿ØÖÆÎļþ
¹éµµµÄÈÕÖ¾Îļþ(×¢£ºOracle ÊÖ²áÉÏËù˵µÄÔÚÉ趨flash recovery areaÖ®ºó£¬LOG_ARCHIVE_DEST_10µÄÖµ½«×Ô¶¯É趨Ϊflash recovery areaµÄλÖã¬Õâ¸ö±ä»¯ÔÚ±ÊÕß²âÊÔ¹ý³ÌÖй۲첻µ½)
ÉÁ»ØÈÕÖ¾
¿ØÖÆÎļþºÍ SPFILE ×Ô¶¯±¸·Ý
RMAN ±¸·Ý¼¯
Êý¾ÝÎļþ¿½±´
ΪºÎÒªÓÃÉÁ»Ø»Ö¸´Çø?
ÈçÇ°ËùÊö£¬ÉÁ»Ø»Ö¸´ÇøÌṩÁËÒ»¸ö¼¯Öл¯µÄ´æ´¢ÇøÓò£¬ºÜ´ó³Ì¶ÈÉϼõСÁ˹ÜÀí¿ªÏú¡£ÕâÊÇÆä×îÖ÷ÒªµÄÓŵ㡣Óë RMAN ½áºÏʹÓÿÉÒÔ½øÐпìËÙ»Ö¸´¡£
½üÄêÀ´Ëæ×Å´æ´¢¼¼ÊõµÄ·¢Õ¹£¬µ¥¸ö´ÅÅ̵Ĵ洢ÄÜÁ¦ÒѾ¼ÓÇ¿¡£Õâʹ×Ô¶¯µÄ»ùÓÚ´ÅÅ̵ı¸·ÝÓë»Ö¸´µÄ¼¼ÊõʵÏÖ³ÉΪ¿ÉÄÜ¡£¶øÉÁ»Ø»Ö¸´ÇøÇ¡ÊÇ»ùÓÚ´ÅÅ̵ı¸·ÝÓë»Ö¸´µÄ»ù´¡¡£°ÑÉÁ»Ø»Ö¸´ÇøºÍ OMF Óë ASM ½áºÏÔËÓÿ´ÆðÀ´ÊDZȽÏÍêÃÀµÄ·½°¸¡£µ±È»£¬²»¿É·ñÈϵÄÊÇ£¬×Ô¶¯±¸·Ý»Ö¸´¼¼Êõ»¹Ô¶Ô¶²»¹»³ÉÊì¡£
É趨ÉÁ»Ø»Ö¸´Çø
Èç¹ûÄúʹÓÃDBCA´´½¨µÄÊý¾Ý¿â£¬ÔÚ°²×°Ê±¿ÉÒÔÉ趨ÉÁ»Ø»Ö¸´ÇøµÄλÖÃÒÔ¼°´óС(µã»÷ÕâÀï²é¿´°²×°½Øͼ)--ÕâÒ²ÊÇ Oracle 10g OUI µÄй¦ÄÜÖ®Ò»¡£Èç¹ûÔÚ¿ªÊ¼µÄʱºòûÓÐÆôÓÃÉÁ»Ø»Ö¸´Çø£¬¿ÉÒÔͨ¹ýÈçÏ·½Ê½É趨¡£
µ÷ÕûÈçÏÂÁ½¸ö¶¯Ì¬³õʼ»¯²ÎÊý(ÎÞÐèÖØÐÂÆô¶¯ÊµÀý)£º
SQL> ALTER SYSTEM SET db_recovery_file_dest_size=2g SCOPE=BOTH;
System altered.
SQL>
SQL> ALTER SYSTEM SET db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
2 SCOPE=BOTH;
System altered.
SQL>
Ö®ºó²é¿´Ëù×÷µÄÐÞ¸ÄÊÇ·ñÉúЧ£º
SQL> SHOW parameter db_recovery_file_dest
NAME TYPE VALUE
-------------------------------- ----------- -----------------------------------
db_recovery_file_dest
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
OracleÒì³£·ÖΪ3ÖÖ:
(1)Ô¤¶¨ÒåÒì³£:no_data_foundµÈ,ÊÇOracleϵͳ¶¨ÒåµÄÒì³£.
declare
s_test varchar2
begin
select id into s_test from test; --´Ëʱtest±íÎÞÊý¾Ý
exception
when no_data_found then
raise_application_error(-20001, 'ûÓÐÊý¾Ý');
end;
(2)×Ô¶ ......
ÒòΪÃ÷°Ú×ŵÄÔµ¹Ê£¬10.2Òý³öµÄTDEЧÄܶÔÁмÓÃÜÒÔºó£¬ÕÐÖÂÏà¸ÉĿ¼ɥʧÁ˶Բ»µÈʽµÄÅжÏÄÜÁ¦¡£
鍫룼
ENCRYPTIONDEMO@fmw//scripts> create table tde_table(id number encrypt no salt,na
me varchar¶þ(30))
¶þ ;
Table created.
Elapsed: 00:00:00.11
ENCRYPTIONDEMO@fmw//scripts> begin
¶þ for i in 1..2 ......
ÔÚLinuxÏÂÓÃFirefoxä¯ÀÀÓÐFlashµÄÍøҳʱ£¬¾³£Åöµ½ÓÐЩÎÄ×Ö²»ÄÜÕý³£ÏÔʾ£¬ÓÐЩ»¹¿ÉÄÜÏÔʾÂÒÂ룬±ÈÈçGoogle µÄÔÚÏßÒôÀÖ
²¥·ÅÒôÀÖʱ£¬ÍêÈ«ÏÔʾ²»ÁËÎÄ×Ö¡£
½â¾ö·½·¨ºÜ¼òµ¥£¬²Ù×÷ÈçÏ£º
ÐÞ¸Ä/etc/fonts/conf.d/49-sansserif.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd& ......
NAND Flash µÄÊý¾ÝÊÇÒÔbit µÄ·½Ê½±£´æÔÚmemory cell£¬Ò»°ãÀ´Ëµ£¬Ò»¸öcell ÖÐÖ»ÄÜ´æ´¢Ò»¸öbit¡£ÕâЩcell ÒÔ8 ¸ö»òÕß16 ¸öΪµ¥Î»£¬Á¬³Ébit line£¬ÐγÉËùνµÄbyte(x8)/word(x16)£¬Õâ¾ÍÊÇNAND Device µÄλ¿í¡£ÕâЩLine »áÔÙ×é³ÉPage.
(Nand Flash ÓжàÖֽṹ£¬ÎÒʹÓõÄNand Flash ÊÇK9F1208,ÏÂÃæÄÚÈÝÕë¶ÔÈýÐǵÄK9F1208U0M)£¬Ã¿ ......