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

oracle£ºora 04091

ÔÚÒ»±íorginfoÉϽ¨Á¢´¥·¢Æ÷£¬ÆäÖаüÀ¨ÒÔ϶¯×÷£º
Ôöɾ¸Ä´Ë±íµÄ¼Ç¼ʱ£¬ÐèÒª²éѯ´Ë±í£¬ÉõÖÁ¸Äд´Ë±íµÄÆäËû¼Ç¼¡£±¨¸æ“ora-04091:±íÒѾ­±»Ð޸ģ¬¶ÔÓÚ´¥·¢Æ÷/º¯Êý²»¿É¼û”¡£
Cause: A trigger (or a user defined PL/SQL function that is referenced in this statement) attempted to look at (or modify) a table that was in the middle of being modified by the statement which fired it.
Action: Rewrite the trigger (or function) so it does not read that table
Ðм¶´¥·¢Æ÷²»ÄÜ´¥·¢¶ÁÈ¡»òÐ޸ı仯µÄ±í
½â¾öµÄ°ì·¨£ºÐ½¨ÁËÓëorginfo½á¹¹ÍêÈ«ÏàͬµÄÁÙʱ±ítmp_orginfo£¬Ê¹µÃÔÚorginfoÉϵĴ¥·¢Æ÷¶Áдtmp_orginfo,ÔÙÓÃtmp_orginfoÉϵĴ¥·¢Æ÷д»Øorginfo,½â¾öora-04091ÎÊÌâ¡£


Ïà¹ØÎĵµ£º

Oracle±í¿Õ¼ä¹ÜÀí

extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î»      --segment    management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......

oracle dbms_stats °ü

    oracle 8i ÒÔºó¼Ó´¦µÄ¹¦ÄÜ£¬Oracleר¼Ò¿Éͨ¹ýÒ»ÖÖ¼òµ¥µÄ·½Ê½À´ÎªCBOÊÕ¼¯Í³¼ÆÊý¾Ý¡£Ä¿Ç°£¬ÒѾ­²»ÔÙÍƼöÄãʹÓÃÀÏʽµÄ·ÖÎö±íºÍdbms_utility·½·¨À´Éú³ÉCBOͳ¼ÆÊý¾Ý¡£ÄÇЩ¹ÅÀϵķ½Ê½ÉõÖÁÓпÉÄÜΣ¼°SQLµÄÐÔÄÜ£¬ÒòΪËüÃDz¢·Ç×ÜÊÇÄܹ»²¶×½µ½ÓйرíºÍË÷ÒýµÄ¸ßÖÊÁ¿ÐÅÏ¢¡£ CBOʹÓöÔÏóͳ¼Æ£¬ÎªËùÓÐSQLÓï¾äÑ¡Ôñ×î¼Ñµ ......

Oracle CURSORµÄ¼òµ¥Ó÷¨

Ç°ÑÔ£º
 OracleµÄ¶Ô±í²Ù×÷ÖÐÓÐÒ»ÖÖÀàËÆÓÚDataSetµÄ¶ÔÏó²Ù×÷·½·¨CURSOR£¬Ëü¿ÉÒÔͨ¹ý½¨Á¢±íµÄ²Ù×÷¶ÔÏó»òÕß˵±íµÄÖ¸Õë¶ÔÏóÀ´´ïµ½´Ó±íÀïÃæÌáÈ¡Êý¾ÝµÄ²Ù×÷¡£
˵Ã÷£º
 Ò»°ãͨ¹ýSQLÓïÑÔ¿ÉÒÔÕë¶Ôij¸ö±íµÄijһÐлò¶àÐÐÊý¾Ý½øÐвÙ×÷±ÈÈç˵SELECT£¬UPDATEµÈ¡£ÕâЩ²Ù×÷±ØÐëÒÔSQLÓï¾äµÄÓï·¨¸ñʽÀ´±»½âÊÍÆ÷½âÊͲ¢Ö´ÐС£ÔÚʵ¼ ......

Oracle ¿ç¿â ²éѯ ¸´ÖƱíÊý¾Ý

Ô­ÎĵØÖ·£ºhttp://www.cnblogs.com/chinhr/archive/2009/04/22/1440914.html
·½·¨Ò»£º
ÔÚÄ¿Ç°¾ø´ó²¿·ÖÊý¾Ý¿âÓзֲ¼Ê½²éѯµÄÐèÒª¡£ÏÂÃæ¼òµ¥µÄ½éÉÜÈçºÎÔÚoracleÖÐÅäÖÃʵÏÖ¿ç¿â·ÃÎÊ¡£
±ÈÈçÏÖÔÚÓÐ2¸öÊý¾Ý¿â·þÎñÆ÷£¬°²×°ÁË2¸öÊý¾Ý¿â¡£Êý¾Ý¿âserver AºÍB¡£ÏÖÔÚÀ´ÊµÏÖÔÚA¿âÖзÃÎÊBµÄÊý¾Ý¿â¡£
µÚÒ»²½¡¢ÅäÖÃA·þÎñÆ÷¶ËµÄtnsnam ......

Oracle Ê÷µÄÓ¦ÓÃ

ÎÊÌâÌá³ö£º
Ò»¸ö¸ß¼¶SQLÓï¾äÎÊÌâ
¼ÙÉèÓÐÒ»ÕÅ±í£¬ÓÐÕâÑùһЩÊý¾Ý
a b
1 2
0 2
2 3
3 4

5 6
6 7
12 7

aÊÇ×Ó½Úµã bÊǸ¸½Úµã ,Èç¹ûbΪnull ÔòΪһ¿ÃÊ÷µÄ¸ù½Úµã
¸ù¾ÝAÓëBµÄÕâ¸ö¹Øϵ ÕÒ³öÒ»¿ÃÊ÷µÄ½á¹¹ÏÔʾ³öÀ´ £¬²¢ÏÔʾ³öÿ¸ö½ÚµãÔÚÊéÖеIJ㼶£¬½«Ê÷µÄ½á¹¹´ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ