oracle 10g將資料匯入到指定資料表空間的步驟

來源:互聯網
上載者:User

標籤:datafile   ext   ble   max   設定   匯入   注意   next   ant   

  1. --建立暫存資料表空間    
  2. create temporary tablespace  yhtemp       
  3. tempfile ‘D:/oracle/oradata/Oracle10g/yhtemp.dbf‘         
  4. size 50m         
  5. autoextend on         
  6. next 50m maxsize 20480m         
  7. extent management local;    
  8.   
  9. --建立資料資料表空間         
  10. create tablespace yh         
  11. logging         
  12. datafile ‘D:/oracle/oradata/Oracle10g/yh.dbf‘         
  13. size 50m         
  14. autoextend on         
  15. next 50m maxsize 20480m         
  16. extent management local;         
  17.         
  18. --建立使用者並指定資料表空間         
  19. create user yh identified by password         
  20. default tablespace yh         
  21. temporary tablespace yhtemp;         
  22.         
  23. --給使用者授予許可權           
  24. grant connect,resource,dba to yh;    
  25.   
  26. --撤銷此許可權   
  27. revoke unlimited tablespace from yh   
  28.   
  29. --將使用者在yss,test1資料表空間的配額置為0   
  30. alter user yh quota 0 on yss    
  31. alter user yh quota 0 on test1   
  32.   
  33. --設定在使用者在yh資料表空間配額不受限   
  34. alter user yh quota unlimited on yh  

轉載至別的部落格,本人以此步驟匯入成功

 

還有幾點新手需要注意的,在匯入的時候用自己建立的使用者名稱和密碼登陸上去的時候,不要用sysdba許可權,否則會匯入到sys使用者下,

匯入成功後 , 要查看錶的時候, 用自己建立的使用者名稱和密碼登陸時也不要用sysdba登陸,否則看不到你匯入的表

 

oracle 10g將資料匯入到指定資料表空間的步驟

聯繫我們

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