oracle imp exp 匯入匯出

來源:互聯網
上載者:User

標籤:存在   log   and   資料庫   nbsp   資料表空間   ace   pre   use   

一、exp匯出

exp itzy/itzy@orcl  file=D:\sql-bak\itzy.dmp  log=D:\sql-bak\itzy.log  exp 使用者/密碼@執行個體名  file=路徑加匯出檔案名稱 log=路徑加日誌名  

二、imp匯入

1、以sysdba串連資料庫  sqlplus "/as sysdba"    2、查看當前存在的使用者及資料表空間  select username,default_tablespace from dba_users;    3、如果要匯入的使用者存在則刪除  drop user itzy cascade;    4、刪除相應的資料檔案(jypx為資料表空間)  drop tablespace jypx including CONTENTS and datafiles;    5、在路徑F:\app\Administrator\oradata\orcl\下建立名為jypx.dbf資料表空間檔案,     資料表空間名為JYPX、初始大小為100M、自動成長大小32M、最大20000M  create tablespace JYPX datafile ‘F:\app\Administrator\oradata\orcl\jypx.dbf‘ size 100m autoextend on next 32m maxsize 20000m    預設大小為2048M  --create tablespace jypx logging datafile ‘E:\app\Administrator\oradata\oracle\jypx.dbf‘ size 2048m autoextend on next 32m extent management local;     6、在資料表空間JYPX下建立使用者密碼為itzy/itzy  create user itzy identified by itzy default tablespace JYPX;    7、給使用者itzy授權dba  grant dba to itzy;    8、退出  host;    9、匯入資料庫檔案   imp itzy/itzy file= D:\sql-bak\itzy.dmp full=y log=D:\sql-bak\itzy20170329.log ignore=y;  

 

oracle imp exp 匯入匯出

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.