oracle »ØÍ˶Îά»¤
»Ø¹ö¶ÎÓÃÓÚ¶ÔÊý¾Ý¿âÐÞ¸Äʱ, ±£´æÔÓеÄÊý¾Ý, ÒÔ±ãÉÔºó¿ÉÒÔͨ¹ýʹÓÃROLLBACKÀ´»Ö¸´µ½ÐÞ¸ÄÇ°µÄÊý¾Ý; ÁíÍâ, »Ø¹ö¶Î¿ÉÒÔΪÊý¾Ý¿âÖеÄËùÓнø³ÌÌṩ¶ÁÒ»ÖÂÐÔ. Òò´Ë, »Ø¹ö¶ÎÉèÖõĺÏÀíÓë·ñ, Ö±½ÓÓ°Ïìµ½Êý¾Ý¿âµÄÐÔÄÜ.
»Ø¹ö¶ÎµÄά»¤¼°²éѯ
(1) ´´½¨»Ø¹ö¶Î
__CREATE ROLLBACK SEGMENT RB01
__TABLESPACE RBS1
__STORAGE (
____INITIAL 100K
____NEXT 100K
____MINEXTENTS 20
____MAXEXTENTS 100
____OPTIMAL 2000K );
2) ¸ü¸ÄONLINE/OFFLINE״̬
__ALTER ROLLBACK SEGMENT RB01 ONLINE;
__ALTER ROLLBACK SEGMENT RB01 OFFLINE;
(3) ¸ü¸ÄOPTIMAL²ÎÊý
__ALTER ROLLBACK SEGMENT RB01
__STORAGE ( MAXEXTENTS 200
____OPTIMAL 2048K );
(4) ËõС»Ø¹ö¶Î
__ALTER ROLLBACK SEGMENT RB01 SHRINK;
(ÓÐOPTIMAL²ÎÊýʱ, ËõСµ½OPTIMALÖµ; ûÓÐOPTIMAL²ÎÊýʱ, ËõСµ½MINEXTENTSËù¶ÔÓ¦µÄ³ß´ç)
__ALTER ROLLBACK SEGMENT RB01 SHRINK TO 2048K;
(5) ÐÞ¸ÄINITIAL/NEXT²ÎÊý
*** ½¨Òé5: ¸ù¾ÝÔÔò3, ÐÞ¸ÄNEXTʱ, ×ÜÓ¦¸ÃͬʱÐÞ¸ÄINITIAL.
INITIAL²ÎÊýÎÞ·¨Ö±½ÓÐÞ¸Ä, Ö»ÄÜÏÈDROP, È»ºóÔÙCREATE.
__DROP ROLLBACK SEGMENT RB01;
__CREATE ROLLBACK SEGMENT RB01
__TABLESPACE RBS1
__STORAGE ( INITIAL 100K
____NEXT 100K
____MINEXTENTS 20
____MAXEXTENTS 121
____OPTIMAL 2000K )
(6) ÔÚÊÂÎñÖÐʹÓÃÌض¨µÄ»Ø¹ö¶Î
__SET TRANSACTION USE ROLLBACK SEGMENT RB_LARGE1;
(7) ³£ÓõÄÓйػعö¶ÎµÄϵͳÊý¾Ý×Öµä
DBA_ROLLBACK_SEGS (Ïà¹Ø±í:DBA_SEGMENTS)
V$ROLLNAME
V$ROLLSTAT
V$TRANSACTION (Ïà¹Ø±í: V$SESSION)
Óйػعö¶ÎµÄ³£¼û´íÎó¼°½â¾ö·½·¨
(1) »Ø¹ö¶Î¿Õ¼ä²»¹»
ORA-01562 - failed to extend rollback segment number string
»Ø¹ö¶Î¿Õ¼ä²»¹»µÄÔÒòÒ»°ãÓÐÒÔϼ¸ÖÖÇé¿ö:
A. »Ø¹ö¶ÎËùÔÚ±í¿Õ¼äÊ£ÓàµÄ¿ÕÏпռä̫С, ÎÞ·¨·ÖÅäÏÂÒ»¸öEXTENT.
B. »Ø¹ö¶ÎÀ©Õ¹´ÎÊýÒѾ´ïµ½MAXEXTENTSÏÞÖÆ
½â¾ö·½·¨:
A. À©´ó»Ø¹ö¶ÎËùÔÚ±í¿Õ¼ä
B. ÉèÖýϴóµÄMAXEXTENTS²ÎÊý
C. Ϊ»Ø¹ö¶ÎÉèÖÃOPTIMAL²ÎÊý
D. ÓýϴóµÄEXTENT²ÎÊýÖØд´½¨»Ø¹ö¶Î
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/tianzhichengzhr/archive/2009/11/06/4776380.aspx
Ïà¹ØÎĵµ£º
ʲôÊǺϲ¢¶àÐÐ×Ö·û´®£¨Á¬½Ó×Ö·û´®£©ÄØ£¬ÀýÈ磺
SQL> desc test;
Name Type Nullable Default Comments
------- ------------ -------- ------- --------
COUNTRY VARCHAR2(20) Y &nb ......
[oracle@dba01 dbs]$ orapwd file=/oracle/app/oracle/product/10.2.0/db_1/dbs/orapworcl password=oracle entries=20 force=y
[oracle@dba01 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat May 29 13:07:10 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Con ......
ORACLEµÄ¿ØÖÆÎļþÊÇÊý¾Ý¿âµÄ·Ç³£ÖØÒªµÄÎļþ£¬Ëü±£´æ×ÅÊý¾Ý¿âµÄÁ¬½ÓʵÀý(instance)ºÍdatabaseµÄÒ»¸öÇÅÁº£¬Ëü¶¨ÒåÁ˵±Ç°Êý¾Ý¿âÎïÀíÐÅÏ¢µÄ״̬¡£Òò´Ë¿ØÖÆÎļþ¶ÔÓÚÒ»¸öÊý¾Ý¿âÀ´ËµÊǷdz£ÖØÒªµÄ£¬ÔÚijЩʱºòÎÒÃÇÐèÒªÖØд´½¨¿ØÖÆÎļþ£º
1¡£µ±¿ØÖÆÎļþ¶ªÊ§µÄʱºò£¬²¢ÇÒûÓÐ×î½üµÄÎļþCopy±¸·Ý£¨Ò»°ãÔÚ½¨¿âÍê³ÉºóµÄÉú³ÉÒ»¸ö´´½¨Con ......
ÔÚOracle RAC»·¾³ÖУ¬ÏµÍ³ÐÔÄÜ»áÊܵ½Ó°Ï죬Ö÷Òª¼¯ÖÐÔÚBlockÔÚinstanceÖ®¼äµÄ´«Ê䣬¾¡¹Üoracle 10g ÖвÉÓÃÁËCache FusionÀ´¸ÄÉÆÒÔÇ°ÖØdiskÖжÁÈ¡Êý¾Ý¡£ÆäÖеÄÒ»¸ö²¿·Ö¾ÍÊǹØÓÚoracle sequenceµÄÐÔÄÜÎÊÌâ
ÏÂÃæÊǹØÓÚsequence µÄcacheºÍorder¶Ôrac ÐÔÄܵÄÓ°Ï죬´Ó²âÊÔÖп´µ½Ôö´ócacheºÍ²ÉÓÃnon-orderedµÄsequenceÐÔÄÜÊܵ½µÄÓ° ......
MS SQL ÖеÄIsNull()º¯Êý£º
IsNull ( check_expression , replacement_expression )
check_expression: ¿ÉÒÔÊÇÈκÎÀàÐÍ,½«Òª¼ì²éµÄ±í´ïʽ ²»Îª¿Õ£¬·µ»ØËü
replacement_expression: ÀàÐͱØÐëºÍcheck_expressionÏàͬ£¬check_expressionΪnull£¬·µ»ØËü
Õâ¸öº¯ÊýµÄ×÷ÓþÍÊÇ£ºÅжÏcheck_expressionÊÇ·ñΪ¿Õ£¬Îª¿Õ¾Í·µ» ......