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

Oracle¶¯Ì¬ÐÔÄÜÊÓͼѧϰ֮ V$ROLLSTAT

À´Ô´ÓÚhttp://hi.baidu.com/edeed/blog/item/33576327d1b73d00918f9dd4.html
±¾ÊÓͼ×ÔÆô¶¯¼´±£³Ö²¢¼Ç¼¸÷»Ø¹ö¶Îͳ¼ÆÏî¡£ÔÚѧϰ±¾ÊÓͼ֮ǰ£¬ÎÒÃÇÏÈÀ´Á˽âһϻعö¶Î(rollback segment)µÄÏà¹Ø¸ÅÄ
»Ø¹ö¶Î¸ÅÊö
»Ø¹ö¶ÎÓÃÓÚ´æ·ÅÊý¾ÝÐÞ¸Ä֮ǰµÄÖµ£¨°üÀ¨Êý¾ÝÐÞ¸Ä֮ǰµÄλÖúÍÖµ£©¡£»Ø¹ö¶ÎµÄÍ·²¿°üº¬ÕýÔÚʹÓõĸûعö¶ÎÊÂÎñµÄÐÅÏ¢¡£Ò»¸öÊÂÎñÖ»ÄÜʹÓÃÒ»¸ö»Ø¹ö¶ÎÀ´´æ·ÅËüµÄ»Ø¹öÐÅÏ¢£¬¶øÒ»¸ö»Ø¹ö¶Î¿ÉÒÔ´æ·Å¶à¸öÊÂÎñµÄ»Ø¹öÐÅÏ¢¡£
»Ø¹ö¶ÎµÄ×÷ÓÃ
1¡£ÊÂÎñ»Ø¹ö£ºµ±ÊÂÎñÐ޸ıíÖÐÊý¾ÝµÄʱºò£¬¸ÃÊý¾ÝÐÞ¸ÄÇ°µÄÖµ£¨¼´Ç°Ó°Ïñ£©»á´æ·ÅÔڻعö¶ÎÖУ¬µ±Óû§»Ø¹öÊÂÎñ£¨ROLLBACK£©Ê±£¬ORACLE½«»áÀûÓûعö¶ÎÖеÄÊý¾ÝÇ°Ó°ÏñÀ´½«Ð޸ĵÄÊý¾Ý»Ö¸´µ½Ô­À´µÄÖµ¡£
2¡£ÊÂÎñ»Ö¸´£ºµ±ÊÂÎñÕýÔÚ´¦ÀíµÄʱºò£¬Àý³Ìʧ°Ü£¬»Ø¹ö¶ÎµÄÐÅÏ¢±£´æÔÚÖØ×öÈÕÖ¾ÎļþÖУ¬ORACLE½«ÔÚÏ´δò¿ªÊý¾Ý¿âʱÀûÓûعöÀ´»Ö¸´Î´Ìá½»µÄÊý¾Ý¡£
3¡£¶ÁÒ»ÖÂÐÔ£ºµ±Ò»¸ö»á»°ÕýÔÚÐÞ¸ÄÊý¾Ýʱ£¬ÆäËûµÄ»á»°½«¿´²»µ½¸Ã»á»°Î´Ìá½»µÄÐ޸ġ£¶øÇÒ£¬µ±Ò»¸öÓï¾äÕýÔÚÖ´ÐÐʱ£¬¸ÃÓï¾ä½«¿´²»µ½´Ó¸ÃÓï¾ä¿ªÊ¼Ö´ÐкóµÄδÌá½»µÄÐ޸ģ¨Óï¾ä¼¶¶ÁÒ»ÖÂÐÔ£©¡£µ±ORACLEÖ´ÐÐSELECTÓï¾äʱ£¬ORACLEÒÀÕÕµ±Ç°µÄϵͳ¸Ä±äºÅ£¨SYSTEM CHANGE NUMBER-SCN£©À´±£Ö¤ÈκÎÇ°ÓÚµ±Ç°SCNµÄδÌá½»µÄ¸Ä±ä²»±»¸ÃÓï¾ä´¦Àí¡£¿ÉÒÔÏëÏ󣺵±Ò»¸ö³¤Ê±¼äµÄ²éѯÕýÔÚÖ´ÐÐʱ£¬ÈôÆäËû»á»°¸Ä±äÁ˸òéѯҪ²éѯµÄij¸öÊý¾Ý¿é£¬ORACLE½«ÀûÓûعö¶ÎµÄÊý¾ÝÇ°Ó°ÏñÀ´¹¹ÔìÒ»¸ö¶ÁÒ»ÖÂÐÔÊÓͼ¡£
ÊÂÎñ¼¶µÄ¶ÁÒ»ÖÂÐÔ
ORACLEÒ»°ãÌṩSQLÓï¾ä¼¶£¨SQL STATEMENT LEVEL£©µÄ¶ÁÒ»ÖÂÐÔ£¬¿ÉÒÔÓÃÒÔÏÂÓï¾äÀ´ÊµÏÖÊÂÎñ¼¶µÄ¶ÁÒ»ÖÂÐÔ¡£
SET TRANSACTION READ ONLY£»
»ò£º
SET TANNSACTION SERIALIZABLE£»
ÒÔÉÏÁ½¸öÓï¾ä¶¼½«ÔÚÊÂÎñ¿ªÊ¼ºóÌṩ¶ÁÒ»ÖÂÐÔ¡£ÐèҪעÒâµÄÊÇ£¬Ê¹Óõڶþ¸öÓï¾ä¶ÔÊý¾Ý¿âµÄ²¢·¢ÐÔºÍÐÔÄܽ«´øÀ´Ó°Ïì¡£
»Ø¹ö¶ÎµÄÖÖÀà
1¡£ÏµÍ³»Ø¹ö¶Î£ºµ±Êý¾Ý¿â´´½¨ºó£¬½«×Ô¶¯´´½¨Ò»¸öϵͳ»Ø¹ö¶Î£¬¸Ã»Ø¹ö¶ÎÖ»ÓÃÓÚ´æ·Åϵͳ±í¿Õ¼äÖжÔÏóµÄÇ°Ó°Ïñ¡£
2¡£·Çϵͳ»Ø¹ö¶Î£ºÓµÓжà¸ö±í¿Õ¼äµÄÊý¾Ý¿âÖÁÉÙÓ¦¸ÃÓÐÒ»¸ö·Çϵͳ»Ø¹ö¶Î£¬ÓÃÓÚ´æ·Å·Çϵͳ±í¿Õ¼äÖжÔÏóµÄÊý¾ÝÇ°Ó°Ïñ¡£·Çϵͳ»Ø¹ö¶ÎÓÖ·ÖΪ˽Óлعö¶ÎºÍ¹«Óлعö¶Î£¬Ë½Óлعö¶ÎÓ¦ÔÚ²ÎÊýÎļþµÄROLLBACK SEGMENTS²ÎÊýÖÐÁгö£¬ÒÔ±ãÀý³ÌÆô¶¯Ê±×Ô¶¯Ê¹ÆäÔÚÏߣ¨ONLINE£©¡£¹«Óлعö¶ÎÒ»°ãÔÚOPS£¨ORACLE²¢ÐзþÎñÆ÷£©ÖгöÏÖ£¬½«ÔÚÀý³ÌÆô¶¯Ê±×Ô¶¯ÔÚÏß¡£
3¡£DEFERED»Ø¹ö¶Î£º¸Ã»Ø¹ö¶ÎÔÚ±í¿Õ¼äÀëÏߣ¨OFFLINE£©Ê±ÓÉϵͳ×Ô¶¯´´½¨£¬µ±±í¿Õ¼äÔÙ´ÎÔÚÏߣ¨ONLINE£©Ê±ÓÉϵͳ×Ô¶¯


Ïà¹ØÎĵµ£º

Oracleѧϰ±Ê¼Ç5 JDBC²Ù×÷Oracle

ÓÃJavaÀ´²Ù×÷Êý¾Ý¿â£¬ÓÐÈçϼ¸ÖÖ·½Ê½£º
1JDBC-ODBCÇÅ£ºODBCÊý¾ÝÔ´ÔÚ²Ù×÷ϵͳ²ãÃæ¸øÓèÁËÖ§³Ö£¬ÎÒÃÇ¿ÉÒÔ²»ÓÃÁ˽âµ×²ãµ½µ×ÊÇ·â×°µÄÄÄÖÖÊý¾ÝÔ´£¬Ò²ÕÕÑù¿ÉÒÔÍê³É¶ÔÊý¾ÝµÄ²Ù×÷¡£µ«ÊÇËüÓÐƽ̨ÒÀÀµÐÔ£¬²»Ì«ÍƼöʹÓá£
2Javaµ½±¾µØAPI
3Javaµ½ÍøÂçЭÒé
4Javaµ½Êý¾Ý¿âЭÒ飺ËÙ¶È×î¿ì
Á¬½ÓÊý¾Ý¿â¿ÉÒÔ·ÖΪËIJ½£º
A¼ÓÔØÇý¶¯³ÌÐò£¨Ï ......

J2EE²Ù×÷OracleµÄclobÀàÐÍ×Ö¶Î


2008-09-02
J2EE²Ù×÷OracleµÄclobÀàÐÍ×Ö¶Î
¹Ø¼ü×Ö: java
OracleÖУ¬Varchar2Ö§³ÖµÄ×î´ó×Ö½ÚÊýΪ4KB£¬ËùÒÔ¶ÔÓÚijЩ³¤×Ö·û´®µÄ´¦Àí£¬ÎÒÃÇÐèÒªÓÃCLOBÀàÐ͵Ä×ֶΣ¬CLOB×Ö¶Î×î´óÖ§³Ö4GB¡£
»¹ÓÐÆäËû¼¸ÖÖÀàÐÍ£º
blob:¶þ½øÖÆ,Èç¹ûexe,zip
clob:µ¥×Ö½ÚÂë,±ÈÈçÒ»°ãµÄÎı¾Îļþ.
nlob:¶à×Ö½ÚÂë,ÈçUTF¸ñʽµÄÎļþ.
ÒÔÏÂ¾Í ......

ÈçºÎÔÚoracleÖе¼Èëµ¼³ödmpÎļþ[ת]

¡¡¡¡OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚoracleÊý¾Ý»¹Ô­Ó뱸·Ý¡£expÃüÁî¿ÉÒÔ°ÑÊý¾Ý´ÓÔ¶³ÌÊý¾Ý¿â·þÎñÆ÷µ¼³öµ½±¾µØµÄdmpÎļþ£¬impÃüÁî¿ÉÒÔ°ÑdmpÎļþ´Ó±¾µØµ¼Èëµ½Ô¶´¦µÄÊý¾Ý¿â·þÎñÆ÷ÖС£ ÀûÓÃÕâ¸ö¹¦ÄÜ¿ÉÒÔ¹¹½¨Á½¸öÏàͬµÄÊý¾Ý¿â£¬Ò»¸öÓÃÀ´²âÊÔ£¬Ò»¸öÓÃÀ´ÕýʽʹÓÃ……
 
¡¡¡¡OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏàµ±Ó ......

ά»¤Oracle³£ÓÃSQLÓï¾ä

       ÈçºÎÔ¶³ÌÅжÏOracleÊý¾Ý¿âµÄ°²×°Æ½Ì¨
¡¡¡¡select * from v$version;
¡¡¡¡²é¿´±í¿Õ¼äµÄʹÓÃÇé¿ö
¡¡¡¡select sum(bytes)/(1024*1024) as free_space,tablespace_name
¡¡¡¡from dba_free_space
¡¡¡¡group by tablespace_name;
¡¡¡¡SELECT A.TABLESPACE_NAME,A.BYTES TOTAL,B.BYTES ......

oracle 10.2.0.4ÏÂÔصØÖ·


ÏÂÔØ·½·¨£ºÔÚÏÂÃæµÄÁ¬½ÓÉϵã»÷ÓÒ¼ü£¬Ñ¡ÔñʹÓÃѸÀ×ÏÂÔØ¡£Ê¹ÓñðµÄÏÂÔع¤¾ßÎÞ·¨ÏÂÔØ¡£
oracle 10.2.0.4 ²¹¶¡ÏÂÔØ£¨ÊÊÓÃÓÚËùÓвÙ×÷ϵͳ£©:
ftp://updates.oracle.com/6810189/p6810189_10204_AIX5L.zip
ftp://updates.oracle.com/6810189/p6810189_10204_HPUX-IA64.zip
ftp://updates.oracle.com/6810189/p6810189_10204 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ