歡迎光臨郝學武的blog。

          oracle數據備份等常用操作

          Posted on 2008-12-09 00:40 陜西BOY 閱讀(101) 評論(0)  編輯  收藏
          oracle知識
          備份數據
          1、獲取幫助:
              exp help=y
          2. 導出一個完整數據庫
               exp user/pwd@instance file=path full=y
              示例:exp system/system@xc file = c:/hehe fill =y
          3 、導出一個或一組指定用戶所屬的全部表、索引和其他對象
              exp system/manager file=seapark log=seapark owner=seapark exp system/manager file=seapark log=seapark owner=(seapark,amy,amyc,harold)
              示例:exp system/system@xc file=c:/hehe owner=uep
          4、導出一個或多個指定表
              exp system/manager file=tank log=tank tables=(seapark.tank,amy.artist)
              示例:exp system/system@xc file=c:/heh tables=(ueppm.ne_table)


          恢復數據

          1. 獲取幫助

           imp help=y

          2. 導入一個完整數據庫

           imp system/manager file=bible_db log=dible_db full=y ignore=y

          3. 導入一個或一組指定用戶所屬的全部表、索引和其他對象

           imp system/manager file=seapark log=seapark fromuser=seapark 
          imp
          system/manager file=seapark log=seapark fromuser=(seapark,amy,amyc,harold)

          4. 將一個用戶所屬的數據導入另一個用戶

           imp system/manager file=tank log=tank fromuser=seapark touser=seapark_copy
           imp system/manager file=tank log=tank fromuser=(seapark,amy) touser=(seapark1, amy1)

          5. 導入一個表

           imp system/manager file=tank log=tank fromuser=seapark TABLES=(a,b)

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          posts - 17, comments - 65, trackbacks - 0, articles - 28

          Copyright © 陜西BOY

          主站蜘蛛池模板: 石台县| 黑水县| 襄汾县| 长泰县| 兰坪| 玛沁县| 新田县| 台江县| 大丰市| 京山县| 余干县| 龙游县| 南涧| 贡嘎县| 周口市| 义乌市| 高邮市| 乐山市| 淮阳县| 大兴区| 红原县| 朝阳市| 苗栗县| 滨海县| 嘉义县| 讷河市| 波密县| 内丘县| 长寿区| 潼关县| 南汇区| 项城市| 甘孜县| 疏勒县| 荃湾区| 奎屯市| 通辽市| 共和县| 塔城市| 铜梁县| 比如县|