Flash »á±íÊý¾Ý Ö®oracle 10g
½çÃ濪·¢ÈËÔ±±¨ÓкܶàÖظ´Êý¾ÝÔÚÓû§È¨ÏÞ±í¡£È»ºóÎÒɾ³ýÁ˱íÊý¾Ýdelete ·½Ê½£¬ÐÞ¸ÄÁ˶ÔÓ¦µÄ´æ´¢¹ý³Ìʹ֮²»Öظ´£¡
ºóÀ´·¢ÏÖ ÖØÐÂÀ»ØµÄÊý¾ÝûȨÏÞ¡£ Ö»ºÃÉÁ»Øµ½½ñÌìÁ賿ÁË£¡
SQL> ALTER TABLE BA.T_POWER_ADMIN ENABLE ROW MOVEMENT;
Table altered
SQL> flashback table ba.t_Power_Admin to timestamp to_timestamp('2009-10-29 10:00:00','yyyy-mm-dd hh24:mi:ss');
flashback table ba.t_Power_Admin to timestamp to_timestamp('2009-10-29 10:00:00','yyyy-mm-dd hh24:mi:ss')
ORA-00604: µÝ¹é SQL ¼¶±ð 1 ³öÏÖ´íÎó
ORA-12801: ²¢Ðвéѯ·þÎñÆ÷ P018 Öз¢³ö´íÎóÐźÅ
ORA-01555: ¿ìÕÕ¹ý¾É: »ØÍ˶κŠ13 (Ãû³ÆΪ "_SYSSMU13$") ¹ýС
SQL> flashback table ba.t_Power_Admin to timestamp to_timestamp(2009-10-30 00:45:00','yyyy-mm-dd hh24:mi:ss');
2 ;
3 /
flashback table ba.t_Power_Admin to timestamp to_timestamp(2009-10-30 00:45:00','yyyy-mm-dd hh24:mi:ss');
;
ORA-01756: ÒýºÅÄÚµÄ×Ö·û´®Ã»ÓÐÕýÈ·½áÊø
SQL> flashback table ba.t_Power_Admin to timestamp to_timestamp('2009-10-30 00:45:00','yyyy-mm-dd hh24:mi:ss');
flashback table ba.t_Power_Admin to timestamp to_timestamp('2009-10-30 00:45:00','yyyy-mm-dd hh24:mi:ss')
ORA-00604: µÝ¹é SQL ¼¶±ð 1 ³öÏÖ´íÎó
ORA-12801: ²¢Ðвéѯ·þÎñÆ÷ P014 Öз¢³ö´íÎóÐźÅ
ORA-01555: ¿ìÕÕ¹ý¾É: »ØÍ˶κŠ12 (Ãû³ÆΪ "_SYSSMU12$") ¹ýС
SQL> flashback table ba.t_Power_Admin to timestamp to_timestamp('2009-10-30 10:45:00','yyyy-mm-dd hh24:mi:ss');
Done
SQL> execute P_GATHER_DAY_M_ADMIN;
PL/SQL procedure successfully completed
SQL>
Ïà¹ØÎĵµ£º
a)Êý¾Ý¿â±¾ÉíµÄÓÅ»¯
³õʼ»¯Îļþ init.ora
open_cursors = 150 ´ò¿ªµÄÓαêµÄ¸öÊý
ºÜ¶àµÄ´æ´¢¹ý³ÌµÄʱºò ¿ÉÒÔ°ÑËüµ÷´óЩ
......
³õʼ»¯Ïà¹Ø²ÎÊýjob_queue_processes
alter system set job_queue_processes=39 scope=spfile;//×î´óÖµ²»Äܳ¬¹ý1000 ;job_queue_interval = 10 //µ÷¶È×÷ҵˢÐÂƵÂÊÃëΪµ¥Î»
job_queue_process ±íʾoracleÄܹ»²¢·¢µÄjobµÄÊýÁ¿£¬¿ÉÒÔͨ¹ýÓï¾ä¡¡¡¡
show parameter job_queue_process;
À´²é¿´oracleÖÐjob_queue_processµÄÖµ¡ ......
Oracle µÄ´úÂë±íʾ¼°ÊÂÀý
1. select + xxx + from + xxx //²éѯÓï¾ä xxx ±íʾһ¸ö±í
Select * from + xxx // * ±íʾһ¸öÁбíÖÐËùÓеÄÄÚÈÝ
Àࣺ 1£©// select * from country
  ......
¹ØÓÚ´æ´¢¹ý³ÌºÍº¯ÊýµÄ¶¨ÒåÍøÉÏÒ»ËÑÒ»´ó°Ñ£¬ÕâÀï¾Í²»ÌØÊâ½éÉÜÁË£¬ÕâÀï¾ÍÖ»¶ÔÎÒ×Ô¼ºÐ´µÄ¼¸ÖÖ¸ñʽµÄ´æ´¢¹ý³ÌºÍº¯Êý×öһЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓеã°ïÖú¡£
Ò»£º´æ´¢¹ý³Ì
1£º×îÆÕͨµÄÒ»ÖÖ¡££¨´«²Î£¬²éѯÓαִ꣬ÐУ¬Ñ»·Óαê×ö²åÈ붯×÷£©¡£
create or replace procedure zy2040_sirole(rolekey in varchar2) ......