oracle 命令建立使用者 、授權、資料庫匯入、匯出

來源:互聯網
上載者:User

標籤:

最近在使用oracle,經常要匯入匯出資料,命令很簡單,卻經常忘記,所以記下來。。

drop user yfplss cascade;--登入system使用者刪除已存在的使用者名稱,該使用者下的所有東西都被刪掉--建立資料表空間create tablespace yfplss loggingdatafile ‘D:/app/Administrator/oradata/oral/yfplss.dbf‘--存放資料表空間的地址size 100m--大小autoextend on --150M自動成長next 150m maxsize 10240mextent management local;--建立使用者create user yfplss identified by yfplss default--第一個yfplss是使用者名稱,第二個yfplss是密碼 tablespace yfplss temporary tablespace temp;--預設資料表空間是yfplss--給使用者賦許可權grant connect,resource,dba to yfplss;commit;--匯入資料:imp yfplss/yfplss@orcl file=d:\mydata.dmp fromuser=yfplss touser=yfplss grants=no;--yfplss / yfplss是使用者名稱/密碼 @orcl  伺服器資料庫名,file=d:\mydata.dmp為匯入的資料存放路徑--資料匯出:exp yfplss/yfplss@orcl  file=d:/oms.dmp

 

oracle 命令建立使用者 、授權、資料庫匯入、匯出

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.