我这个windows exp脚本怎么就有错呢?

[复制链接]
查看11 | 回复3 | 2014-9-2 06:00:13 | 显示全部楼层 |阅读模式
大神帮忙鉴定下
我的脚本: test.bat
@ECHO OFF
ECHO Start at %time% %date% ...
SET FILE_NAME=exp_test_%date:~,3%
exp system/oracle@RACfile=%file_name%.dmp tables=proddta.f0101
ECHO Finished at %time% %date% ...

但是去运行的时候又是这个错误
C:\Users\Administrator>E:\JDEDBBACK\test.bat
Start at 20:24:48.42 ?? 2014/02/21 ...
Export: Release 11.2.0.3.0 - Production on Fri Feb 21 20:24:48 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates.All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit
Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Data Mining and Real Application Tes
EXP-00028: failed to open exp_test_D:\app\Administrator\product\11.2.0\client_1D
:\app\Administrator\product\11.2.0\client_1.DMP for write
Export file: EXPDAT.DMP >

为什么我的日期变量就变成了2次路径了呢?
%file_name%
为什么不是日期
而是
D:\app\Administrator\product\11.2.0\client_1D
:\app\Administrator\product\11.2.0\client_1
这个是我oracle client软件安装位置啊!

回复

使用道具 举报

千问 | 2014-9-2 06:00:13 | 显示全部楼层
看看这个呢
http://blog.itpub.net/26084062/viewspace-1061932/
回复

使用道具 举报

千问 | 2014-9-2 06:00:13 | 显示全部楼层
wzz123snow 发表于 2014-2-21 20:47
看看这个呢
http://blog.itpub.net/26084062/viewspace-1061932/

不行,数据库由于某些原因,不能切换到归档模式,用RMAN需要重启数据库!只选择exp来远端备份!
回复

使用道具 举报

千问 | 2014-9-2 06:00:13 | 显示全部楼层
怎么就不行了呢?大家帮忙看看嘛!
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行