av激情亚洲男人的天堂国语,日韩欧美精品一中文字幕,无码av一区二区三区无码,国产又色又爽又刺激的a片,国产又色又爽又刺激的a片

Oracle創(chuàng)建用戶表空間和導入導出數據舉例

//創(chuàng)建臨時表空間

創(chuàng)新互聯(lián)是專業(yè)的秀嶼網站建設公司,秀嶼接單;提供成都網站設計、做網站、成都外貿網站建設公司,網頁設計,網站設計,建網站,PHP網站建設等專業(yè)做網站服務;采用PHP框架,可快速的進行秀嶼網站開發(fā)網頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網站,專業(yè)的做網站團隊,希望更多企業(yè)前來合作!

 
 
  1. create temporary tablespace test_temp   
  2. tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf'   
  3. size 32m   
  4. autoextend on   
  5. next 32m maxsize 2048m  
  6. extent management local; 

//創(chuàng)建數據表空間

 
 
  1. create tablespace test_data  
  2. logging  
  3. datafile 'E:\oracle\product\10.2.0\oradata\testserver\test_data01.dbf'   
  4. size 32m   
  5. autoextend on   
  6. next 32m maxsize 2048m  
  7. extent management local

//創(chuàng)建用戶并指定表空間

 
 
  1. create user testserver_user identified by testserver_user  
  2. default tablespace test_data  
  3. temporary tablespace test_temp; 

//給用戶授予權限

 
 
  1. grant connect,resource to testserver_user; 

//數據導出:

 
 
  1. //1 將數據庫TEST完全導出,用戶名system 密碼manager 導出到D:daochu.dmp中  
  2.    exp system/manager@TEST   
  3.  
  4.    file=d:/daochu.dmp full=y  
  5. //2 將數據庫中system用戶與sys用戶的表導出  
  6.    exp system/manager@TEST file=d:daochu.dmp owner=(system,sys)  
  7. //3 將數據庫中的表inner_notify、notify_staff_relat導出  
  8.     exp aichannel/aichannel@TESTDB2 file= d:datanewsmgnt.dmp tables=(inner_notify,notify_staff_relat)  
  9. //4 將數據庫中的表table1中的字段filed1以"00"打頭的數據導出  
  10.    exp system/manager@TEST file=d:daochu.dmp tables=(table1) query=" where filed1 like '00%'" 

//上面是常用的導出,對于壓縮,既用winzip把dmp文件可以很好的壓縮。
//也可以在上面命令后面 加上 compress=y 來實現。
//數據的導入
//1 將D:daochu.dmp 中的數據導入 TEST數據庫中。
   imp system/manager@TEST full=y file=d:daochu.dmp
   imp aichannel/aichannel@HUST full=y file=d:datanewsmgnt.dmp ignore=y
   //上面可能有點問題,因為有的表已經存在,然后它就報錯,對該表就不進行導入。
   //在后面加上 ignore=y 就可以了。
2 將d:daochu.dmp中的表table1 導入
//imp system/manager@TEST file=d:daochu.dmp tables=(table1)

本文來自CSDN博客,轉載請標明出處:http://blog.csdn.net/lstrue/archive/2009/02/04/3862378.aspx


本文名稱:Oracle創(chuàng)建用戶表空間和導入導出數據舉例
URL鏈接:http://uogjgqi.cn/article/dhjohpp.html
掃二維碼與項目經理溝通

我們在微信上24小時期待你的聲音

解答本文疑問/技術咨詢/運營咨詢/技術建議/互聯(lián)網交流