1
oracle資料庫備份與恢復步驟
資料庫備份與恢復步驟:
1、 匯出資料庫可以,在dos窗體執行下邊語句:
exp gdpmp/gdpmp@ora9
exp gdpmp/gdpmp@ora9 rows=no 將會匯出空表。
2、 然後,按照步驟進行確認。
3、 如果是預設路徑,將會在c盤根目錄生成乙個expdat.dmp的檔案。
如果不是預設路徑,將上述語句改為: exp gdpmp/gdpmp@ora9 file=d:\aaa.dmp 也可以。
4、 匯入資料庫,在dos窗體執行下邊語句:
imp gdpmp/gdpmp@ora9 file=d:\aaa.dmp full=y
5、 然後回車就可以了。
【注】前乙個gdpmp是使用者,後乙個是密碼。而且改使用者需要有dba的角色。ora9是資料庫連線名字。
2 oracle資料庫備份與恢復步驟
只匯出3張表的結構:
exp user/pasword@dbservername owner=user tables=(tb1,tb2,tb3) rows=n file=c:1.dmp
連帶資料匯出:
exp user/pasword@dbservername owner=user tables=(tb1,tb2,tb3) rows=y file=c:2.dmp
imp user2/pasword@dbservername2 fromuser=user touser=user2 file=c:1.dmp
或者imp user2/pasword@dbservername2 fromuser=user touser=user2 file=c:2.dmp
3 oracle資料庫備份與恢復步驟
exp/imp工具;
帶引數:rows=y —— 帶資料匯出匯入;
rows=n —— 不帶資料的匯出匯入,只移植結構
oracle資料庫恢復與備份
一 oracle資料庫恢復 1.恢復剛才刪除的一條資料 delete from emp e where e.empname smith select from flashback transaction query f where f.table name emp undo sql下面的語句為剛才刪...
oracle資料庫備份與恢復
一 使用資料幫浦備份資料 1.建立目錄物件並授權 connect sys password as sysdba create directory dir1 as e dump1 create directory dir2 as e dump2 grant read,write on director...
Oracle資料庫備份與恢復 增量備份
rman乙個強大的功能是支援增量備份,增量備份中心思想就是減少備份的資料量,我們不需要在從頭開始備份了,只需要備份自上次已備份之後的資料塊即可。關於incremental增量備份級別 oracle 9i 共有五種級別 0 1 2 3 4,0級最高 4級最低,0級是1級的基礎以此類推。oracle 1...