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

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


ÎﻯÊÓͼµÄ¿ìËÙˢвÉÓÃÁËÔöÁ¿µÄ»úÖÆ£¬ÔÚË¢ÐÂʱ£¬Ö»Õë¶Ô»ù±íÉÏ·¢Éú±ä»¯µÄÊý¾Ý½øÐÐˢС£Òò´Ë¿ìËÙË¢ÐÂÊÇÎﻯÊÓͼˢз½Ê½µÄÊ×Ñ¡¡£
µ«ÊÇ¿ìËÙˢоßÓн϶àµÄÔ¼Êø£¬¶øÇÒ¶ÔÓÚ²ÉÓÃON COMMITģʽ½øÐпìËÙˢеÄÎﻯÊÓͼ¸üÊÇÈç´Ë¡£¶ÔÓÚ°üº¬¾Û¼¯ºÍ°üº¬Á¬½ÓµÄÎﻯÊÓͼµÄ¿ìËÙˢлúÖƲ¢²»Ïàͬ£¬¶øÇÒ¶ÔÓÚ¶à²ãǶÌ×µÄÎﻯÊÓͼµÄ¿ìËÙˢиüÊÇÓжîÍâµÄÒªÇó¡£
Èç´Ë¶àµÄÏÞÖÆÒ»°ãºÜÄѼÇÈ«£¬µ±½¨Á¢ÎﻯÊÓͼʧ°Üʱ£¬Oracle¸ø³öµÄ´íÎóÐÅÏ¢ÓÖ¹ýÓÚ¼òµ¥£¬ÓÐʱÎÞ·¨Ê¹Äã׼ȷ¶¨Î»µ½ÎÊÌâµÄÔ­Òò¡£
OracleÌṩµÄDBMS_MVIEW.EXPLAIN_MVIEW¹ý³Ì¿ÉÒÔ°ïÖúÄã¿ìËÙ¶¨Î»ÎÊÌâµÄÔ­Òò¡£ÏÂÃæͨ¹ýÒ»¸öÀý×ÓÀ´ËµÃ÷£¬Èç¹ûͨ¹ýÕâ¸ö¹ý³ÌÀ´½â¾öÎÊÌâ¡£
 
½¨Á¢Ò»¸ö¿ìËÙˢеÄǶÌ×ÎﻯÊÓͼ£º
SQL> CREATE TABLE B (ID NUMBER PRIMARY KEY, NAME VARCHAR2(30));
±íÒÑ´´½¨¡£
SQL> CREATE TABLE C (ID NUMBER PRIMARY KEY, NAME VARCHAR2(30));
±íÒÑ´´½¨¡£
SQL> CREATE TABLE A (ID NUMBER, BID NUMBER, CID NUMBER, NUM NUMBER, 
  2  CONSTRAINT FK_A_B_BID FOREIGN KEY (BID) REFERENCES B(ID), 
  3  CONSTRAINT FK_A_C_BID FOREIGN KEY (CID) REFERENCES C(ID));
±íÒÑ´´½¨¡£
SQL> INSERT INTO B SELECT ROWNUM, 'B'||ROWNUM from USER_TABLES WHERE ROWNUM <= 6;
ÒÑ´´½¨6ÐС£
SQL> INSERT INTO C SELECT ROWNUM, 'C'||ROWNUM from USER_TABLES WHERE ROWNUM <= 4;
ÒÑ´´½¨4ÐС£
SQL> INSERT INTO A SELECT ROWNUM, TRUNC((ROWNUM - 1)/2) + 1, TRUNC((ROWNUM - 1)/3) + 1, ROWNUM 
  2  from USER_TABLES
  3  WHERE ROWNUM <= 12;
ÒÑ´´½¨12ÐС£
SQL> COMMIT;
Ìá½»Íê³É¡£
ÉÏÃ潨Á¢ºÃ»ù±í£¬ÏÂÃ潨Á¢µÚÒ»²ãÎﻯÊÓͼ¡£
SQL> CREATE MATERIALIZED VIEW LOG ON A WITH ROWID;
ʵÌ廯ÊÓͼÈÕÖ¾ÒÑ´´½¨¡£
SQL> CREATE MATERIALIZED VIEW LOG ON B WITH ROWID;
ʵÌ廯ÊÓͼÈÕÖ¾ÒÑ´´½¨¡£
SQL> CREATE MATERIALIZED VIEW LOG ON C WITH ROWID;
ʵÌ廯ÊÓͼÈÕÖ¾ÒÑ´´½¨¡£
SQL> CREATE MATERIALIZED VIEW MV_ABC REFRESH FAST ON COMMIT ENABLE QUERY REWRITE AS
  2  SELECT C.ID CID, C.NAME CNAME, B.ID BID, B.NAME BNAME, A.NUM, 
  3  A.ROWID AROWID, B.ROWID BROWID, C.ROWID CROWID 
  4  from A, B, C WHERE A.BID = B.ID A


Ïà¹ØÎĵµ£º

Oracle ´æ´¢¹ý³Ì ¶¨Òå ºÍ Óŵã

 
¶¨Ò壺
´æ´¢¹ý³Ì£¨Stored Procedure £©ÊÇÒ»×éΪÁËÍê³ÉÌض¨¹¦ÄܵÄSQL Óï¾ä¼¯£¬¾­±àÒëºó´æ´¢ÔÚÊý¾Ý¿âÖС£Óû§Í¨¹ýÖ¸¶¨´æ´¢¹ý³ÌµÄÃû×Ö²¢¸ø³ö²ÎÊý£¨Èç¹û¸Ã´æ´¢¹ý³Ì´øÓвÎÊý£©À´Ö´ÐÐËü¡£´æ´¢¹ý³ÌÊÇÊý¾Ý¿âÖеÄÒ»¸öÖØÒª¶ÔÏó£¬ÈκÎÒ»¸öÉè¼ÆÁ¼ºÃµÄÊý¾Ý¿âÓ¦ÓóÌÐò¶¼Ó¦¸ÃÓõ½´æ´¢¹ý³Ì¡£ ´æ´¢¹ý³ÌÊÇÓÉÁ÷¿ØÖƺÍSQL Óï¾äÊéдµÄ¹ý ......

OracleÊý¾Ý¿â


ɾ³ýÊý¾Ý¿â£º
 
1¡¢Í£Ö¹Êý¾Ý¿â·þÎñ
 
2¡¢É¾³ýʵÀý oradim –delete –sid liluf
 
3¡¢É¾³ýÊý¾Ý¿âÎļþ
 
ÐÂÔöÊý¾Ý¿â£º
 
1¡¢  ½¨Á¢Êý¾Ý¿â¡¢ÅäÖüàÌý¡¢½¨Á¢Óû§
 
2¡¢  ÓÃÃüÁîÆô¶¯Êý¾Ý¿â
 
 ×¢:×¢²á±íregedit  HKEY_LOCAL_MACHINE­&sh ......

ORACLEÖеÄdefault role£¬set role

oracleȨÏÞÌåϵÖÐÓиödefault role£¬±È½ÏÄÑÒÔÀí½â¡£ÏÂÃæÓÃʵÀý˵Ã÷Ò»ÏÂ×÷Óá£
ÎÒÃÇ¿ÉÒÔ¸øij¸öÓû§·ÖÅäһЩ½ÇÉ«£¬±ÈÈçrole r1,r2,r3,r4£¬¶øÆäÖпÉÒÔ½«Ä³Ð©½ÇÉ«±ÈÈçr1ÉèÖÃΪdefault role£¬ÆäËûµÄ²»ÉèÖóÉdefault role£¬ÕâÑù£¬µ±¸ÃÓû§µÇ¼ʱ£¬×Ô¶¯¾ßÓÐdefault roleÖÐËù°üº¬µÄȨÏÞ£¬ÆäËûµÄ½ÇÉ«Ëù¾ßÓеÄȨÏÞҪͨ¹ýset role ½ÇÉ ......

Oracle Latch ½éÉÜ


 
LatchÊÇOracleÌṩµÄÇáÁ¿¼¶Ëø×ÊÔ´£¬ËûÓÃÓÚ¿ìËÙ£¬¶Ìʱ¼äµÄËø¶¨×ÊÔ´£¬·ÀÖ¹¶à¸ö²¢·¢½ø³ÌͬʱÐ޸ķÃÎÊij¸ö¹²Ïí×ÊÔ´£¬ËûÖ»¹¤×÷ÔÚÄÚ´æÖУ¬ÎÒÃÇ¿ÉÒÔ²»´ó׼ȷµÄ˵£¬ÄÚ´æÖÐ×ÊÔ´µÄËø½Ðlatch£¬Êý¾Ý¿â¶ÔÏó(±í£¬Ë÷ÒýµÈ)µÄËø½ÐLock¡£±ÈÈçÊý¾Ý»º´æÖеÄij¸ö¿éÒª±»¶ÁÈ¡£¬ÎÒÃÇ»á»ñµÃÕâ¸ö¿éµÄ latch£¬Õâ¸ö¹ý³Ì½Ð×öpin£¬ÁíÍâÒ»¸ö ......

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ