1. 程式人生 > >oracle 資料庫Cmd命令匯入匯出

oracle 資料庫Cmd命令匯入匯出

 

imp 匯入資料庫:

      1.直接匯入資料表:   imp username/[email protected] file=d:\AA.dmp

         eg: imp 使用者名稱/密碼@orcl file=d:\dmp存放的路徑

 

exp匯出資料庫:

     1.匯出多張資料表:  exp username/[email protected] file=d:\AA.dmp tables=tables1,tables2,tables3........

      eg:exp 使用者名稱/密碼@orcl file=d:\dmp存放的路徑 tables=匯出資料表名稱

 

   2.匯出所有表結構資料庫:      exp username/[email protected] file=d:\AA.dmp

  eg:exp 使用者名稱/密碼@orcl file=d:\dmp存放的路徑