日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網營銷解決方案
Oracle創(chuàng)建用戶表空間和導入導出數(shù)據(jù)舉例

//創(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)建數(shù)據(jù)表空間

 
 
  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; 

//數(shù)據(jù)導出:

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

//上面是常用的導出,對于壓縮,既用winzip把dmp文件可以很好的壓縮。
//也可以在上面命令后面 加上 compress=y 來實現(xiàn)。
//數(shù)據(jù)的導入
//1 將D:daochu.dmp 中的數(shù)據(jù)導入 TEST數(shù)據(jù)庫中。
   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)建用戶表空間和導入導出數(shù)據(jù)舉例
URL網址:http://m.5511xx.com/article/dhjohpp.html