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

Oracle exp的常用工具有哪些

數(shù)據(jù)庫 Oracle
我們今天主要向大家介紹的是數(shù)據(jù)導出常用工具Oracle EXP的介紹,以及包括導出所包括表的三種模式的介紹,以下就是文章的具體內容介紹。

以下的文章主要是對Oracle exp篇,數(shù)據(jù)導出常用工具EXP的介紹,我們大家都知道Oracle EXP是用于客戶端的工具,此工具可以用于Oracle客戶端與Oracle服務器端。當在Oracle客戶端使用EXP工具時,必須帶有連接字符串;

當在Oracle服務器端使用EXP工具時,可以不帶字符串。導出包括導出表、導出方案、導出數(shù)據(jù)庫三種模式。

(1)導出表

導出表是指使用EXP工具將一個或多個表的結構和數(shù)據(jù)存儲到OS文件中,導出表是使用TABLES選項來完成的。

普通用戶可以導出其自身方案的所有表,但如果要導出其他方案的表,則要求該用戶必須具有EXP_FULL_DATABASE角色或DBA角色。另外當導出表時,默認情況下會導出相應表上的所有索引、觸發(fā)器、約束。下面以SYSTEM用戶導出SCOTT.DEPT表為例,示例如下:

 

  1. exp system/Oracle@charge TABLE=scott.dept,scott.emp FILE=tab1.dmp 

(2)導出方案

導出方案是指使用Oracle EXP工具將一個或多個方案中的所有對象記數(shù)據(jù)存儲到OS文件中,導出表是使用OWNER選項來完成的。

普通用戶可以導出其自身方案,但如果要導出其他方案,則要求該用戶必須具有DBA角色或EXP_FULL_DATABASE角色。當用戶要導出其自身方案的所有對象時,可以不指定OWNER選項,下面以SYSTEM用戶導出SCOTT方案的所有對象為例,示例如下:

 

  1. exp system/Oracle@charge OWNER=scott FILE=schemal.dmp 

以上為命令行方式進行數(shù)據(jù)的導出,EXP工具還可以以交互的方式進行數(shù)據(jù)導出。

(1)導出表(交互方式)

 

  1. [Oracle@ora-asm3 dbs]$ exp 

Export: Release 10.2.0.1.0 - Production on 星期一 6月 16 16:24:26 2008

 

  1. Copyright (c) 1982, 2005, Oracle. All rights reserved. 

Username: charge 輸入用戶名

Password: 輸入密碼

 

  1. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production  
  2. With the Partitioning, OLAP and Data Mining options  

 

Enter array fetch buffer size: 4096 > 輸入緩沖區(qū)大小,可以默認也可以自定義,如果數(shù)據(jù)文件較大,建議設置的大一些。

Export file: expdat.dmp > charge01.dmp 輸入導出的文件名,必須以”.dmp”文件做為擴展名。

(2)U(sers), or (3)T(ables): (2)U > t 輸入導出類型,默認為用戶(也就是方案),在此輸入t,為導出表

Export table data (yes/no): yes > 是否導出表中的數(shù)據(jù),如果選NO,則導出表結構。

Compress extents (yes/no): yes > 是否對數(shù)據(jù)壓縮

 

  1. Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set  
  2. About to export specified tables via Conventional Path ...  

 

Table(T) or Partition(T:P) to be exported: (RETURN to quit) > clients 輸入表名

開始導出clients表數(shù)據(jù)

 

  1. . . exporting table CLIENTS 10 rows exported 

Table(T) or Partition(T:P) to be exported: (RETURN to quit) > 如果沒有要導出的數(shù)據(jù)時,按回車退出。

 

  1. Export terminated successfully without warnings. 

提示導出成功,沒有任何告警。
(2)導出方案(交互方式)

 

  1. [Oracle@ora-asm3 dbs]$ exp 

Export: Release 10.2.0.1.0 - Production on 星期一 6月 16 16:23:47 2008

 

  1. Copyright (c) 1982, 2005, Oracle. All rights reserved. 

Username: charge 輸入用戶名

Password: 輸入密碼

 

  1. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production  
  2. With the Partitioning, OLAP and Data Mining options  

 

Enter array fetch buffer size: 4096 > 輸入緩沖區(qū)大小,可以默認也可以自定義,如果數(shù)據(jù)文件較大,建議設置的大一些。

Export file: expdat.dmp > charge.dmp 輸入導出的文件名,必須以”.dmp”做為擴展名。

(2)U(sers), or (3)T(ables): (2)U > u 輸入導出類型,默認為用戶(方案),可以直接回車,也可以輸入u。

Export grants (yes/no): yes > 導入權限

Export table data (yes/no): yes > 是否導出表中的數(shù)據(jù),如果選NO,則導出表結構。

Compress extents (yes/no): yes > 是否對數(shù)據(jù)壓縮

 

  1. Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set  
  2. . exporting pre-schema procedural objects and actions  
  3. . exporting foreign function library names for user CHARGE  
  4. . exporting PUBLIC type synonyms  
  5. . exporting private type synonyms  
  6. . exporting object type definitions for user CHARGE  
  7. About to export CHARGE's objects ...  
  8. . exporting database links  
  9. . exporting sequence numbers  
  10. . exporting cluster definitions  
  11. . about to export CHARGE's tables via Conventional Path ...  
  12. . . exporting table BALANCE 0 rows exported  
  13. . . exporting table BALANCEFINISHED 0 rows exported  
  14. ………………  
  15. . exporting synonyms  
  16. . exporting views  
  17. . exporting stored procedures  
  18. . exporting operators  
  19. . exporting referential integrity constraints  
  20. . exporting triggers  
  21. . exporting indextypes  
  22. . exporting bitmap, functional and extensible indexes  
  23. . exporting posttables actions  
  24. . exporting materialized views  
  25. . exporting snapshot logs  
  26. . exporting job queues  
  27. . exporting refresh groups and children  
  28. . exporting dimensions  
  29. . exporting post-schema procedural objects and actions  
  30. . exporting statistics  
  31. Export terminated successfully without warnings.  

 

提示導出成功,沒有任何告警。

【編輯推薦】

  1. Oracle字符集討論的經典版
  2. Oracle RAC配置的3步驟以及配置錯誤的原因
  3. 修改Oracle默認用戶密碼有效期時間的實操
  4. Oracle 函數(shù)用法之decode解剖
  5. Oracle數(shù)據(jù)庫字典的創(chuàng)建與安裝
責任編輯:佚名 來源: 博客園
相關推薦

2021-02-05 23:23:55

Web開發(fā)工具

2011-02-21 12:44:05

Postfix

2020-07-11 09:42:59

python數(shù)據(jù)挖掘數(shù)據(jù)分析

2010-06-12 13:59:12

2010-04-19 14:37:14

Oracle監(jiān)控

2011-04-08 17:24:05

c++工具編程

2019-02-13 14:58:43

cssjavascript前端

2019-07-08 15:10:17

JS工具函數(shù)

2010-06-13 15:35:01

2014-10-21 15:11:29

Android工具類源碼

2019-03-25 19:13:37

MySQL常用工具數(shù)據(jù)庫

2009-01-04 11:55:09

Java數(shù)組Java常用工具Java類

2018-01-30 18:49:16

前端JavascriptCSS

2010-06-04 17:56:22

Linux 常用工具

2009-09-07 10:34:47

2022-12-05 14:39:33

Javascript工具

2019-03-14 15:40:13

JavaScript CSS 工具

2010-06-04 14:00:32

Hadoop開發(fā)

2010-07-08 13:17:19

2014-04-09 10:51:56

iOS開發(fā)常用工具
點贊
收藏

51CTO技術棧公眾號