EXP IMP 顺序

Posted by Vincent on September 18, 2008

EXPORT/IMPORT过程

EXPORT导出的DUMP文件包含两种基本类型的数据
- DDL (Data Dictionary Language)
- Data

DUMP文件包含所有重新创建Data Dictionary的DDL语句,基本上是可以读的格式。

但是应该注意的是,千万不要用文本编辑器编辑之,oracle说不支持这样做的。

下面列出的是DUMP文件中包括的ORACLE对象,分为TABLE/USER/FULL方式,有些对象

只是在FULL方式下才有(比如public synonyms, users, roles, rollback segments等)

Table mode       User Mode        Full Database Mode
---------------------- ---------------------- ----------------------
---
Table definitions    Table definitions    Table definitions
Table data       Table data       Table data
Owner's table grants  Owner's grants     Grants
Owner's table indexes  Owner's indexes     Indexes
Table constraints    Table constraints    Table constraints
Table triggers     Table triggers     All triggers
Clusters        Clusters
Database links     Database links
Job queues       Job queues
Refresh groups     Refresh groups
Sequences        Sequences
Snapshots        Snapshots
Snapshot logs      Snapshot logs
Stored procedures    Stored procedures
Private synonyms    All synonyms
Views          Views
Profiles
Replication catalog
Resource cost
Roles
Rollback segments
System audit options
System privileges
Tablespace definitions

Tablespace quotas
User definitions

4、IMPORT时的对象倒入顺序

在倒入数据时,ORACLE有一个特定的顺序,可能随数据库版本不同而有所变化,

但是

现在是这样的。

1. Tablespaces             14. Snapshot Logs
2. Profiles              15. Job Queues
3. Users                16. Refresh Groups
4. Roles                17. Cluster Definitions
5. System Privilege Grants       18. Tables (also grants,commen
ts,
6. Role Grants               indexes, constraints, audi
ting)
7. Default Roles            19. Referential Integrity

8. Tablespace Quotas          20. POSTTABLES actions

9. Resource Costs           21. Synonyms
10. Rollback Segments     22. Views
11. Database Links           23. Stored Procedures
12. Sequences              24. Triggers, Defaults and Aud
iting
13. Snapshots

from: http://www.hackhome.com/InfoView/Article_164423.html


This work is licensed under a CC A-S 4.0 International License.