Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

µ±ORACLE¹éµµÈÕÖ¾ÂúºóÈçºÎÕýȷɾ³ý¹éµµÈÕÖ¾

µ±ORACLE ¹éµµÈÕÖ¾ÂúÁ˺󣬽«ÎÞ·¨Õý³£µÇÈëORACLE£¬ÐèҪɾ³ýÒ»²¿·Ö¹éµµÈÕÖ¾²ÅÄÜÕý³£µÇÈëORACLE¡£
Ò»¡¢Ê×ÏÈɾ³ý¹éµµÈÕÖ¾ÎïÀíÎļþ£¬¹éµµÈÕÖ¾Ò»°ã¶¼ÊÇλÓÚarchiveĿ¼Ï£¬AIXϵͳÏÂÎļþ¸ñʽΪ“1_17884_667758186.dbf”£¬½¨Òé²Ù×÷Ç°ÏȶÔÊý¾Ý¿â½øÐб¸·Ý£¬É¾³ýʱÖÁÉÙ±£Áô×î½ü¼¸ÌìµÄÈÕÖ¾ÓÃÓÚÊý¾Ý¿â»Ö¸´¡£
¶þ¡¢°Ñ¹éµµÈÕÖ¾µÄÎïÀíÎļþɾ³ýºó£¬ÎÒÃǾͿÉÒÔÕý³£µÇÈëORACLEÁË£¬µ«ÊÇ»¹Ã»ÍêÈ«°Ñ¹éµµÈÕ־ɾ³ý¸É¾»£¬ORACLEµÄcontrolfileÖÐÈÔÈ»¼Ç¼×ÅÕâЩarchivelogµÄÐÅÏ¢£¬ÔÚoracleµÄOEM¹ÜÀíÆ÷ÖÐÓпÉÊÓ»¯µÄÈÕÖ¾Õ¹ÏÖ³ö£¬µ±ÎÒÃÇÊÖ¹¤Çå³ýarchiveĿ¼ÏµÄÎļþºó£¬ÕâЩ¼Ç¼²¢Ã»Óб»ÎÒÃÇ´ÓcontrolfileÖÐÇå³ýµô£¬½ÓÏÂÈ¥ÎÒÃÇÒª×öµÄ¾ÍÊÇÕâ¸ö¹¤×÷¡£
ÎÒÃÇÀûÓÃRMAN½øÐÐɾ³ý²Ù×÷£¬²Ù×÷²½ÖèÈçÏ£º(window¿Í»§¶ËϵͳΪÀý)
1.Ö¸¶¨Êý¾Ý¿âʵÀý
C:\Documents and Settings\Administrator>SET ORACLE_SID =orcl
2.Á¬½ÓÊý¾Ý¿â
C:\Documents and Settings\Administrator>RMAN TARGET SYS/sysadmin@orcl
3.²é¿´¹éµµÈÕÖ¾µÄ״̬
RMAN> list archivelog all;
4.ÊÖ¹¤É¾³ý¹éµµÈÕÖ¾Îļþ
RMAN> DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';
 ËµÃ÷£º
 SYSDATA-7£¬±íÃ÷µ±Ç°µÄϵͳʱ¼ä7ÌìÇ°£¬before¹Ø¼ü×Ö±íʾÔÚ7ÌìÇ°µÄ¹éµµÈÕÖ¾£¬Èç¹ûʹÓÃÁËÉÁ»Ø¹¦ÄÜ£¬Ò²»áɾ³ýÉÁ»ØµÄÊý¾Ý¡£
ͬÑùµÀÀí£¬Ò²¿ÉÒÔɾ³ý´Ó7ÌìÇ°µ½ÏÖÔÚµÄÈ«²¿ÈÕÖ¾£¬²»¹ýÕâ¸öÃüÁîÒª¿¼ÂÇÇå³þ£¬×öÍêÕâ¸öɾ³ý£¬×îºÃÂíÉϽøÐÐÈ«±¸·ÝÊý¾Ý¿â
DELETE ARCHIVELOG from TIME 'SYSDATE-7'; ɾ³ý´Ó7ÌìÇ°µ½ÏÖÔÚµÄÈ«²¿ÈÕÖ¾,É÷ÓÃ
UNIX/LINUXÏÂÒ²¿ÉÒÔͨ¹ýFINDÕÒµ½7ÌìÇ°µÄ¹éµµÊý¾Ý£¬Ê¹ÓÃEXEC×Ó²Ù×÷ɾ³ý
find /oraarchive -xdev -mtime +7 -name "*.dbf" -exec rm -f {} ;
ÕâÑù×öÈÔÈ»»áÔÚRMANÀïÁôÏÂδ¹ÜÀíµÄ¹éµµÎļþ
ÈÔÐèÒªÔÚRMANÀïÖ´ÐÐÏÂÃæ2ÌõÃüÁî
crosscheck archivelog all;
delete expired archivelog all;
ËùÒÔ»¹²»ÈçÉÏÃæµÄ·½·¨ºÃÓ㬲»¹ýÓÃFINDµÄºÃ´¦¾ÍÊÇ£¬¿ÉÒÔÔÚÌõ¼þÉÏ£¬ºÍEXEC×ÓÏîÉÏ×öºÜ¶à²Ù×÷£¬ÊµÏÖ¸ü¸´ÔӵŦÄÜ
5.Í˳örman
RMAN> exit
¸½´ø˵Ã÷£ºRMAN ÊÇOracleÊý¾Ý¿âÈí¼þ×Ô´øµÄ±¸·Ý»Ö¸´¹¤¾ß£¬Ò»ÖÖÊÇÀàËÆÓÚDOS£¬Í¨¹ý¼üÅ̲Ù×÷µÄ ÃüÁîÐз½Ê½¡£
ͨ¹ýRMANÁ¬½Ó±¾µØÊý¾Ý¿â·Ç³£¼òµ¥£¬ÒÔ W indows ƽ̨ΪÀý£¬½øÈëµ½ÃüÁîÌáʾ·û½çÃ棺
C:\Documents and Settings\junsansi> SET ORACLE_SID =jssbook
C:\Documents and 


Ïà¹ØÎĵµ£º

oracle²¹¶¡ÏÂÔØ

oracle²¹¶¡ÏÂÔØ
¹Ø¼ü×Ö: oracle
9.2.0.4  = 3095277
9.2.0.5  = 3501955
9.2.0.6  = 3948480
9.2.0.7  = 4163445
9.2.0.8  = 4547809£¨9i×îÖÕ£©
10.1.0.3 = 3761843
10.1.0.4 = 4163362
10.1.0.5 = 4505133
10.2.0.2 = 4547817
10.2.0.3 = 5337014
10.2.0.4 = 6810189 ......

ORACLEÎﻯÊÓͼ ¶¨Î»µ¼ÖÂÎﻯÊÓͼÎÞ·¨¿ìËÙˢеÄÔ­Òò


ÎﻯÊÓͼµÄ¿ìËÙˢвÉÓÃÁËÔöÁ¿µÄ»úÖÆ£¬ÔÚË¢ÐÂʱ£¬Ö»Õë¶Ô»ù±íÉÏ·¢Éú±ä»¯µÄÊý¾Ý½øÐÐˢС£Òò´Ë¿ìËÙË¢ÐÂÊÇÎﻯÊÓͼˢз½Ê½µÄÊ×Ñ¡¡£
µ«ÊÇ¿ìËÙˢоßÓн϶àµÄÔ¼Êø£¬¶øÇÒ¶ÔÓÚ²ÉÓÃON COMMITģʽ½øÐпìËÙˢеÄÎﻯÊÓͼ¸üÊÇÈç´Ë¡£¶ÔÓÚ°üº¬¾Û¼¯ºÍ°üº¬Á¬½ÓµÄÎﻯÊÓͼµÄ¿ìËÙˢлúÖƲ¢²»Ïàͬ£¬¶øÇÒ¶ÔÓÚ¶à²ãǶÌ×µÄÎﻯÊÓͼµÄ¿ìËÙˢР......

linuxÏÂoracleÆô¶¯¹ý³Ì

ÔÚlinuxÏÂÆô¶¯oracle ºÍÔÚwindowsÊÇÓвî±ðµÄ£¬¶ÔÓÚÒ»°ãÔÚwindowsϲÙ×÷Ï°¹ßÈËÓкܶ಻ÊÊÓ¦£¬ËùÒÔÎÒÌرðдÕâÑùÎÄÕ£¬ÒÔ·½±ãÐÂÊÖ½øÐвÙ×÷£¬ÏÂÃæ¾ÍÒ»²½Ò»²½½²½âÆô¶¯¹ý³Ì¡£
1.ͨ¹ýÖÕ¶ËÁ¬½Óµ½linux·þÎñÆ÷,µ±È»ÕâÑùµÄÈí¼þºÜ¶àÀýÈçputty,SecureCRT,²¢ÒÔoracleÓû§½øÐеǼ£¬·ñÔòÆô¶¯oracleʱ»á´íµÄ£¬Ã»ÓÐȨÏÞÆô¶¯.(Ò²¿ÉÓû§root µ ......

Oracle Óαê Cursor ʹÓÃ

create or replace procedure getok
as
cursor mycur is select ids,name from aaa where name not in (select names from ok);
vempno aaa.ids%type;
vename aaa.name%type;
begin
open mycur;
loop
fetch mycur into vempno,vename;
exit when mycur%notfound;
if mycur%found then
    insert ......

ÔÚ Oracle Öд洢Óë¹ÜÀí´ó¶ÔÏóÊý¾ÝÀàÐÍ


¡¡Ò»¡¢OracleÊý¾Ý¿âÖ§³ÖµÄ´ó¶ÔÏóÊý¾ÝÀàÐÍ¡£
¡¡¡¡ÔÚOracleÊý¾Ý¿âÖÐΪÁ˸üºÃµÄ¹ÜÀí´óÈÝÁ¿µÄÊý¾Ý£¬×¨ÃÅ¿ª·¢ÁËһЩ¶ÔÓ¦µÄ´ó¶ÔÏóÊý¾ÝÀàÐÍ¡£¾ßÌåµÄÀ´Ëµ£¬ÓÐÈçϼ¸ÖÖ£º
¡¡¡¡Ò»ÊÇBLOBÊý¾ÝÀàÐÍ¡£ËüÊÇÓÃÀ´´æ´¢¿É±ä³¤¶ÈµÄ¶þ½øÖÆÊý¾Ý¡£ÓÉÓÚÆä´æ´¢µÄÊÇͨÓõĶþ½øÖÆÊý¾Ý£¬Îª´ËÔÚÊý¾Ý¿âÖ®¼ä»òÕßÔÚ¿Í»§¶ËÓë·þÎñÆ÷Ö®¼ä½øÐд«ÊäµÄʱºò£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ