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

Oracle數(shù)據(jù)導(dǎo)出實(shí)例解析

數(shù)據(jù)庫(kù) Oracle
以下的文章是關(guān)于Oracle數(shù)據(jù)導(dǎo)出的實(shí)際操作步驟的介紹,以及Oracle數(shù)據(jù)導(dǎo)出的相關(guān)應(yīng)用代碼的描述,以下就是文章的具體內(nèi)容的介紹。

下面的文章內(nèi)容主要介紹的是Oracle導(dǎo)出的實(shí)例。如果你對(duì)Oracle數(shù)據(jù)導(dǎo)出的實(shí)際操作或是Oracle數(shù)據(jù)導(dǎo)出的實(shí)際應(yīng)用代碼不是很了解的話,你就可以點(diǎn)擊以下的文章,對(duì)其相關(guān)的知識(shí)有個(gè)更好的里了解。

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

1 將數(shù)據(jù)庫(kù)TEST完全導(dǎo)出,用戶名system 密碼manager 導(dǎo)出到D:daochu.dmp中

 

  1. exp system/manager@TEST file=d:daochu.dmp full=y 

full=y 如果TEST有DBA權(quán)限的話,會(huì)把整個(gè)SID下的數(shù)據(jù)庫(kù)導(dǎo)出來(lái),導(dǎo)出TEST整個(gè)用戶的話用full-y

2 將Oracle數(shù)據(jù)庫(kù)中system用戶與sys用戶的表導(dǎo)出

 

  1. exp system/manager@TEST file=d:daochu.
    dmp 
    owner=(system,sys) 

3 將數(shù)據(jù)庫(kù)中的表inner_notify、notify_staff_relat導(dǎo)出

 

  1. exp aichannel/aichannel@TESTDB2 file=
     
    d:datanewsmgnt.dmp tables=(inner_notify,notify_staff_relat) 

 

4 將數(shù)據(jù)庫(kù)中的表table1中的字段filed1以"00"打頭的數(shù)據(jù)導(dǎo)出

 

  1. exp system/manager@TEST file=d:daochu.dmp tables=
    (table1) 
    query=" where filed1 like '00%'" 

上面是常用的導(dǎo)出,對(duì)于壓縮,既用winzip把dmp文件可以很好的壓縮。

也可以在上面命令后面 加上 compress=y 來(lái)實(shí)現(xiàn)。

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

1 將D:daochu.dmp 中的數(shù)據(jù)導(dǎo)入 TEST數(shù)據(jù)庫(kù)中。

 

  1. imp system/manager@TEST file=d:daochu.dmp  
  2. imp aichannel/aichannel@HUST full=y file=
    d:datanewsmgnt.dmp ignore=y 

 

上面可能有點(diǎn)問(wèn)題,因?yàn)橛械谋硪呀?jīng)存在,然后它就報(bào)錯(cuò),對(duì)該表就不進(jìn)行導(dǎo)入。

在后面加上 ignore=y 就可以了。

2 將d:daochu.dmp中的表table1 導(dǎo)入

 

  1. imp system/manager@TEST file=
    d:daochu.dmp tables=(table1) 

基本上上面的導(dǎo)入導(dǎo)出夠用了。不少情況要先是將表徹底刪除,然后導(dǎo)入。

注意:

操作者要有足夠的權(quán)限,權(quán)限不夠它會(huì)提示。

Oracle數(shù)據(jù)庫(kù)時(shí)可以連上的。可以用tnsping TEST 來(lái)獲得數(shù)據(jù)庫(kù)TEST能否連上。

附錄一:

給用戶增加導(dǎo)入數(shù)據(jù)權(quán)限的操作

***,啟動(dòng)sql*puls

第二,以system/manager登陸

第三,create user 用戶名 IDENTIFIED BY 密碼 (如果已經(jīng)創(chuàng)建過(guò)用戶,這步可以省略)

第四,

  1. GRANT CREATE USER,DROP USER,ALTER USER ,CREATE ANY VIEW ,  
  2. DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,  
  3. DBA,CONNECT,RESOURCE,CREATE SESSION TO   

用戶名字

第五, 運(yùn)行-cmd-進(jìn)入dmp文件所在的目錄,

 

  1. imp userid=system/manager full=y file=*.dmp 

 

或者

  1. imp userid=system/manager full=y file=filename.dmp 

執(zhí)行示例:

 

  1. F:WorkOracle_Databackup>imp userid=test/test full=
    y file=inner_notify.dmp 

屏幕顯示

 

  1. Import: Release 8.1.7.0.0 - Production on 星期四 2月 
    16 16:50:05 2006  
  2. (c) Copyright 2000 Oracle Corporation. All rights reserved.   

 

連接到:

  1. Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production  
  2. With the Partitioning option  
  3. JServer Release 8.1.7.0.0 - Production  

 

經(jīng)由常規(guī)路徑導(dǎo)出由EXPORT:V08.01.07創(chuàng)建的文件

已經(jīng)完成ZHS16GBK字符集和ZHS16GBK NCHAR 字符集中的導(dǎo)入

導(dǎo)出服務(wù)器使用UTF8 NCHAR 字符集 (可能的ncharset轉(zhuǎn)換)

. 正在將AICHANNEL的對(duì)象導(dǎo)入到 AICHANNEL

. . 正在導(dǎo)入表 "INNER_NOTIFY" 4行被導(dǎo)入

準(zhǔn)備啟用約束條件...

成功終止導(dǎo)入,但出現(xiàn)警告。

附錄二:

Oracle 不允許直接改變表的擁有者, 利用Export/Import可以達(dá)到這一目的.

先建立import9.par,

然后,使用時(shí)命令如下:imp parfile=/filepath/import9.par

例 import9.par 內(nèi)容如下:

 

  1. FROMUSER=TGPMS 
  2. TOUSER=TGPMS2   
  3. ROWS=Y 
  4. INDEXES=Y 
  5. GRANTS=Y 
  6. CONSTRAINTS=Y 
  7. BUFFER=409600 
  8. file==/backup/ctgpc_20030623.dmp  
  9. log==/backup/import_20030623.log   

 

以上的相關(guān)內(nèi)容就是對(duì)Oracle數(shù)據(jù)導(dǎo)出的實(shí)例介紹,望你能有所收獲。

【編輯推薦】

  1. Oracle實(shí)現(xiàn)跨服務(wù)器操作詳解
  2. 關(guān)閉Oracle死鎖進(jìn)程的具體操作步驟
  3. 關(guān)閉Oracle死鎖進(jìn)程的具體操作步驟
  4. Oracle索引聚簇表的數(shù)據(jù)加載中兩個(gè)組成部分
  5. 對(duì)Oracle數(shù)據(jù)庫(kù)體系架構(gòu)概要解析
責(zé)任編輯:佚名 來(lái)源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-04-22 10:16:43

2010-03-30 09:01:01

Oracle數(shù)據(jù)

2010-04-06 11:30:09

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

2010-04-23 17:55:25

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

2010-04-06 09:32:15

Oracle job

2011-03-25 09:37:17

2011-05-19 13:25:14

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

2011-08-22 14:50:20

2011-03-29 10:47:49

ORACLE數(shù)據(jù)庫(kù)

2010-10-28 11:55:47

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

2011-05-26 15:20:46

Oracle數(shù)據(jù)庫(kù)導(dǎo)出

2011-04-13 10:09:50

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

2021-03-10 09:38:44

JeecgBoot 單表數(shù)據(jù)sheet實(shí)例

2011-08-18 14:25:26

OracleEXPLAIN PLA

2011-08-17 16:52:11

Oracle 10gLogmnr

2009-11-23 10:24:22

2011-04-13 09:03:58

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

2011-04-15 10:37:53

Oracle導(dǎo)入導(dǎo)出語(yǔ)法

2010-04-20 15:16:02

Oracle實(shí)例

2009-06-05 11:55:00

數(shù)據(jù)庫(kù)用戶管理數(shù)據(jù)導(dǎo)入導(dǎo)出
點(diǎn)贊
收藏

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