Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¸ü¸ÄOracleÊý¾Ý¿â±íµÄ±í¿Õ¼ä

ÔÚOracleÊý¾Ý¿â¹ÜÀíϵͳÖУ¬´´½¨¿â±í£¨table£©Ê±Òª·ÖÅäÒ»¸ö±í¿Õ¼ä£¨tablespace£©£¬Èç¹ûδָ¶¨±í¿Õ¼ä£¬ÔòʹÓÃϵͳÓû§È·Ê¡µÄ±í¿Õ¼ä¡£
ÔÚOracleʵ¼ÊÓ¦ÓÃÖУ¬ÎÒÃÇ¿ÉÄÜ»áÓöµ½ÕâÑùµÄÎÊÌâ¡£´¦ÓÚÐÔÄÜ»òÕßÆäËû·½ÃæµÄ¿¼ÂÇ£¬ÐèÒª¸Ä±äij¸ö±í»òÕßÊÇij¸öÓû§µÄËùÓбíµÄ±í¿Õ¼ä¡£Í¨³£µÄ×ö·¨¾ÍÊÇÊ×ÏȽ«±íɾ³ý£¬È»ºóÖØн¨±í£¬ÔÚн¨±íʱ½«±í¿Õ¼äÖ¸¶¨µ½ÎÒÃÇÐèÒª¸Ä±äµÄ±í¿Õ¼ä¡£Èç¹û¸ÃÓû§ÒѾ­±£´æÁË´óÁ¿Êý¾Ý£¬ÕâÖÖ°ì·¨¾Í¾ÍÏԵò»ÊǺܷ½±ã£¬ÒòΪÓдóÁ¿Êý¾ÝÐèÒªÌáÇ°±¸·Ý³öÀ´¡£ÏÂÃæ½éÉÜÒ»ÖÖÀûÓÃÊý¾Ý¿âµÄµ¼³ö/µ¼È빦ÄÜÀ´ÊµÏÖÖØÐÂ×éÖ¯Êý¾Ý¿â±í¿Õ¼äµÄ·½·¨¡£
ÏÂÃæÊÇÒ»¸ö¼òµ¥µÄÀý×Ó£¬¼Ù¶¨Òª½«Óû§db_zgxtϵÄÈ«²¿±í´Ó±í¿Õ¼äAת»»µ½±í¿Õ¼äB£¬¾ßÌå²½Ö裨ÔÚOracle 8.0.5 for NT»·¾³£©ÈçÏ£º
1. µ¼³ödb_zgxtϵÄËùÓÐ±í£¨Dos¿ØÖÆ̨Ï£©
EXP80 OWNER=db_zgxt FILE=Exp0326.DMP LOG=Exp0326.LOG
ϵͳÌáʾÊäÈëÓû§ÃûºÍ¿ÚÁ»Ø´ðÍê±Ï£¬ÏµÍ³¾Í¿ªÊ¼½«db_zgxtϵÄËùÓÐ±í¶¼µ¼³öµ½Ò»¸ö½ÐExp0316.dmpµÄÎļþÖС£
2. ɾ³ýdb_zgxtϵÄËùÓÐ±í£¨ÔÚSQL/PLUSÖУ©
¿ÉÒÔ²ÉÓÃÅú´¦ÀíµÄ·½Ê½É¾³ýµôdb_zgxtϵÄËùÓÐ±í£¬Éú³ÉÅú´¦ÀíµÄÓï¾äÈçÏ£º
select 'drop table '||user_tables||’;' from user_tables;
3. ²ÉÓõ¼Èë²ÎÊý INDEXFILEµ¼Èëdb_zgxtÓû§ÏµÄËùÓÐ±í£¨Dos¿ØÖÆ̨Ï£©
IMP80 FULL=Y FILE=Exp0326.DMP INDEXFILE=db_zgxt.SQL LOG=Imp0326_1.LOG
ϵͳÌáʾÊäÈëÓû§ÃûºÍ¿ÚÁ»Ø´ðÍê±Ï£¬ÏµÍ³¾Í¿ªÊ¼½«ÎļþExp0326.dmpµ¼Èëµ½db_zgxtÓû§Ï¡£
ÆäÖУ¬Ö¸¶¨²ÎÊýINDEXFILEºó£¬ÏµÍ³¾Í½«´´½¨±íºÍË÷ÒýµÄÓï¾äдµ½Ò»¸öÎļþ£¬ÕâÀïÊÇdb_zgxt.sqlÖС£¸ÃÎļþÖаüº¬ÁËËùÓд´½¨Ë÷Òý£¨CREATE INDEX£©Óï¾äºÍ´´½¨±í£¨CREATETABLE£©Óï¾ä£¬µ«ÊÇÕâÀïËùÓд´½¨±íµÄÓï¾ä¾ù¼ÓÁË×¢ÊͱêÖ¾¡£ÔÚÈκÎÎı¾±à¼­Æ÷Öдò¿ª²¢±à¼­¸ÃÎļþ£¬È¥µôËùÓд´½¨±íÓï¾äµÄ×¢ÊͱêÖ¾£¬½«ËùÓеıí¿Õ¼äÃû³ÆÓÉAÌ滻ΪB£¬Í¬Ê±¶ÔËùÓеĴ´½¨Ë÷ÒýÓï¾ä¼ÓÉÏ×¢ÊͱêÖ¾¡£ÕâЩ¹¤×÷×÷ÍêÒÔºó£¬ÔÚSQL/PLUSÖÐÔËÐиýű¾Îļþ£¬ÕâЩ±í¾Í±»´´½¨£¬Æä±í¿Õ¼äÓÉA±äΪB¡£
4. ²ÉÓõ¼Èë²ÎÊýINDEXES=N ºÍIGNORE=Y½«db_zgxtÓû§µÄ±íÊý¾Ýµ¼Èë¿âÖУ¨Dos¿ØÖÆ̨Ï£©
IMP80 FULL=Y INDEXES=N FILE=Exp0326.DMP IGNORE=Y LOG=Imp0326_2.LOG
ÆäÖУ¬²ÎÊýINDEXES=NÊÇÖ¸½«Êý¾Ýµ¼ÈëÊý¾Ý¿âÖÐʱ²»¼ÓË÷Òý¡£IGNORE=YÊÇÖ¸ÔÚµ¼ÈëÊý¾Ý¹ý³ÌÖУ¬ºöÂÔ±íÒѾ­´æÔÚ£¨table already exists£©µÄ´íÎó¡£ÕâÑùOralce¾Í½«Êý¾ÝºÍһЩԼÊøÌõ¼þµ¼Èëµ½µÚ3²½´´½¨µÄ±íÖС£
5. ´´½¨Ë÷Òý
ÔÚÎı¾±à¼­Æ÷ÖÐÖØÐ


Ïà¹ØÎĵµ£º

½â¾öOracleÎÞ¼àÌý´íÎó

ÔÚÓÃPL/SQL DeveloperÁ¬½ÓÊý¾Ý¿âʱ³öÏÖ
“ORA-12541:TNS:ÎÞ¼àÌý³ÌÐò”´íÎó¡£
1¡¢¼ì²élistener.logÈÕÖ¾
·¢ÏÖÏÂÃæ´íÎó£º
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-9ÔÂ -2008 10:25:26
Copyright (c) 1991, 2005, Oracle. All rights reserved.
ϵͳ²ÎÊýÎļþΪD:\oracle\product\1 ......

oracle flashback


1£¬ÉÁ»ØÊý¾Ý¿âµ½Ö®Ç°Ä³Ê±¼äµã£¨ÔÚ°²×°Ê±ÐèÒª¿ª·ÅÉÁ»Ø¹¦ÄÜ£©
²»Ö§³Ö±í¿Õ¼äɾ³ý
 select name from v$database;
 --¿´ÊÇ·ñ´ò¿ªÉÁ»Ø¹¦ÄÜ
 select flashback_on,name from v$database;
 select name from v$bgprocess where paddr<>'00' order by 1;
´ò¿ªÉÁ»Ø¹¦ÄÜ
SQL> shutdown immedia ......

OracleÊý¾Ý¿âµ¼Èë±ÃºÍµ¼³ö±ÃimpdpºÍexpdp£¨1£©

OracleÊý¾Ý¿âµ¼Èë±ÃºÍµ¼³ö±ÃimpdpºÍexpdp£¨1£©
 
Oracleµ¼Èëµ¼³ö¹Ù·½¶¨Òå
 
ÈçºÎ²é¿´ImpdpºÍExpdpÃüÁ
Ç°Ì᣺°²×°OracleÊý¾Ý¿â£¨µ¼Èë±ÃºÍµ¼³ö±ÃÖ»ÄÜÔÚOracleÊý¾Ý¿â·þÎñÆ÷¶ËʹÓã©¡£
Ò»¡¢             IMPDPÃüÁî
1.     ......

ÍæתOracle£¨2£©

sql*plus ÃüÁî
//Ö´Ðнű¾
@ºÍstart d:/a.txt;
//Ð޸Ľű¾
edit d:/a.txt;
//½«ÄÚÈÝÊäÈëµ½Îı¾ÖÐ
sloop d:/a.txt;  //¿ªÊ¼¼Ç¼ÆÁÄ»ÄÚÈÝ
sloop off;  //¼Ç¼½áÊø
//Á´½ÓµÇ¼Êý¾Ý¿â
connect system/919959 as sysdba/sysoper;  //ȨÏÞ×î´ódba
connect sys/919959;
connect scott/ti ......

OracleÊý¾Ý¿âµÄÆÕͨǨÒÆ·½·¨

ÔÚÏàͬ²Ù×÷ϵͳ»·¾³Ï£¬Ïàͬ°æ±¾OracleÊý¾Ý¿âµÄǨÒƱȽϼòµ¥¡£
 
´óÖ²½Ö裺
1¡¢È·¶¨Ô´»úµÄ²Ù×÷ϵͳÀàÐͺͰ汾£¬Ô´»úÖ÷»úÃû£»Oracle°æ±¾£¬°²×°Ä¿Â¼£¬SID¡£
±¾ÀýÖУ¬Ô´»úΪ£º  Win2k Adv£¬ ywxt£¬Oracle v8.17,  d:\oracle, orcl
Ä¿±ê»úΪ£ºWin2003£¬ywxt£¬Oracle v8.17,  d:\oracle, orcl
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ