自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle創(chuàng)建用戶表空間和導(dǎo)入導(dǎo)出數(shù)據(jù)舉例

開發(fā)
本文將介紹Oracle創(chuàng)建用戶表空間和導(dǎo)入導(dǎo)出數(shù)據(jù)舉例,包括一些命令和其他的代碼。

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

  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ù)庫(kù)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ù)庫(kù)中system用戶與sys用戶的表導(dǎo)出  
  6.    exp system/manager@TEST file=d:daochu.dmp owner=(system,sys)  
  7. //3 將數(shù)據(jù)庫(kù)中的表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ù)庫(kù)中的表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)出,對(duì)于壓縮,既用winzip把dmp文件可以很好的壓縮。
//也可以在上面命令后面 加上 compress=y 來實(shí)現(xiàn)。
//數(shù)據(jù)的導(dǎo)入
//1 將D:daochu.dmp 中的數(shù)據(jù)導(dǎo)入 TEST數(shù)據(jù)庫(kù)中。
   imp system/manager@TEST full=y file=d:daochu.dmp
   imp aichannel/aichannel@HUST full=y file=d:datanewsmgnt.dmp ignore=y
   //上面可能有點(diǎn)問題,因?yàn)橛械谋硪呀?jīng)存在,然后它就報(bào)錯(cuò),對(duì)該表就不進(jìn)行導(dǎo)入。
   //在后面加上 ignore=y 就可以了。
2 將d:daochu.dmp中的表table1 導(dǎo)入
//imp system/manager@TEST file=d:daochu.dmp tables=(table1)


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

責(zé)任編輯:彭凡 來源: CSDN
相關(guān)推薦

2010-10-28 11:55:47

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

2009-06-05 11:55:00

數(shù)據(jù)庫(kù)用戶管理數(shù)據(jù)導(dǎo)入導(dǎo)出

2009-11-02 18:03:25

Oracle用戶表空間

2010-11-16 10:32:01

Oracle創(chuàng)建表空間

2009-11-24 17:20:48

Oracle查看用戶表

2009-10-21 16:03:06

Oracle查詢用戶表

2009-11-05 17:53:05

Oracle用戶表空間

2010-10-27 14:41:45

Oracle查詢用戶表

2015-07-23 17:02:55

oracle創(chuàng)建數(shù)據(jù)庫(kù)

2010-04-15 14:18:30

Oracle創(chuàng)建

2010-04-22 10:16:43

2010-04-15 14:39:56

Oracle創(chuàng)建表空間

2010-04-23 17:20:34

Oracle創(chuàng)建

2010-11-16 10:15:24

oracle創(chuàng)建表空間

2009-11-04 11:03:08

Oracle用戶表空間

2011-04-13 10:09:50

Oracle數(shù)據(jù)泵導(dǎo)入導(dǎo)出

2011-04-08 15:22:56

Oracle導(dǎo)入導(dǎo)出命令

2009-10-21 16:40:43

Oracle用戶表空間

2010-11-16 16:26:42

Oracle查詢用戶表

2010-11-16 10:21:25

Oracle創(chuàng)建表
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)