oracle 11數(shù)據(jù)導(dǎo)入與導(dǎo)出
建立目錄:以SYS管理登錄sql> create directory expdir as '/opt/oracle/oradata/orcl';
一。授權(quán)用戶
sql> grant EXP_FULL_DATABASE to orauser
sql> grant IMP_FULL_DATABASE to orauser
在linux命令窗口以 oracle用戶登錄
導(dǎo)出:
# expdp orauser/password directory=expdir compression=ALL dumpfile=data.dmp full=y logfile=exp.log
導(dǎo)入(整個(gè)數(shù)據(jù)庫):
# impdp orauser/password directory=expdir dumpfile=data.dmp logfile=exp.log full=y
導(dǎo)入(指定用戶):
# impdp orauser/password directory=expdir dumpfile=data.dmp logfile=exp.log schemas=xxx
注意:
針對大數(shù)據(jù)庫導(dǎo)入時(shí),遇到了 由于db_recovery_file_dest_size=4G (太小),導(dǎo)致不能寫日志,導(dǎo)入過程停在那里了。
通過
SQL> alter system set db_recovery_file_dest_size =50G scope=both來設(shè)置。
注意:
針對大數(shù)據(jù)庫導(dǎo)入時(shí),遇到了 由于db_recovery_file_dest_size=4G (太小),導(dǎo)致不能寫日志,導(dǎo)入過程停在那里了。
通過
SQL> alter system set db_recovery_file_dest_size =50G scope=both來設(shè)置。
posted on 2012-10-23 19:46 gdufo 閱讀(563) 評論(0) 編輯 收藏 所屬分類: Database (oracle, sqlser,MYSQL)