Oracle 11g µÄ ×Ô¶¯ÄÚ´æ¹ÜÀí
Oracle µÄ 9i/10g ÖÐÒѾ¶ÔÄÚ´æ¹ÜÀíÖð²½×öÁ˺ܴóµÄ¼ò»¯£¬11g Ôò¸ü½øÒ»²½£¬ÒýÈëÁËÒ»¸öеĸÅÄî×Ô¶¯»¯ÄÚ´æ¹ÜÀí(Automatic Memory Management,AMM) . Èç¹û DBA ÕæµÄÏë͵ÀÁµÄ»°£¬Ö»ÐèÒªÉ趨Á½¸ö²ÎÊý¾Í¿ÉÒÔ°Ñ·³ÐĵÄÊÂÇ鶼½»¸ø Oracle ÕÛÌÚÁË(Ö»Òª DBA ×ã¹»ÐÄ¿í)¡£PGA Óë SGA Ò»Æð¸ã¶¨¡£ÕâÁ½¸ö²ÎÊý·Ö±ðÊÇ£º
MEMORY_TARGET--²Ù×÷ϵͳµÄ½Ç¶ÈÉÏ Oracle ËùÄÜʹÓõÄ×î´óÄÚ´æÖµ¡£¶¯Ì¬²ÎÊý
MEMORY_MAX_TARGET--MEMORY_TARGETËùÄÜÉ趨µÄ×î´óÖµ¡£·Ç¶¯Ì¬¿Éµ÷¡£
Tip: Èç¹ûʹÓõÄÊÇ pfile£¬É趨ÁË MEMORY_TARGET ¶øûÓÐÖ¸¶¨ MEMORY_MAX_TARGET µÄÖµ£¬ÔòʵÀýÆô¶¯ºó MEMORY_MAX_TARGET µÄÖµÓë MEMORY_TARGET ÏàµÈ¡£Èç¹û pfile ÖÐÖ¸¶¨ÁË MEMORY_MAX_TARGET ¶øûÓÐÖ¸¶¨ MEMORY_TARGET £¬ÊµÀýÆô¶¯ºó MEMORY_TARGET Ϊ 0 ¡£
AMM ÔÚºǫ́»áÆô¶¯Ò»¸öÄÚ´æ¹ÜÀí(Memory Manager, mman)½ø³Ì¡£
ÒòΪ AMM µÄÒýÈ룬Oracle ÄÚ´æ¹ÜÀí¸ü¼ÓÁé»î¶àÑù¡£ ×éºÏ³öÀ´ÓÐ 5 ÖÖÄÚ´æ¹ÜÀíÐÎʽ.
×Ô¶¯ÄÚ´æ¹ÜÀí
×Ô¶¯¹²ÏíÄÚ´æ¹ÜÀí
ÊÖ¹¤¹²ÏíÄÚ´æ¹ÜÀí
×Ô¶¯ PGA ¹ÜÀí
ÊÖ¶¯ PGA ¹ÜÀí
1) ×Ô¶¯ÄÚ´æ¹ÜÀí
ĬÈÏ°²×°µÄʵÀý¼´ÊÇ AMM ·½Ê½¡£ÈçÏÂ
SQL> show parameters target
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
memory_max_target big integer 1216M
memory_target big integer 1216M
pga_aggregate_target big integer 0
sga_target big integer 0
ҪעÒâµ½ SGA_TARGET ºÍ ¶¼Îª 0 ¡£
2.×Ô¶¯¹²ÏíÄÚ´æ¹ÜÀí(Automatic Shared Memory Management, ASMM)
ÕâÊÇ 10g ÒýÈëµÄ¹ÜÀí·½Ê½£¬ÒªÊ¹ÓÃÕâÖÖ·½Ê½£¬ÐèÒªÉèÖóõʼ»¯²ÎÊý MEMORY_TARGET=0 £¬È»ºóÏÔʽµÄÖ¸¶¨ SGA_TARGET µÄÖµ¡£
SQL> alter system set sga_target=1024m scope=both;
alter system set sga_target=1024m scope=both
*
ERROR at line 1:
ORA-02097: parameter cannot be modif
Ïà¹ØÎĵµ£º
ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆ𣬾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......
oracle.client 9.0.1.0.0
©À1-Oracle Programmer 9.0.1.0.0
©¦ ©ÀOracle Call Interface (OCI) 9.0.1.0.0
©¦ ©ÀObject Type Translator 9.0.1.0.0
©¦ ©¸Pro*C/C++ 9.0.1.0.0
©À2-Oracle Enterprise Manager Products 9.0.1.0.0
©¦ ©¸Oracle Enterprise Manager Cli ......
²âÊÔtable
create table table1 (id int,name char)
insert into table1
select 1,'q'
union all select 2,'r'
union all select 3,'3'
union all select 4,'5'
ÒªÇó°´Ö¸¶¨µÄid˳Ðò(±ÈÈç2,1,4,3)ÅÅÁлñÈ¡table1µÄÊý¾Ý
·½·¨1:ʹÓÃunion all,µ«ÊÇÓÐ256ÌõÊý¾ÝµÄÏÞÖÆ
select id,name from table1 where id=2
union al ......
OracleÊý×Ö×Öµä°üº¬Ò»¸öÏÊΪÈËÖªµÄv$session_longopsÊÓͼ¡£v$session_longopsÊÓͼ¿ÉÒÔʹOracleר¼Ò¼õÉÙÔËÐÐʱ¼äºÜ³¤µÄDDLºÍDMLÓï¾äµÄÔËÐÐʱ¼ä¡£
¡¡¡¡
¡¡¡¡
¡¡¡¡
¡¡¡¡ÀýÈçÔÚÊý¾Ý²Ö¿â»·¾³ÖУ¬¼´Ê¹Ê¹Óò¢ÐÐË÷Òý´´½¨¼¼Êõ£¬¹¹½¨Ò»¸öºÜ¶àG×Ö½Ú´óµÄË÷ÒýÐèÒªºÄ·ÑºÜ¶à¸öСʱ¡£ÕâÀïÄã¾Í¿ÉÒÔ²éѯv$session_longopsÊÓͼ¿ìËÙÕÒ³öÒ»¸ ......