rman基于时间点数据恢复问题

[复制链接]
查看11 | 回复5 | 2007-9-26 18:42:10 | 显示全部楼层 |阅读模式
truncate 表之后,想用rman基于时间点的备份,代码如下,但是总是报错!
run
{

startup force mount;

set until time='2007072410:00:01';

restore database;

recover database;

sql 'alter database open resetlogs';
}
报错如下:
Oracle instance started
database mounted
Total System Global Area 167772160 bytes
Fixed Size
1218316 bytes
Variable Size
83888372 bytes
Database Buffers
79691776 bytes
Redo Buffers
2973696 bytes
executing command: SET until clause
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of set command at 07/24/2007 10:52:27
ORA-01861: literal does not match format string
请问各位高人是怎么回事,谢谢!
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
时间格式不对.
请先
alter session set nls_date format='yyyy-mm-dd hh24:mi:ss'.弄的给你的时间格式一样就可以.郁闷具体看着办
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
NLS_DATE_FORMAT不对
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
按照楼上说的,设置了日期格式还是报错啊!
ALTER SESSION SET nls_date_format='yyyy-mm-dd hh24:mi:ss';
同时也修改了run语句中的日期格式!
不知道为什么!
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
退出后重新做一次
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
都是nsl_date_format的问题,统一了格式就可以了!谢谢!
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行