ORACLE°²×°Ö®ºóµÇ½Éí·ÝÖ¤Ã÷²»ÕýÈ·
2009-01-02 10:02
µÇ½Éí·ÝÖ¤Ã÷²»ÕýÈ·
OracleÊý¾Ý¿âÓÐÈýÖÖ±ê×¼µÄ±¸·Ý·½·¨£¬ËüÃÇ·Ö±ðΪµ¼³ö/µ¼È루EXPORT/IMPORT£©¡¢À䱸·Ý¡¢Èȱ¸·Ý¡£µ¼³ö±¸·ÝÊÇÒ»ÖÖÂß¼±¸·Ý£¬À䱸·ÝºÍÈȱ¸·ÝÊÇÎïÀí±¸·Ý¡£
Òª½øÐб¸·ÝºÍ»Ö¸´²Ý£¬±ØÐëÔÚÁ¬½Óµ½Oracle Manager Serverºó²ÅÄܽøÐС£Èç¹ûδ´´½¨×ÊÁϵµ°¸¿â£¬ÔÚʹÓÃOracle Management Serverʱ½«»á³öÏÖÈçÏ´íÎó:
µÇ½Éí·ÝÖ¤Ã÷²»ÕýÈ·
»òÕß
VTK-1000£ºÎÞ·¨Á¬½Óµ½Management server¡£ÇëÑéÖ¤ÄúÒÑÊäÈëOracle Management ServerµÄÕýÈ·Ö÷»úÃûºÍ״̬¡£
Òò´Ë£¬±ØÐëÏÈ´´½¨Oracle Enterprise Manager×ÊÁϵµ°¸¿â,ÒÔ±ãÄÜÁ¬½Óµ½Oracle Management Server¡£´´½¨Oracle Manager Server×ÊÁϵµ°¸¿âµÄ²½Ö裺
1¡¢“¿ªÊ¼→³ÌÐò→Oracle→OraHome92→Configuration and Migration”£¬Ê¹ÓÃÆäÖеēEnterprise Manager Configuration Assistant”³ÌÐòÅäÖñ¾»úµÄOracle Management Server£¬´´½¨Ò»¸öеĵµ°¸×ÊÁÏ¿â¡£
2¡¢µÇ¼Oracle Management Server
½¨Á¢Íê×ÊÁϵµ°¸¿âºó£¬¾Í¿ÉÒÔʹÓÃOEMÁË¡£Çë°´ÈçϲÙ×÷½øÐУº
“¿ªÊ¼→³ÌÐò→Oracle→OraHome92→Enterprise Manager Console”,µÇ¼·½Ê½²»Ñ¡Ôñ¶ÀÁ¢Æô¶¯£¬ÒªÑ¡ÔñµÇ¼µ½Oracle Management Server¡£¼¤»îOracle Enterprise Manager ConsoleµÄµÇ¼´°¿Úºó£¬Ôڸô°¿ÚÖÐÓû§ÒªÌṩÏàÓ¦µÄ¹ÜÀíÔ±Ãû³Æ¡¢¿ÚÁîºÍManagement Server¡£Enterprise ManagerÓÐһĬÈϹÜÀíÔ±sysman,¿ÚÁîΪoem_temp£¬Management ServerÇëÌîдÖ÷»úÃû»ò¼ÆËã»úIPµØÖ·¡£
3¡¢µÇ¼³É¹¦ºó£¬OracleÌáʾ¸ü¸ÄsysmanÓû§¿ÚÁî¡£Èç¹ûµÇ¼²»³É¹¦£¬Çë¼ì²éÔÚ¿ØÖÆÃæ°åÖГ·þÎñ”ÖÐOracle Management Server·þÎñÊÇ·ñÒÑÆô¶¯,ÈçδÆô¶¯ÇëÊÖ¶¯Æô¶¯¡£
4¡¢Á¬½Óµ½Òª²Ù×÷µÄÊý¾Ý¿â
ÔÚOEM×ó²àµÄĿ¼Ê÷ÖУ¬µ¥»÷Òª±¸·ÝµÄÊý¾Ý¿âÃû£¬ÔÚËæºó³öÏֵĵǼ¿òÖÐÊäÈëÕýÈ·µÄÓû§Ãû¡¢¿ÚÁî¼°Á¬½ÓÉí·Ý£¬´Ëʱ¸ÃÊý¾Ý¿âÒÑÓë¹ÜÀí·þÎñÆ÷Á¬½Ó¡£
5¡¢½¨Á¢Ê×Ñ¡Éí·ÝÖ¤Ã÷
Ê×Ñ¡Éí·ÝÖ¤Ã÷µÄ×÷ÓÃÊÇÅäÖÃÒ»¸öÊý¾Ý¿âÓû§Ö´ÐÐÊý¾Ý¿âά»¤²Ù×÷£¬ÔÚ¶ÔÊý¾Ý¿â½øÐб¸·ÝÓë»Ö¸´µÈ²Ù×÷µÄ¹ý³ÌÖУ¬Óû§²»±ØÊäÈëÓû§¼°¿ÚÁî¡£ÔÚOEMÖдò¿ªÅäÖò˵¥£¬Ñ¡Ôñ“Ê×Ñ¡Éí·ÝÖ¤Ã÷”Ñ¡Ï´ò¿ª“±à¼¹ÜÀíÔ±Ê×Ñ¡Ïî&r
Ïà¹ØÎĵµ£º
OracleϵÁУº¼Ç¼£¨Record£©
Ò»£¬Ê²Ã´ÊǼǼ£¨Record£©£¿
Óɵ¥ÐжàÁеıêÁ¿¹¹³ÉµÄ¸´ºÏ½á¹¹¡£¿ÉÒÔ¿´×öÊÇÒ»ÖÖÓû§×Ô¶¨ÒåÊý¾ÝÀàÐÍ¡£×é³ÉÀàËÆÓÚ¶àάÊý×é¡£
½«Ò»¸ö»ò¶à¸ö±êÁ¿·â×°³ÉÒ»¸ö¶ÔÏó½øÐвÙ×÷¡£ÊÇÒ»ÖÖÁÙʱ¸´ºÏ¶ÔÏóÀàÐÍ¡£
¼Ç¼¿ÉÒÔÖ±½Ó¸³Öµ¡£RECORD1 :=RECORD2£»
¼Ç¼²»¿ÉÒÔÕûÌå±È½Ï. ......
Tablespace
ORACLEÖУ¬±í¿Õ¼äÊÇÊý¾Ý¹ÜÀíµÄ»ù±¾·½·¨£¬ËùÓÐÓû§µÄ¶ÔÏóÒª´æ·ÅÔÚ±í¿Õ¼äÖУ¬Ò²¾ÍÊÇÓû§ÓпռäµÄʹÓÃȨ£¬²ÅÄÜ´´½¨Óû§¶ÔÏó£®·ñÔòÊDz»³äÐí´´½¨¶ÔÏó£¬ÒòΪ¾ÍÊÇÏë´´½¨¶ÔÏó,Èç±í,Ë÷ÒýµÈ£¬Ò²Ã»Óеط½´æ·Å,Oracle»áÌáʾ:ûÓд洢Åä¶î£®
¡¡¡¡Òò´Ë£¬ÔÚ´´½¨¶ÔÏó֮ǰ£¬Ê×ÏÈÒª·ÖÅä´æ´¢¿Õ¼ä£®¡¡¡¡
·ÖÅä´æ ......
1. ²éѯÊý¾Ý¿âÏÖÔڵıí¿Õ¼ä
select tablespace_name, file_name, sum(bytes)/1024/1024 table_size from dba_data_files group by tablespace_name,file_name;
2. ½¨Á¢±í¿Õ¼ä
CREATE TABLESPACE data01 DATAFILE '/oracle/ ......
HWMÊÇoracleÖÐblockÓÐûÓÐʹÓõķֽçÏߣ¬Ëü»áËæ×ÅÊý¾ÝµÄinsert¶øÉÏÉý£¬µ«Ëü²¢²»»áËæÊý¾ÝµÄdelete¶øϽµ£¬Òò´ËÈ«±íɨÃèµÄʱ¼ä²¢²»ÒòÊý¾ÝµÄdelete¶ø¼õÉÙ£¬Ïà·´¿ÉÄÜÓÉÓÚ¿éÇå³ý·´¶øÈ«±íɨÃèʱ¼äÔö¼Ó£¬¿ÉÒÔÓÃÏÂÃæ·½·¨µÄÈÎÒ»Ò»ÖÖÀ´½µµÍHWM£º
µÚÒ»ÖÖ£ºshrink
ÊÊÓÃÓÚ10gÒÔºóµÄ°æ±¾£¬Ç°ÌáÊÇÕâ¸ö±í£¬Ë÷Òý£¬ÎﻯÊÓͼ»òÎﻯÊÓͼlogËùÔ ......