今天用户建了个exp备份脚本,但一直备份不成功,咨询于我。
我双击此脚本exp.bat,dos界面出现以下结果
Administrator@PCAT_# exp system/system@test file=exp.dmp log=exp.log buffer=800
0000
Administrator@PCAT_# exp system/system@test file=exp.dmp log=exp.log buffer=800
0000
Administrator@PCAT_# exp system/system@test file=exp.dmp log=exp.log buffer=800
0000
Administrator@PCAT_# exp system/system@test file=exp.dmp log=exp.log buffer=800
0000
Administrator@PCAT_# exp system/system@test file=exp.dmp log=exp.log buffer=800
0000
Administrator@PCAT_# exp system/system@test file=exp.dmp log=exp.log buffer=800
0000
Administrator@PCAT_# exp system/system@test file=exp.dmp log=exp.log buffer=800
0000
Administrator@PCAT_# exp system/system@test file=exp.dmp log=exp.log buffer=800
0000
。。。。。。。。。。。。
无限循环中。
测试其他命令又能正常执行,郁闷一下,思考良久,发现在这个目录无法执行exp命令,会死循环。但在其他目录没问题的,证明环境变量没问题。
到底是什么原因呢,突然看到exp.bat这个名字恍然大悟,这个批处理文件跟oracle的exp同名字了,所以它出现了循环套循环,我晕,改名字,运行,OK!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11088128/viewspace-688831/ ,如需转载,请注明出处,否则将追究法律责任。