当前位置:数据库 > Oracle >>

【Oracle导入导出】expdp

【Oracle导入导出】expdp
 
1.查看数据泵的目录对象,目录对象是数据泵导出数据时存放的文件路径:
[sql] 
SQL> SELECT * FROM dba_directories;  
   
OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH  
------------------------------ ------------------------------ --------------------------------------------------------------------------------  
SYS                            ADMIN_DIR                          /ade/aime_10.2_lnx_push/oracle/md/admin  
SYS                            DATA_PUMP_DIR                   /home/oracle/oracle/product/10.2.0/db_1/rdbms/log/  
SYS                            WORK_DIR                            /ade/aime_10.2_lnx_push/oracle/work  
 
只有SYS或者SYSTEM用户才能使用默认DATA_PUMP_DIR目录对象
 
所以SYSTEM用户可以启用数据泵导出作业,而不需要提供目录名。
[plain] 
[oracle@localhost ~]$ expdp system/lubinsu  
  
Export: Release 10.2.0.1.0 - Production on Wednesday, 01 May, 2013 17:04:18  
  
Copyright (c) 2003, 2005, Oracle.  All rights reserved.  
  
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production  
With the Partitioning, OLAP and Data Mining options  
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01":  system/********   
Estimate in progress using BLOCKS method...  
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA  
Total estimation using BLOCKS method: 320 KB  
Processing object type SCHEMA_EXPORT/USER  
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT  
Processing object type SCHEMA_EXPORT/ROLE_GRANT  
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE  
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA  
Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM  
Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC  
Processing object type SCHEMA_EXPORT/DB_LINK  
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE  
Processing object type SCHEMA_EXPORT/TABLE/TABLE  
Processing object type SCHEMA_EXPORT/TABLE/PRE_TABLE_ACTION  
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT  
Processing object type SCHEMA_EXPORT/TABLE/GRANT/CROSS_SCHEMA/OBJECT_GRANT  
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX  
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT  
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS  
Processing object type SCHEMA_EXPORT/TABLE/COMMENT  
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC  
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE  
Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC  
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE  
Processing object type SCHEMA_EXPORT/VIEW/VIEW  
Processing object type SCHEMA_EXPORT/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT  
Processing object type SCHEMA_EXPORT/VIEW/GRANT/CROSS_SCHEMA/OBJECT_GRANT  
Processing object type SCHEMA_EXPORT/VIEW/COMMENT  
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY  
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT  
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER  
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS  
Processing object type SCHEMA_EXPORT/TABLE/POST_TABLE_ACTION  
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA  
. . exported "SYSTEM"."REPCAT$_AUDIT_ATTRIBUTE"          5.953 KB       2 rows  
. . exported "SYSTEM"."REPCAT$_OBJECT_TYPES"             6.507 KB      28 rows  
. . exported "SYSTEM"."REPCAT$_RESOLUTION_METHOD"        5.648 KB      19 rows  
. . exported "SYSTEM"."REPCAT$_TEMPLATE_STATUS"          5.296 KB       3 rows  
. . exported "SYSTEM"."REPCAT$_TEMPLATE_TYPES"           5.914 KB       2 rows  
. . exported "SYSTEM"."DEF$_AQCALL"                          0 KB       0 rows  
. . exported "SYSTEM"."DEF$_AQERROR"                         0 KB       0 rows  
. . exported "SYSTEM"."DEF$_CALLDEST"                        0 KB       0 rows  
. . exported "SYSTEM"."DEF$_DEFAULTDEST"                     0 KB       0 rows  
. . exported "SYSTEM"."DEF$_DESTINATION"                     0 KB       0 rows  
. . exported "SYSTEM"."DEF$_ERROR"                           0 KB       0 rows  
. . exported "SYSTEM"."DEF$_LOB"                             0 KB       0 rows  
. . exported "SYSTEM"."DEF$_ORIGIN"                          0 KB       0 rows  
. . exported "SYSTEM"."DEF$_PROPAGATOR"                      0 KB       0 rows  
. . exported "SYSTEM"."DEF$_PUSHED_TRANSACTIONS"             0 KB       0 rows  
. . exported "SYSTEM"."DEF$_TEMP$LOB"                        0 KB       0 rows  
. . exported "SYSTEM"."LOGSTDBY$APPLY_MILESTONE"             0 KB       0 rows  
. . exported "SYSTEM"."LOGSTDBY$APPLY_PROGRESS":"P0"         0 KB       0 rows  
. . exported "SYSTEM"."LOGSTDBY$EVE
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,