oracleµÄ·ÖÇø±í¡¢·ÖÇøË÷ÒýºÍÈ«¾ÖË÷Òý²¿·Ö×ܽá
·ÖÇø±í¡¢·ÖÇøË÷ÒýºÍÈ«¾ÖË÷Òý£º
ÔÚÒ»¸ö±íµÄÊý¾Ý³¬¹ý¹ý2000ÍòÌõ»òÕ¼ÓÃ2G¿Õ¼äʱ£¬½¨Ò齨Á¢·ÖÇø±í¡£
create table ta(c1 int,c2 varchar2(16),c3 varchar2(64),c4 int constraint pk_ta primary key (c1)) partition by range(c1)(partition p1 values less than (10000000),partition p2 values less than (20000000),partition p3 values less than (30000000),partition p4 values less than (maxvalue));
Ôö¼Ó·ÖÇø£¬É¾³ý·ÖÇø
alter table ta add partition p_xx values less than (90000000000);
alter table ta drop partition p_xx [update global indexes] ;
create table AAA
(
ID NUMBER not null,
AREAID VARCHAR2(128),
VCHAR6 VARCHAR2(300)
) partition by list (vchar6)
(
partition p_0 values (default), --ÔÚ½¨list·ÖÇø±íʱºòÒªÖ¸¶¨Âä²»µ½ÆäËû·ÖÇøµÄÊý¾Ý
partition p_1 values ('1','2','3'),
partition p_2 values ('4,5,6,7,8,9,10')
);
·ÖÇøË÷ÒýºÍÈ«¾ÖË÷Òý£º
·ÖÇøË÷Òý¾ÍÊÇÔÚËùÓÐÿ¸öÇøÉϵ¥¶À´´½¨Ë÷Òý£¬ËüÄÜ×Ô¶¯Î¬»¤£¬ÔÚdrop»òtruncateij¸ö·ÖÇøʱ²»Ó°Ïì¸ÃË÷ÒýµÄÆäËû·ÖÇøË÷ÒýµÄʹÓã¬Ò²¾ÍÊÇË÷Òý²»»áʧЧ£¬Î¬»¤ÆðÀ´±È½Ï·½±ã£¬µ«ÊÇÔÚ²éѯÐÔÄÜÉÔ΢ÓеãÓ°Ïì¡£
create index idx_ta_c2 on ta(c2) local (partition p1,partition p2,partition p3,partition p4);
»òÕß create index idx_ta_c2 on ta(c2) local ;
ÁíÍâÔÚcreate unique index idx_ta_c2 on ta(c2) local ;ϵͳ»á±¨ORA-14039´íÎó£¬ÕâÊÇÒòΪta±íµÄ·ÖÇøÁÐÊÇc1£¬²»Ö§³ÖÔÚ·ÖÇø±íÉÏ´´½¨PKÖ÷¼ü»òʱÖ÷¼üÁв»°üº¬·ÖÇøÁУ¬´´½¨Î¨Ò»Ô¼ÊøÒ²²»¿ÉÒÔÕâÑù¡£ oracle
È«¾ÖË÷Òý¾ÍÊÇÔÚÈ«±íÉÏ´´½¨Ë÷Òý£¬Ëü¿ÉÒÔ´´½¨×Ô¼ºµÄ·ÖÇø£¬¿ÉÒԺͷÖÇø±íµÄ·ÖÇø²»Ò»Ñù£¬Ò²¾ÍÊÇËüÊǶÀÁ¢µÄË÷Òý¡£
ÔÚdrop»òtruncateij¸ö·ÖÇøʱÐèÒª´´½¨Ë÷Òýalter index idx_xx rebuild£¬Ò²¿ÉÒÔͨ¹ýalter table table_name drop partition partition_name update global indexes;ʵÏÖ£¬µ«ÊÇÈç¹ûÊý¾ÝÁ¿ºÜ´óÔòÒª»¨ºÜ³¤Ê±¼äÔÚÖؽ¨Ë÷ÒýÉÏ¡£
¿ÉÒÔͨ¹ý²éѯuser_indexes¡¢user_part_indexesºÍuser_ind_partitionsÊÓͼÀ´²é¿´Ë÷ÒýÊÇ·ñÓÐЧ¡£
create index idx_ta_c3 on ta(c3);
»òÕß°ÑÈ«¾ÖË÷Òý·Ö³É¶à¸öÇø(×¢ÒâºÍ·ÖÇø±íµÄ·ÖÇø²»Ò»Ñù)£º
create index idx_ta_c4 on ta(c4) global partition by range(c4)(parti
Ïà¹ØÎĵµ£º
oracle 10g
°²×°Íê³Éºó,
怫EM
ÊäÈëϵͳÓû§ÃûºÍÃÜÂëºÍÊý¾Ý¿âÓû§ÃûºÍÃÜÂëºó,
µãÆô¶¯±¨´í,
¿ÉÄÜÊÇÒòΪÊý¾Ý¿âµÄ״̬ΪװÔØ»ò²»×°ÔØ,
ʼÖÕÎÞ·¨µÇ½½øEM
µÄ½â¾ö°ì·¨......
×´¿ö£º
´ò¿ªhttp://ty-:5500/em
£¬ÏµÍ³ÏÔʾÈçÏÂÐÅÏ¢£º
Êý¾Ý¿â״̬µ±Ç°²»¿ÉÓ᣿ÉÄÜÊÇÒòΪÊý¾Ý¿âµÄ״̬ΪװÔØ»ò²»×°ÔØ¡£µ¥»÷ ......
ORACLEÎïÀíÉÏÊÇÓÉ´ÅÅÌÉϵÄÒÔϼ¸ÖÖÎļþ:Êý¾ÝÎļþºÍ¿ØÖÆÎļþºÍLOGFILE¹¹³ÉµÄ ±í¿Õ¼ä¾Í̸ֻÏà¹ØµÄÊý¾ÝÎļþ Ê×ÏÈÃ÷È·¸ÅÄî:±í¿Õ¼äÊÇORACLEÄÚ²¿¶¨ÒåµÄÒ»¸ö¸ÅÄî,ÊÇΪÁËͳһORACLEÎïÀíºÍÂß¼ ÉϵĽṹ¶øרÃŽ¨Á¢µÄ,´ÓÎïÀíÉÏÀ´Ëµ,Ò»¸ö±í¿Õ¼äÊÇÓɾßÌåµÄÒ»¸ö»ò¶à¸ö´ÅÅÌÉÏÊý ¾ÝÎļþ¹¹³ÉµÄ(ÖÁÉÙ1¶Ô1,¿ÉÒÔ1¶Ô¶à),´ÓÂß¼ÉÏÀ´ËµÒ»¸ö±í¿Õ¼äÊ ......
oracleÌṩÈýÖָ߼¶±¸·Ý¹¦ÄÜ
¸ß¼¶¸´ÖÆ£¨Advanced Replication£©
Á÷¸´ÖÆ£¨Streams Replication£©
±¸¿â£¨Dataguard£©
Ò» dataguard£º
dataguardÔڸ߿ÉÓü°ÈÝÔÖ·½ÃæÒ»°ãÊÇdbaµÄÊ×Ñ¡£¬²»¹ÜÊÇÎïÀí±¸Óÿ⣨physical standby database£©»¹ÊÇÂß¼±¸Óÿ⣨logical standby database£©£¬ËüÃǶ¼¾ßÓÐһЩ¹²Í¬µÄ´ýÕ÷¡£
ÅäÖú͹ÜÀí· ......
OracleÖзÖÎö±íµÄ×÷ÓÃ
http://diegoball.javaeye.com/blog/568009
ÎÄÕ·ÖÀà:Êý¾Ý¿â
1.·ÖÎö¸üбíµÄͳ¼ÆÐÅÏ¢,,ÓпÉÄܵ¼ÖÂÖ´Ðмƻ®¸Ä±ä..
2.ÒÔµÄanalyze table abc compute statistics;ÕâÌõΪÀý£¬Éú³ÉµÄͳ¼ÆÐÅÏ¢»á´æÔÚÓÚuser_tablesÕâ¸öÊÓͼ£¬²é¿´Ò»ÏÂselect * from user_tables where table_name='ABC';
¹Û²ìÒ»ÏÂNUM_RO ......
1£®Ê²Ã´½Ð×öÂãÉ豸£¿
¡¡¡¡ÂãÉ豸£¬Ò²½ÐÂã·ÖÇø£¨Ôʼ·ÖÇø£©£¬ÊÇÒ»ÖÖûÓо¹ý¸ñʽ»¯£¬²»±»Unixͨ¹ýÎļþϵͳÀ´¶ÁÈ¡µÄÌØÊâ×Ö·ûÉ豸¡£ËüÓÉÓ¦ÓóÌÐò¸ºÔð¶ÔËü½øÐжÁд²Ù×÷¡£²»¾¹ýÎļþϵͳµÄ»º³å¡£
2£®ÈçºÎ±æ±ðÂãÉ豸£¿
¡¡¡¡ÔÚUnixµÄ/dev Ŀ¼Ï£¬ÓÐÐí¶àÎļþ£¬ÆäÖÐÓÐÁ½¸ö´óÀࣺ×Ö·ûÉ豸ÎļþºÍ¿éÉ豸Îļþ¡£
¡¡¡¡×Ö·ûÉè±¸Ì ......