一道似乎存在问题的oracle官方题目,大家看看!

[复制链接]
查看11 | 回复9 | 2010-3-1 11:06:22 | 显示全部楼层 |阅读模式
You executed the following command to export the EMPLOYEES table from a remote machine:
$ EXPDP hr/[email protected]
DUMPFILE=my_dir:exp_hr.log
LOGFILE=data_pump_dir:log_hr.log
TABLES=employees
What would be the outcome of this command?
A. The command would execute successfully and the export dump file would be created in the destination of the
directory object MY_DIR.
B. The command would execute successfully. But log file would not be created as DATA_PUMP_DIR directory is
only accessible to user with SYSDBA privilege.
C. The command fails with an error because DATA_PUMP_DIR directory have higher precedence over the
per-file directory.
D. The command fails with an error because no absolute path is specified for log file and dumpfile.

DUMPFILE=my_dir:exp_hr.log其中exp_hr.log是否应写成exp_hr.dmp
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
只是个文件名, 不会报错。
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
oracle对文件名后缀不太感冒
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
嗯,没试过这种写法,不过数据库中若存在这两个目录,并且对登录用户是可读的,则应该没问题.
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
试验一下,马上可知~~
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
这题A应该是错的
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
很显然A是对的。
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
A. The command would execute successfully and the export dump file would be created in the destination of the
directory object MY_DIR.
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
后缀名改什么都行吧,自己定义的
回复

使用道具 举报

千问 | 2010-3-1 11:06:22 | 显示全部楼层
9i感冒,9I以后不感冒。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行