重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 972|回复: 0
打印 上一主题 下一主题

[Oracle] ORA-01861: literal does not match format string

[复制链接]
跳转到指定楼层
楼主
发表于 2022-9-16 14:02:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
系统:AnolisOS7.9
数据库:Oracle11.2.0.4
问题描述:执行TSPITR时,报错ORA-01861,如下所示:
[oracle@liujun~]$ export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'
[oracle@liujun~]$ export NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
[oracle@liujun~]$ rman target /
RecoveryManager: Release 11.2.0.4.0 - Production on Fri Sep 9 14:53:13 2022
Copyright(c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connectedto target database: ORCL (DBID=1642676218)
RMAN>recover tablespace dptest until time '2022-09-09 14:16:50' auxiliarydestination '/home/oracle/backup';
Startingrecover at 2022-09-09 14:53:19
usingtarget database control file instead of recovery catalog
allocatedchannel: ORA_DISK_1
channelORA_DISK_1: SID=201 device type=DISK
RMAN-00571:===========================================================
RMAN-00569:=============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571:===========================================================
RMAN-03002:failure of recover command at 09/09/2022 14:53:19
ORA-01861:literal does not match format string
异常原因为数据库时间和设置的数据格式不一致导致.
按如下进行修改:
recovertablespace dptt until time "to_date('2022-09-09 21:00:11','yyyy-mm-ddhh24:mi:ss')" auxiliary destination '/home/oracle/backup';

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-26 06:01 , Processed in 0.084500 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表