gdufo

           

          oracle 11數據導入與導出

          建立目錄:以SYS管理登錄
          sql> create directory expdir as '/opt/oracle/oradata/orcl';
          一。授權用戶
          sql> grant EXP_FULL_DATABASE to orauser
          sql> grant IMP_FULL_DATABASE  to orauser
          在linux命令窗口以 oracle用戶登錄
          導出:
          # expdp orauser/password directory=expdir compression=ALL  dumpfile=data.dmp full=y logfile=exp.log

          導入(整個數據庫):
          # impdp orauser/password directory=expdir   dumpfile=data.dmp logfile=exp.log 
          full=y
          導入(指定用戶):
          # impdp orauser/password directory=expdir   dumpfile=data.dmp logfile=exp.log schemas=xxx

          注意:
            針對大數據庫導入時,遇到了 由于db_recovery_file_dest_size=4G (太小),導致不能寫日志,導入過程停在那里了。
          通過
          SQL> alter system set db_recovery_file_dest_size =50G scope=both來設置。

          posted on 2012-10-23 19:46 gdufo 閱讀(567) 評論(0)  編輯  收藏 所屬分類: Database (oracle, sqlser,MYSQL)

          導航

          統計

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          收藏夾

          Hibernate

          友情鏈接

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 宁都县| 鹤峰县| 昔阳县| 延长县| 彝良县| 乐东| 舒城县| 西畴县| 吕梁市| 四子王旗| 屯留县| 黑龙江省| 舒城县| 仪征市| 许昌市| 云浮市| 太康县| 大余县| 北票市| 房山区| 禄丰县| 仁化县| 定远县| 和田县| 全南县| 阿拉尔市| 潞西市| 靖江市| 青川县| 交口县| 津市市| 五家渠市| 义乌市| 龙里县| 高邑县| 原阳县| 开平市| 大英县| 从江县| 平塘县| 荣昌县|