今天学习用10G的数据泵来备份数据,依照同事给的文档新建directory,然后授权。
SQL> create directory "dir" as 'D:\study\oracle';
Directory created
SQL> grant read,write on directory "dir" to "SCOTT";
Grant succeeded
SQL>
可是在导出时还是报错,
C:\Documents and Settings\Administrator>expdp scott/tiger directory=dir dumpfile=expdp.dmp schemas=scott parallel=2
Export: Release 10.2.0.1.0 - Production on 星期四, 13 8月, 2009 19:54:29
Copyright (c) 2003, 2005, Oracle. All rights reserved.
连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-39002: 操作无效
ORA-39070: 无法打开日志文件。
ORA-39087: 目录名 DIR 无效
查询select * from dba_directories 发现也有自己所要的数据
1 SYS dir D:\study\oracle
2 SYS DUMP_DIR D:\study\oracle
3 SYS SUBDIR D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\/2002/Sep
4 SYS XMLDIR D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\
5 SYS MEDIA_DIR D:\oracle\product\10.2.0\db_1\demo\schema\product_media\
6 SYS LOG_FILE_DIR D:\oracle\product\10.2.0\db_1\demo\schema\log\
7 SYS WORK_DIR C:\ADE\aime_10.2_nt_push\oracle/work
8 SYS DATA_FILE_DIR D:\oracle\product\10.2.0\db_1\demo\schema\sales_history\
9 SYS DATA_PUMP_DIR D:\oracle\product\10.2.0\admin\orcl\dpdump\
10 SYS ADMIN_DIR C:\ADE\aime_10.2_nt_push\oracle/md/admin
最后看文档发现新建directory是出现问题
对directory的变量加了“” 导致报错ORA-39087
posted on 2009-08-13 20:33
leja 阅读(429)
评论(0) 编辑 收藏 所属分类:
oracle/sql