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

Oracle³£ÓÃÉÁ»Ø²Ù×÷

È·ÈÏÉÁ»ØÆôÓÃÖÐ
SHOW PARAMETER RECYCLEBIN; ÆôÓÃÉÁ»Ø
ALTER SYSTEM SET RECYCLEBIN = ON; ÉÁ»ØDROPµÄ±í
FLASHBACK TABLE xxx TO BEFORE DROP; ³¹µ×Çå³ýDROPµÄ±í,½«²»ÄÜÔÙÉÁ»Ø.
PURGE TABLE xxx; Ö±½Ó³¹µ×DROPµô±í
DROP TABLE xxx PURGE; Çå¿ÕËùÓÐDROPµÄ±í
PURGE RECYCLEBIN; È·ÈÏ×î´ó¿ÉÉÁ»Ø¶à¾Ã(ÃëÊý)֮ǰµÄDML²Ù×÷.(²»±£Ö¤)
SHOW PARAMETER undo_retention; ¸Ä±ä×î´ó¿ÉÉÁ»Ø¶à¾Ã֮ǰµÄDML²Ù×÷
ALTER SYSTEM SET undo_retention = 7200; ÉÁ»ØÎóDML²Ù×÷.ÒÔÎó²Ù×÷emp±íjob×Ö¶ÎΪÀý
a.)È·ÈÏÏàÓ¦µÄxid
SELECT versions_xid, job from emp VERSIONS BETWEEN SCN minvalue AND maxvalue;
b.)È·ÈÏÏàÓ¦ÐèÒªÖ´ÐеÄSQLÓï¾ä. ¼´ÊÇÏÂÃæ²éѯ½á¹û¼¯µÄUNDO_SQL×ֶεÄÄÚÈÝ
SELECT operation, start_scn, undo_sql from flashback_transaction_query WHERE xid = hextoraw('À´×ÔÉÏÒ»²éѯµÄxid');
c1.)Ö´ÐÐÏàÓ¦µÄSQLÓï¾ä. ±¾·½·¨±È½Ï׼ȷ,²»»áÓ°ÏìÖ®ºó·¢ÉúµÄÆäËû×ֶεı仯.
c2.)²»·½±ãÖ´ÐÐÉÏÒ»·½·¨Ê±,Ö´ÐÐÒÔÏÂÓï¾ä.×¢ÒâÔÚÏàÓ¦²Ù×÷Ö®ºó±íÖз¢ÉúµÄËùÓвÙ×÷¶¼½«±»»Ø¸´.
       FLASHBACK TABLE emp TO SCN À´×ÔÉÏÒ»²éѯµÄSCNºÅ;

       Èç¹ûÔÚÖ´ÐÐʱ³ö´í,²¢Ìáʾ¸Ã±íδÆôÓÃÐÐÒÆ¹¦ÄÜ(row movement),Ö´ÐÐÒÔÏÂÓï¾ä
       ALTER TABLE emp ENABLE ROW MOVEMENT;
c3.)Ò²¿ÉÒÔ»Ö¸´µ½Ä³Ò»Ê±¼äµã,¸Ãʱ¼äµãÖ®ºóµÄËùÓвÙ×÷¶¼½«±»»Ø¸´.to_timestampÒ²¿ÉÒÔʹÓÃÍêÕû¸ñʽ('2009-12-04 22:16:20', 'YYYY-MM-DD HH:MI:SS');
      FLASHBACK TABLE emp TO TIMESTAMP to_timestamp('17:35', 'hh23:mi');


Ïà¹ØÎĵµ£º

OracleËø»úÖÆ

      ÔÚ´óÐÍÊý¾Ý¿âÖУ¬Ò»·½ÃæÊý¾Ý¿âÒªÌṩ¸ß²¢·¢·ÃÎʵÄÄÜÁ¦£¬ÓÖÒª±£Ö¤Ã¿Ò»¸öÓû§ÒÔÒ»Öµķ½Ê½·ÃÎʺÍÐÞ¸ÄÊý¾Ý¡£Ëø»úÖÆ¾ÍÊÇÓÃÀ´½â¾öÕâÒ»ÎÊÌ⣬ÓÃÓÚ¿ØÖƶԹ²Ïí×ÊÔ´µÄ²¢·¢·ÃÎÊ£¬±£Ö¤Êý¾Ý·ÃÎʵÄÒ»ÖÂÐÔºÍ׼ȷÐÔ¡£
      
      ÔÚoracleÖУ ......

ÀûÓÃOracleµÄutl_smtp ·¢ËÍÓʼþ£¨¹«ÍøÓʼþºÍ·þÎñÆ÷£©

CREATE OR REPLACE PROCEDURE send_mail(  
     p_recipient VARCHAR2, -- Óʼþ½ÓÊÕÈË  
     p_subject   VARCHAR2, -- Óʼþ±êÌâ  
     p_message   VARCHAR2  -- ÓʼþÕýÎÄ  
) ......

Oracle Application ExpressÆô¶¯·þÎñ

Æô¶¯xxService ¸úÒ»¸öxxxListener µÄ·þÎñ
 
怬Oracle Application Express
Oracle Application Express (Oracle APEX) ÊÇÒ»¸öÓÃÓÚ Oracle Êý¾Ý¿âµÄ¿ìËÙ Web Ó¦ÓóÌÐò¿ª·¢¹¤¾ß¡£½öƾ½è Web ä¯ÀÀÆ÷ºÍÓÐÏ޵ıà³Ì¾­Ñ飬¾ÍÄÜ¿ìËÙ¿ª·¢ºÍ²¿Êð³ö°²È«µÄרҵӦÓóÌÐò¡£
http://localhost:8080/apex 
ÊäÈëÓû§Ãû(Sys ......

Oracle´´½¨Íⲿ¹ÜÀí±í

ÒÔsystem»òÆäËû¹ÜÀíÔ±µÇ¼ ´´½¨Oracle¹Ü¿ØÄ¿Â¼
CREATE DIRECTORY hc_name_data_dir AS 'c:\ora\external\hc_name\';
CREATE DIRECTORY hc_name_log_dir AS 'c:\ora\external\hc_name\'; È·ÈÏ
SELECT * from dba_directories WHERE directory_name like '%HC%'; ÊÚÓèĿ¼ÏàӦȨÏÞ¸øÐèÒª´´½¨Í ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ