oracleÊý¾Ý±ÃµÄѧϰ
--21.1 Data Pump¹¤¾ß
Data Pump
´Óoracledatabase 10g¿ªÊ¼ÒýÈëÁËdata pump(Êý¾Ý±Ã)¹¤¾ß£¬ËüÌṩÁËÒ»ÖÖ»ùÓÚ·þÎñÆ÷µÄÊý¾Ýµ¼³öµ¼ÈëʹÓóÌÐò¡£
ËùÓеÄdata pump¶¼×÷Ϊһ¸ö·þÎñÆ÷½ø³Ì£¬Êý¾Ý²»ÔÙ±ØÐëÓÉÒ»¸ö¿Í»§³ÌÐò´¦Àí¡£Data Pump¹¤¾ßµÄµ¼³öºÍµ¼ÈëʵÏÖ
OracleÊý¾Ý¿âÖ®¼äÊý¾ÝµÄ´«Êä¡£
Data Pump¹¤¾ßÖаüº¬Data Pump ExportºÍData Pump Import£¬ËùʹÓõÄÃüÁîÐпͻ§³ÌÐòΪexpdpºÍimpdp¡£
¡¾×¢Òâ¡¿
ÔÚ10g֮ǰ£¬´«Í³µÄµ¼³öµ¼Èë·Ö±ðʹÓÃexp¹¤¾ßºÍimp¹¤¾ß¡£´Óoracle database 10g¿ªÊ¼£¬²»½ö±£ÁôÁËÔÓеÄ
expºÍimp¹¤¾ß£¬»¹ÌṩÁËÊý¾Ý±Ãµ¼³öµ¼È빤¾ßexpdpºÍimpdp¡£
´Ó11g¿ªÊ¼£¬ÔÚ´«Í³µÄexportºÍimportÓ¦ÓóÌÐòÖпÉÓõÄÈκÎÌØÐÔÔÚdata pumpÖж¼¿ÉÓá£
ÔÚʹÓÃexpdpºÍimpdp¹¤¾ßʱ£¬Ó¦¸Ã×¢ÒâÒÔϼ¸µã£º
1 expºÍimpÊÇ¿Í»§¶Ë¹¤¾ß³ÌÐò£¬ËüÃǼȿÉÒÔÔÚ¿Í»§¶ËʹÓã¬Ò²¿ÉÒÔÔÚ·þÎñÆ÷¶ËʹÓá£
2 expdpºÍimpdpÊÇ·þÎñÆ÷¹¤¾ß³ÌÐò£¬ËüÃÇÖ»ÄÜÔÚoracle·þÎñÆ÷¶ËʹÓ㬲»ÄÜÔÙ¿Í»§¶ËʹÓá£
3 impÖ»ÊÊÓÃÓÚexpµ¼³öµÄÎļþ£¬²»ÊÊÓÃÓÚexpdpµ¼³öÎļþ£»impdpÖ»ÊÊÓÃÓëexpdpµ¼³öµÄÎÄ
¼þ£¬²»ÊÊÓÃÓÚexpµ¼³öÎļþ¡£data pumpµ¼³öµ¼ÈëËùµÃµ½µÄÎļþ¸ú´«Í³µÄimport/export
Ó¦ÓóÌÐòµ¼³öµ¼ÈëµÄÎļþ²»¼æÈÝ¡£
¡¾pumpÌص㡿
ÓëÔÓеÄexportºÍimportʹÓóÌÐòÏà±È£¬oracleµÄdata pump¹¤¾ßµÄ¹¦ÄÜÌصãÈçÏ£º
1 ÔÚµ¼³ö»òÕßµ¼Èë×÷ÒµÖУ¬Äܹ»¿ØÖÆÓÃÓÚ´Ë×÷ÒµµÄ²¢ÐÐÏ̵߳ÄÊýÁ¿¡£
2 Ö§³ÖÔÚÍøÂçÉϽøÐе¼³öµ¼È룬¶ø²»ÐèÒªÊÇʹÓÃת´¢Îļþ¼¯¡£
3 Èç¹û×÷ҵʧ°Ü»òÕßÍ£Ö¹£¬Äܹ»ÖØÐÂÆô¶¯Ò»¸ödata pump×÷Òµ¡£²¢ÇÒÄܹ»¹ÒÆð»Ö¸´µ¼³öµ¼Èë×÷Òµ¡£
4 ͨ¹ýÒ»¸ö¿Í»§¶Ë³ÌÐòÄܹ»Á¬½Ó»òÕßÍÑÀëÒ»¸öÔËÐеÄ×÷Òµ¡£
5 ¿Õ¼ä¹ÀËãÄÜÁ¦£¬¶ø²»ÐèҪʵ¼Ê
Ïà¹ØÎĵµ£º
½ñÌìÓöµ½Ò»¸öÎÊÌ⣬PERL ÒýÆðOracleÊý¾Ý¿â100% CPU£¬ÏµÍ³ÊÇenterprise linux 4 update 7 64 bit
²é¿´½ø³ÌÔÀ´ÊÇgridµÄagent¡£Ö»ÓÐÏÈÍ£µôgrid
./emctl stop agent
./opmn stopall
pkill -9 perl
È»ºóÔÙ¿´¿´ÓÐûÓÐʲôbug¡£ ÕâÊǸöbug£¬ ´òÁËpatch 5908032ºóºÃÏñÕý³£ÁË¡£
oracle 549 &nbs ......
³éÏóÊý¾ÝÀàÐÍ
1¡¢´´½¨ÀàÐÍ
--µØÖ·ÀàÐÍ
CREATE OR REPLACE TYPE AddressType AS OBJECT
(
Country varchar2(15),
City varchar2(20),
Street varchar2(30)
);
2¡¢ÀàÐÍǶÌ×
--´´½¨»ùÓÚÇ°Ò»¸öÀàÐ͵ÄеijéÏóÊý¾ÝÀàÐÍ£º¾ÞÐÇÀàÐÍ
CREATE OR REPLACE TYPE SuperStarType AS OBJECT
(
StarName varchar2(30),
Addres ......
ÎÒÏë×î³õѧϰÊý¾Ý¿âʱ¶¼ÊÇÒÔstudent±í¡¢course±íºÍsc±íΪÀýµÄ°É
Ê×ÏÈ´´½¨ÕâÈýÕÅ±í£º±ØҪʱ¿ÉÖØд´½¨Óû§¼°ÃÜÂë²¢µÇ½
»·¾³£ºoracle 10g
declare
vcnt number;
begin
select count(*) into vcnt from user_tables where table_name='SC';
If vcnt = 1 Then
Execute immedi ......
ÔÚÐéÄâ»úRed Hat Enterprise Linux 4 update 4Öа²×°oracle 10.2.0.1
1)²é¿´ÏµÍ³ÄÚ´æ
[root@linux4 ~]# grep MemTotal /proc/meminfo
2)²é¿´½»»»Çø´óС
[root@linux4 ~]# grep SwapTotal /proc/meminfo
3)
²é¿´/tmpĿ¼´óС
[root@linux4 ~]# df -m /tmp
4)²é¿´²Ù×÷ϵͳ°æ±¾
[root@linux4 ~]# cat /etc/issue
5)¼ ......
µ¼³öÊý¾Ý¿â£ºexp Óû§Ãû/ÃÜÂë@Êý¾Ý¿âÃû file=ÅÌ·û£º/Îļþ¼Ð/ÎļþÃû.bmp owner=Óû§ »ò exp Óû§Ãû/ÃÜÂë@Êý¾Ý¿âÃû file=ÅÌ·û£º/Îļþ¼Ð/ÎļþÃû.bmp full=y
µ¼ÈëÊý¾Ý¿â£ºimp Óû§Ãû/ÃÜÂë@Êý¾Ý¿âÃû file=µ¼³öµÄÎļþ full=y ......