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

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

新聞中心

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

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

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

//給用戶授予權(quán)限

 
 
  1. grant connect,resource to testserver_user; 

//數(shù)據(jù)導(dǎo)出:

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

//上面是常用的導(dǎo)出,對于壓縮,既用winzip把dmp文件可以很好的壓縮。
//也可以在上面命令后面 加上 compress=y 來實現(xiàn)。
//數(shù)據(jù)的導(dǎo)入
//1 將D:daochu.dmp 中的數(shù)據(jù)導(dǎo)入 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
   //上面可能有點問題,因為有的表已經(jīng)存在,然后它就報錯,對該表就不進行導(dǎo)入。
   //在后面加上 ignore=y 就可以了。
2 將d:daochu.dmp中的表table1 導(dǎo)入
//imp system/manager@TEST file=d:daochu.dmp tables=(table1)

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


標題名稱:Oracle創(chuàng)建用戶表空間和導(dǎo)入導(dǎo)出數(shù)據(jù)舉例
本文路徑:http://www.5511xx.com/article/dhjohpp.html