Oracle 10g ¹éµµÈÕÖ¾£¨Archive Log £©
¹ØÓÚOracle 10g ¹éµµ·½Ê½µÄÌÖÂÛ£º¹Ø±Õ¹éµµ/ÆôÓÃÉÁ»Ø»Ö¸´Çø¹éµµ(Oracle 10gÐÂÌØÐÔ)/ÆôÓÃÀàOracle9iµÄ¹éµµ
×¢£ºÔÚOracle°²×°¹ý³ÌÖУ¬Èç¹ûÊý¾Ý¿âÊÇ×Ô¶¯´´½¨µÄ£¬ÄÇô¸ÃÊý¾Ý¿â×î³õµÄ´æµµÄ£Ê½ÊÇÓɲÙ×÷ϵͳָ¶¨µÄ¡£Í¨³£Çé¿öÏ£¬¹éµµÈÕÖ¾ÔÚOracleÊý¾Ý¿â°²×°½áÊøºóÐèÒªÊÖ¹¤´´½¨¡£
»·¾³£ºOracle 10g 10.2.0.1.0/Windows 2003 Server SP1
Êý¾Ý×ÖµäÊÓͼ£ºv$archived_log,v$log,v$archive_dest,v$database,v$archive_processes,
v$backup_redolog,v$log_histroy,v$recovery_file_dest.
Ò»¡¢¹Ø±Õ¹éµµ
£±¡¢Æô¶¯SQL*PLUSÒÔ¹ÜÀíÉí·ÝµÇ¼OracleÊý¾Ý¿â£º
SQL> connect / as sysdba
£²¡¢¹Ø±ÕÊý¾Ý¿âʵÀý
SQL> shutdown immediate
£³¡¢±¸·ÝÊý¾Ý¿â£ºÔÚ¶ÔÊý¾Ý¿â×ö³öÈκÎÖØÒªµÄ¸Ä±ä֮ǰ£¬½¨Ò鱸·ÝÊý¾Ý¿âÒÔÃâ³öÏÖÈκÎÎÊÌâ¡£
£´¡¢Æô¶¯Ò»¸öеÄʵÀý²¢×°ÔØÊý¾Ý¿â£¬µ«²»´ò¿ªÊý¾Ý¿â£º
SQL> startup mount
£µ¡¢½ûÖ¹×Ô¶¯´æµµ
SQL> alter system archive log stop;
£¶¡¢½ûÖ¹´æµµÁª»úÖØ×öÈÕÖ¾£º×ª»»Êý¾Ý¿âµÄ´æµµÄ£Ê½¡£
SQL> alter database noarchivelog ;
£·¡¢´ò¿ªÊý¾Ý¿â£º
SQL> alter database open ;
£¸¡¢²ì¿´ÒÑÁ¬½ÓʵÀýµÄ´æµµÐÅÏ¢£º
SQL> archive log list ;
Êý¾Ý¿âÈÕ־ģʽ ·Ç´æµµÄ£Ê½
×Ô¶¯´æµµ ½ûÓÃ
´æµµÖÕµã E:\oracle\arc
×îÔçµÄÁª»úÈÕÖ¾ÐòÁÐ 50
µ±Ç°ÈÕÖ¾ÐòÁÐ 52
¶þ¡¢ÆôÓÃÉÁ»Ø»Ö¸´Çø¹éµµ(Oracle 10gÐÂÌØÐÔ)£OracleÊý¾Ý¿â°²×°Íê³ÉºóÊ״δ´½¨×Ô¶¯¹éµµÈÕÖ¾
£±¡¢Æô¶¯SQL*PLUSÒÔ¹ÜÀíÉí·ÝµÇ¼OracleÊý¾Ý¿â£º
SQL> connect / as sysdba
£²¡¢¹Ø±ÕÊý¾Ý¿âʵÀý
SQL> shutdown immediate
£³¡¢±¸·ÝÊý¾Ý¿â£ºÔÚ¶ÔÊý¾Ý¿â×ö³öÈκÎÖØÒªµÄ¸Ä±ä֮ǰ£¬½¨Ò鱸·ÝÊý¾Ý¿âÒÔÃâ³öÏÖÈκÎÎÊÌâ¡£
£´¡¢Æô¶¯Ò»¸öеÄʵÀý²¢×°ÔØÊý¾Ý¿â£¬µ«²»´ò¿ªÊý¾Ý¿â£º
SQL> startup mount
£µ¡¢×ª»»Êý¾Ý¿âµÄ´æµµÄ£Ê½Îª¹éµµ·½Ê½£º
SQL> alter database archivelog ;
£¶¡¢´ò¿ªÊý¾Ý¿â£º
SQL> alter database open ;
£·¡¢ÔÚÊý¾Ý¿âʵÀýÆô¶¯ºóÔÊÐí×Ô¶¯´æµµ·½Ê½£º
SQL> alter system archive log start ;
£¸¡¢Í¨¹ý×ÊÔ´¹ÜÀíÆ÷²ì¿´f
Ïà¹ØÎĵµ£º
Óû§ÃûÓë¿ÚÁîÏàͬʹµÃ¿ÚÁîÒ×ÓÚ¼ÇÒäºÍ²Â²â£¬µ«¿ÚÁîÒ²ÈÝÒ×±»ÆÆÒ룬Òò´Ë×÷ΪÊý¾Ý¿â¹ÜÀíÔ±Ó¦¸Ã¼°Ê±¼ì²éÓû§µÄÉèÖ㬱ÜÃâÓû§ÃûÓë¿ÚÁîÏàͬ£¬Ïû³ý²»°²ÒòËØ¡£
´´½¨²éѯ×Ó³ÌÐò£º
SQL> create or replace procedure sys.find_the_same as
hex_password varchar2(30);
trans_password varchar2(30);
v_username varchar2(30); ......
ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
Ê×ÏÈ£¬Ô ......
--±äÁ¿¸³Öµ
declare
identity :=0;
a varchar2(59,0);
b varchar2(50):='abc';
a :='cba';
-- ¿ØÖÆÓï¾ä
----------------------------------
if a>b then
  ......