OracleÖ®EXPÓëIMP
ʹÓÃEXP
EXPÃüÁîÐÐÑ¡Ïî
1,BUFFER
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨ÌáÈ¡ÐÐÊý¾ÝʱµÄ»º³åÇø³ß´ç.ͨ¹ýÉèÖøÃÑ¡Ïî,¿ÉÒÔÈ·¶¨µ¼³öʱÊý¾ÝÌáÆð³ß´ç.¸ÃÑ¡ÏîÖ»ÊÊÓÃÓÚ³£¹æÑ¡Ïî.
Exp scott/tiger tables=dept,emp file=a.dmp buffer=81920
2,COMPRESS
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨µ¼Èë¹ÜÀí³õʼÇø(INITIAL)µÄ·½·¨.ĬÈÏֵΪY.µ±ÉèÖøÃÑ¡ÏîΪYʱ,oracle»á½«INITIALÉèÖÃΪ±í¶ÎµÄµ±Ç°³ß´ç;µ±ÉèÖøÃÑ¡ÏîΪNʱ,oracleÈÔȻʹÓñí¶ÎµÄÔÓд洢²ÎÊý(INITIALºÍNEXT).
3.CONSISTENT
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨ÊÇ·ñʹÓÃSET TRANSACTION READ ONLYÓï¾äÈ·±£È¡µÃÒ»ÖÂʱ¼äµãµÄÊý¾Ý,ĬÈÏֵΪN .µ±ÉèÖøÃÑ¡ÏîΪYʱ,ËùÓб»µ¼³ö±í»áÔÚͬһ¸öÊÂÎñÄÚÍê³Éµ¼³ö.È·±£È¡µÃÒ»ÖÂʱ¼äµãµÄÊý¾Ý,µ±ÉèÖøÃÑ¡ÏîΪNʱ,ÿ¸ö±»µ¼³ö±í»áʹÓöÀÁ¢ÊÂÎñµ¼³ö.ÐèҪעÒâ,µ¼³öÊý¾Ý¿âʱ,Ϊ
Á˱ÜÃâsnapshot too old ´íÎó,²»Òª½«Ñ¡ÏîCONSISTENTÉèÖÃΪY.
4,CONSTRAINTS
ÉèÊÇ·ñµ¼³ö±íµÄÔ¼Êø,ĬÈÏֵΪY.
5,DIRECT
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨ÊÇ·ñʹÓÃÖ±½Óµ¼³ö·½Ê½,ĬÈÏֵΪN.µ±ÉèÖøÃÑ¡ÏîΪYʱ,²ÉÓÃÖ±½Óµ¼³ö·½Ê½;µ±ÉèÖÃΪNʱ,²ÉÓó£¹æµ¼³ö·½Ê½.ÐèҪעÒâ,Ö±½Óµ¼³ö·½Ê½ËÙ¶ÈÒªÓÅÓÚ³£¹æµ¼³ö,µ«ÒªÇó¿Í»§¶ËºÍ·þÎñ¶ËµÄ×Ö·û¼¯±ØÐëÍêÈ«Ò»ÖÂ.
6.FEEDBACK
Ö¸¶¨µ¼³öÐÐÊýÏÔʾ½ø³Ì¿ò,ĬÈÏΪ0,Èç¹ûÉèÖøÃÑ¡ÏîΪ10,Ôòÿµ¼³ö10ÐÐÏÔʾһ¸öÔ°µã(.)
7,FILE
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨µ¼³öÎļþÃû
8,FILESIZE
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨µ¼³öÎļþµÄ×î´ó³ß´ç.
9,FLASHBACK_SCN
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨µ¼³öÌض¨SCNʱ¿ÌµÄ±íÊý¾Ý.FLASHBACK_SCNÑ¡ÏîºÍFLASHBACK_TIMEÑ¡Ïî²»ÄÜͬʱʹÓÃ.
Exp system/manager tables=scott.dept,scott.emp file=a.dmp
Flashback_scn=941931
10.FLASHBACK_TIME
Ö¸¶¨µ¼³öÌض¨Ê±¿ÌµÄÊý¾Ý
Exp system/manager tables=scott.dept,scott.emp file=a.dmp
Flashback_time=”’2004-07-06 15:59:52’”
11.FULL
Ö¸¶¨Êý¾Ý¿âµ¼³öģʽ,ĬÈÏֵΪN,µ±ÉèÖÃΪYʱ,µ¼³ö³ýSYSÍâËùÓÐÆäËû·½°¸µÄ¶ÔÏó.
12.GRANTS
¸ÃÑ¡ÏîÓÃÓÚÖ¸¶¨ÊÇ·ñµ¼³ö¶ÔÏóȨÏÞÐÅÏ¢,ĬÈÏֵΪY.
13.HELP
14.INDEXES
Ö¸¶¨ÊÇ·ñµ¼³öÓë±íºÍ´ØÏà¹ØµÄË÷Òý,ĬÈÏֵΪY
15,LOG
Ö¸¶¨µ¼³öÈÕÖ¾ÎļþµÄÃû³Æ,ĬÈÏÇé¿öϲ»ºÃÉú³Éµ¼³öÈÕÖ¾Îļþ.
16.OBJECT_CONSISTENT
ÓÃÓÚÖ¸¶¨ÊÇ·ñ»ùÓÚ¶ÔÏó¼¶ÉèÖÃÖ»¶ÁÊÂÎñµ¼³ö,ĬÈÏֵΪN,µ±ÉèÖøÃÑ¡ÏîΪYʱ,»ùÓÚÿ¸ö¶ÔÏóÉèÖÃÒ»¸öÖ»¶ÁÊÂÎñ,È»ºóµ¼³öÏàÓ¦¶ÔÏóµÄÊý¾Ý.
17.OWNER
Ö¸¶¨ÓÃÓÚµ¼³öģʽ.
18.PARFILE
Ö¸¶¨µ¼³ö¹¤¾ßҪʹÓõIJÎÊýÎļþÃû.Èç¹û¾³£ÐèҪʹÓÃEXP¹¤¾ßµ¼³öÊý¾Ý,
Ïà¹ØÎĵµ£º
1£®Ê²Ã´½Ð×öÂãÉ豸£¿
¡¡¡¡ÂãÉ豸£¬Ò²½ÐÂã·ÖÇø£¨Ôʼ·ÖÇø£©£¬ÊÇÒ»ÖÖûÓо¹ý¸ñʽ»¯£¬²»±»Unixͨ¹ýÎļþϵͳÀ´¶ÁÈ¡µÄÌØÊâ×Ö·ûÉ豸¡£ËüÓÉÓ¦ÓóÌÐò¸ºÔð¶ÔËü½øÐжÁд²Ù×÷¡£²»¾¹ýÎļþϵͳµÄ»º³å¡£
¡¡¡¡
¡¡¡¡2£®ÈçºÎ±æ±ðÂãÉ豸£¿
¡¡¡¡ÔÚUnixµÄ/dev Ŀ¼Ï£¬ÓÐÐí¶àÎļþ£¬ÆäÖÐÓÐÁ½¸ö´óÀࣺ×Ö·ûÉ豸ÎļþºÍ¿éÉ豸Îļþ¡£
¡¡¡¡× ......
v$database Êý¾Ý¿âÐÅÏ¢
v$datafile Êý¾ÝÎļþÐÅÏ¢
v$controlfile ¿ØÖÆÎļþÐÅÏ¢
v$logfile ÖØ×öÈÕÖ¾ÐÅÏ¢
v$instance Êý¾Ý¿âʵÀýÐÅÏ¢
v$log ÈÕÖ¾×éÐÅÏ¢
v$loghist ÈÕÖ¾ÀúÊ·ÐÅÏ¢
v$sga Êý¾Ý¿âSGAÐÅÏ¢
v$parameter ³õʼ»¯²ÎÊýÐÅÏ¢
v$process Êý¾Ý¿â·þÎñÆ÷½ø³ÌÐÅÏ¢
v$bgprocess Êý¾Ý¿âºǫ́½ø³ÌÐÅÏ¢
v$controlfil ......
AU
ASMµÄ×îС·ÖÅäµ¥Ôª£¬Ä¬ÈÏÊÇ1M£¬¿ÉÒÔÔÚ´´½¨diskgroupʱָ¶¨¡£ÔÚdiskgroupÖеÄÿ¸öÅ̶¼±»ÇзÖΪºÜ¶à¸öAU£¬¿ÉÒÔÊÇ1, 2, 4, 8, 16, 32, or 64MB¡£
File Extent
ÓÉÒ»¸ö»ò¶à¸öAU×é³É£¬Ò»¸öfile extent×ÜÊÇÔÚÒ»¿é´ÅÅÌÉÏ£¨²»¿ç´ÅÅÌ·ÖÅäAU£©£¬ÕâÀïµÄfile extentºÍÊý¾Ý¿âÖеÄextentÊDz»Í¬µÄ£¬ÎÒÃÇ¿ÉÒÔÕâÑùÀí½â£¬ÕâÀïµÄfile ex ......
ÁгöÅäÖõÄËùÓÐÊý¾Ý¿â
[root@node1 ~]# srvctl config database
NOVADB
ËùÓÐʵÀýºÍ·þÎñµÄ״̬
[root@node1 ~]# srvctl status database -d NOVADB
Instance NOVADB1 is running on node node1
Instance NOVADB2 is running on node node2
µ¥¸öʵÀýµÄ״̬
[root@node1 ~]# srvctl status instance -d NOVADB -i NOVA ......
Oracle ¼ì²é¶ÔÏó
8.3. Oracle¶ÔÏóµÄ״̬
¹²·ÖÁù¸ö²¿·Ö£¬·Ö±ðΪ£º¼ì²éOracle¿ØÖÆÎļþ״̬£»¼ì²éOracleÔÚÏßÈÕ־״̬£»¼ì²éOracle±í¿Õ¼äµÄ״̬£»¼ì²éOracleËùÓÐÊý¾ÝÎļþ״̬£»¼ì²éOracleËùÓÐ±í¡¢Ë÷Òý¡¢´æ´¢¹ý³Ì¡¢´¥·¢Æ÷¡¢°üµÈ¶ÔÏóµÄ״̬£»¼ì²éOracleËùÓлعö¶ÎµÄ״̬¡£
8.3.1. Oracle¿ØÖÆÎļþ״̬
¼ì²é¿ØÖÆÎļþ×´Ì ......