如何将oracle数据库备份到带空格的路径 [英] How to backup oracle database to a path with spaces

查看:92
本文介绍了如何将oracle数据库备份到带空格的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


i希望使用我的代码备份oracle数据库

这是一个命令提示语句

Hi i want to backup oracle database using my code
this is an command prompt statement

exp user/pass@xe FILE="D:\folder\xe.dmp"



它的工作,但如果备份路径包含这样的空格


its work, but if the backup path contains a space like this

exp user/pass@xe FILE="D:\new folder\xe.dmp"



此命令将执行备份但是警告,我找不到备份文件

我该怎么做才能解决这个问题?


this command will do the backup but with warnings and i cant find the backup file
what should i do to solve this?

推荐答案

试试这个



try this one

exp user/pass@xe FILE=@"D:\new folder\xe.dmp"


必须使用单引号作为路径(感谢Wes Aday提示)

must use a single quotes for the path (thanks for Wes Aday for the hint)
exp user/pass@xe FILE='D:\new folder\xe.dmp'


这篇关于如何将oracle数据库备份到带空格的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆