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

轉(zhuǎn)移Oracle海量數(shù)據(jù)的“竅門”

數(shù)據(jù)庫 Oracle
以下的文章那個(gè)主要教會(huì)你在快速轉(zhuǎn)移Oracle海量數(shù)據(jù)的具體操作方案,本文講述的是兩個(gè)方法,希望會(huì)給你帶來一些幫助在此方面。

如果你在實(shí)際的相關(guān)操作中想要把Oracle海量數(shù)據(jù)(80MB以上),把它轉(zhuǎn)移到另外一個(gè)的用戶或者是另外的相關(guān)表空間里。我們建議你可以使用以下的快速轉(zhuǎn)移數(shù)據(jù)的方法。即,建新表的方式 以及直接插入的方法 

 

一、建新表的方式

 

  1. create table target_tablename tablespace   
  2. target_tablespace_name nologging   
  3. pctfree 10 pctused 60   
  4. storage(initial 5M next 5M minextents 1   
  5. maxextents unlimited pctincrease 0)  
  6. as select * from username.source_tablename where 條件;  

 

 

注意事項(xiàng): 新建的表沒有原來表的索引和默認(rèn)值, 只有非空(not null)的約束素條件可以繼承過來,其它的約束條件或索引需要重新建立.

 

二、直接插入的方法

 

  1. INSERT /*+ APPEND */ INTO target_tablename   
  2. SELECT * FROM username.source_tablename where 條件;   
  3. COMMIT;   

 

 

注意事項(xiàng):

 

用INSERT /*+ APPEND */ 的方法會(huì)對(duì)target_tablename產(chǎn)生級(jí)別為6的獨(dú)占鎖,如果運(yùn)行此命令時(shí)還有對(duì)target_tablename的DML操作會(huì)排隊(duì)在它后面,對(duì)OLTP系統(tǒng)在用的表操作是不合適的。

說明:這兩種方法轉(zhuǎn)移數(shù)據(jù)時(shí)沒有用SGA里數(shù)據(jù)緩沖區(qū)和事物處理的回滾段, 也不寫聯(lián)機(jī)事物日志,就象數(shù)據(jù)庫裝載工具Solload一樣直接把數(shù)據(jù)寫到物理文件,速度是很快的。在Oracle8i以后的版本都可以使用。

以上的相關(guān)內(nèi)容就是對(duì)快速轉(zhuǎn)移Oracle海量數(shù)據(jù)的具體操作方案的介紹,望你能有所收獲。

文章出自:http://database.csdn.net/c_oracle/tag/2

【編輯推薦】

  1. Oracle 8i中字符集亂碼問題詳細(xì)解析
  2. 存儲(chǔ)結(jié)構(gòu)之Oracle邏輯存儲(chǔ)結(jié)構(gòu)
  3. Oracle游標(biāo)的刪除與更新實(shí)際操作步驟
  4. Oracle游標(biāo)提取相關(guān)的數(shù)據(jù)的語法介紹
  5. Oracle游標(biāo)的打開與關(guān)閉
責(zé)任編輯:佚名 來源: csdn
相關(guān)推薦

2010-04-14 12:38:56

Oracle海量數(shù)據(jù)

2010-04-19 10:50:01

Oracle轉(zhuǎn)移

2011-01-05 15:15:01

數(shù)據(jù)庫

2010-04-16 09:36:45

JDBC橋接Oracl

2010-04-01 09:56:44

Oracle DECO

2010-04-13 13:24:04

Oracle數(shù)據(jù)庫

2010-04-19 15:53:20

Oracle重做日志

2011-06-03 09:22:04

OracleOracle應(yīng)用服務(wù)器

2010-05-06 18:01:07

Oracle Expr

2010-07-08 11:15:37

SQL Server數(shù)

2013-03-01 10:46:50

大數(shù)據(jù)核心海量數(shù)據(jù)

2010-07-01 13:29:56

SQL Server數(shù)

2013-09-03 09:38:41

云計(jì)算數(shù)據(jù)安全亞馬遜

2013-09-03 13:01:12

數(shù)據(jù)安全數(shù)據(jù)存儲(chǔ)

2010-09-06 10:00:00

DB2數(shù)據(jù)庫

2017-11-16 19:26:34

海量數(shù)據(jù)算法計(jì)算機(jī)

2011-08-29 14:33:41

2011-04-28 09:36:22

海量數(shù)據(jù)存儲(chǔ)

2017-02-23 10:27:59

2010-03-15 12:56:55

Python Java
點(diǎn)贊
收藏

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