给你写一个简单的例子吧,细节你再自己研究一下。SQL> grant write on directory expdp to oracle ;授权成功。SQL> grant read , write on directory expdp to oracle ;授权成功。SQL>SQL> exit 从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options 断 开C:\>expdp oracle/oracle@msgde directory=expdp dumpfile=a.dumpExport: Release 11.2.0.1.0 - Production on 星期一 12月 15 13:41:32 2014Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options 启动 "ORACLE"."SYS_EXPORT_SCHEMA_01": oracle/********@msgde directory=expdp dum pfile=a.dump 正在使用 BLOCKS 方法进行估计... 处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA 使用 BLOCKS 方法的总估计: 192 KB 处理对象类型 SCHEMA_EXPORT/USER 处理对象类型 SCHEMA_EXPORT/SYSTEM_GRANT 处理对象类型 SCHEMA_EXPORT/ROLE_GRANT 处理对象类型 SCHEMA_EXPORT/DEFAULT_ROLE 处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA 处理对象类型 SCHEMA_EXPORT/TABLE/TABLE 处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/INDEX 处理对象类型 SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT 处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS 处理对象类型 SCHEMA_EXPORT/TABLE/COMMENT . . 导出了 "ORACLE"."T1" 5.421 KB 2 行 . . 导出了 "ORACLE"."T2" 5.429 KB 3 行 . . 导出了 "ORACLE"."TEST" 5.453 KB 4 行 已成功加载/卸载了主表 "ORACLE"."SYS_EXPORT_SCHEMA_01" ****************************************************************************** ORACLE.SYS_EXPORT_SCHEMA_01 的转储文件集为: E:\EXPDP\A.DUMP 作业 "ORACLE"."SYS_EXPORT_SCHEMA_01" 已于 13:42:25 成功完成 C:\>
刚才少写了一句。SQL> create directory expdp as 'e:\expdp';目录已创建。SQL> grant write on directory expdp to oracle ;
授权成功。
SQL> grant read , write on directory expdp to oracle ;
授权成功。
SQL>
SQL> exit 从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options 断 开
expdp完整語法怎麼寫?
一两句也说不清,
你百度一下: oracle expdp impdp 命令
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断
开C:\>expdp oracle/oracle@msgde directory=expdp dumpfile=a.dumpExport: Release 11.2.0.1.0 - Production on 星期一 12月 15 13:41:32 2014Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动 "ORACLE"."SYS_EXPORT_SCHEMA_01": oracle/********@msgde directory=expdp dum
pfile=a.dump
正在使用 BLOCKS 方法进行估计...
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 192 KB
处理对象类型 SCHEMA_EXPORT/USER
处理对象类型 SCHEMA_EXPORT/SYSTEM_GRANT
处理对象类型 SCHEMA_EXPORT/ROLE_GRANT
处理对象类型 SCHEMA_EXPORT/DEFAULT_ROLE
处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE
处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/INDEX
处理对象类型 SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
处理对象类型 SCHEMA_EXPORT/TABLE/COMMENT
. . 导出了 "ORACLE"."T1" 5.421 KB 2 行
. . 导出了 "ORACLE"."T2" 5.429 KB 3 行
. . 导出了 "ORACLE"."TEST" 5.453 KB 4 行
已成功加载/卸载了主表 "ORACLE"."SYS_EXPORT_SCHEMA_01"
******************************************************************************
ORACLE.SYS_EXPORT_SCHEMA_01 的转储文件集为:
E:\EXPDP\A.DUMP
作业 "ORACLE"."SYS_EXPORT_SCHEMA_01" 已于 13:42:25 成功完成
C:\>
授权成功。
SQL> grant read , write on directory expdp to oracle ;
授权成功。
SQL>
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断
开
C:\>expdp oracle/oracle@msgde directory=expdp dumpfile=a.dump
Export: Release 11.2.0.1.0 - Production on 星期一 12月 15 13:41:32 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动 "ORACLE"."SYS_EXPORT_SCHEMA_01": oracle/********@msgde directory=expdp dum
pfile=a.dump
正在使用 BLOCKS 方法进行估计...
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 192 KB
处理对象类型 SCHEMA_EXPORT/USER
处理对象类型 SCHEMA_EXPORT/SYSTEM_GRANT
处理对象类型 SCHEMA_EXPORT/ROLE_GRANT
处理对象类型 SCHEMA_EXPORT/DEFAULT_ROLE
处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE
处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/INDEX
处理对象类型 SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
处理对象类型 SCHEMA_EXPORT/TABLE/COMMENT
. . 导出了 "ORACLE"."T1" 5.421 KB 2 行
. . 导出了 "ORACLE"."T2" 5.429 KB 3 行
. . 导出了 "ORACLE"."TEST" 5.453 KB 4 行
已成功加载/卸载了主表 "ORACLE"."SYS_EXPORT_SCHEMA_01"
******************************************************************************
ORACLE.SYS_EXPORT_SCHEMA_01 的转储文件集为:
E:\EXPDP\A.DUMP
作业 "ORACLE"."SYS_EXPORT_SCHEMA_01" 已于 13:42:25 成功完成
C:\>