ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated问题处理过程
1,现象是oracle启动报错例如以下:
SQL> startup
ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated
ORA-07286: sksagdi: cannot obtain device information.
Linux-x86_64 Error: 2: No such file or directory
SQL>
google了下,运行例如以下命令还是没有生效。
ALTER SYSTEM SET LOG_ARCHIVE_DEST_3=’location=/pddata2/app/oracle/archivelog3’ SCOPE=SPFILE;
1.1。去查看下报错的这个log_archive_dest_3文件夹路径:
[oracle@localhost network]$ cd $ORACLE_HOME
[oracle@localhost dbhome_1]$ cd dbs
[oracle@localhost dbs]$ strings spfile*.ora |grep dest_3;
*.log_archive_dest_3='LOCATION=/data/oracle/oradgdata/standby_archive VALID_FOR=(STANDBY_LOGFILES,STA
*.log_archive_dest_3='LOCATION=/data/oracle/oradgdata/standby_archive VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=pddgunq'
[oracle@localhost dbs]$
1.2 解决方法换个路径
然后新建/data/oracle/oradgdata/standby_archive文件夹文件夹,oracle能够启动起来了,可是我想讲/data文件夹切换成/pddata2/由于data文件夹空间太小了。那么这个时候能够有很多种办法的。并且也能够借此机会清理一下磁盘空间。
看到dest_3的为/data/oracle/oradgdata/standby_archive
可是/data已经不存在了,所以直接vim改成/pddata2/app/oracle/archivelog3
1.3,将备份copy到备库上面去,同文件夹
backup current controlfile for standby format '/pddata2/oracle/backup/data/ctlfile.bak.20150610';
<版权全部,文章同意转载,但必须以链接方式注明源地址,否则追究法律责任!>
原博客地址: http://blog.csdn.net/mchdba/article/details/46666229
原作者:黄杉 (mchdba)
2,在备库上恢复控制文件
两种方法:
2.1 直接生成
[oracle@localhost data]$ su - oracle
SQL> backup current controlfile for standby format '/pddata2/oracle/backup/data/ctlfile.bak.20150610';
[oracle@localhost data]$ cp ctlfile.bak.20150610_2 /home/oradata/powerdes/control01.ctl
[oracle@localhost data]$ cp ctlfile.bak.20150610_2 /oracle/app/oracle/flash_recovery_area/powerdes/control02.ctl
2.2 从备份中恢复控制文件,启动为nomount状态下:
RMAN> restore controlfile from "/pddata2/oracle/backup/data/ctl_auto/c-3391761643-20150610-01";
Starting restore at 10-JUN-15
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=386 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/home/oradata/powerdes/control01.ctl
output file name=/oracle/app/oracle/flash_recovery_area/powerdes/control02.ctl
Finished restore at 10-JUN-15
RMAN>
2.3 将归档日志copy过去到standby上
[oracle@localhost archivelog]$ scp * root@192.118.180.108:/oracle/app/oracle/flash_recovery_area/archivelog/
3。在primary主库上操作:
run {
allocate auxiliary channel c1 device type disk;
allocate auxiliary channel c2 device type disk;
duplicate target database for standby nofilenamecheck dorecover;
release channel c1;
release channel c2;
}
[oracle@localhost data]$ rlwrap rman target / auxiliary sys/xxxx@STU
rlwrap: warning: your $TERM is 'xterm' but rlwrap couldn't find it in the terminfo database. Expect some problems.
Recovery Manager: Release 11.2.0.1.0 - Production on Thu Jun 11 08:36:05 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: POWERDES (DBID=3391761643)
connected to auxiliary database: POWERDES (not mounted)
run {
allocate auxiliary channel c1 device type disk;
allocate auxiliary channel c2 device type disk;
duplicate target database for standby nofilenamecheck dorecover;
release channel c1;
release channel c2;
7> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=482 device type=DISK
allocated channel: c2
channel c2: SID=578 device type=DISK
Starting Duplicate Db at 11-JUN-15
contents of Memory Script:
{
set until scn 11195733956;
restore clone standby controlfile;
}
executing Memory Script
executing command: SET until clause
Starting restore at 11-JUN-15
channel c1: starting datafile backup set restore
channel c1: restoring control file
channel c1: reading from backup piece /pddata2/oracle/backup/data/ctl_auto/c-3391761643-20150611-01
channel c1: piece handle=/pddata2/oracle/backup/data/ctl_auto/c-3391761643-20150611-01 tag=TAG20150611T032806
channel c1: restored backup piece 1
channel c1: restore complete, elapsed time: 00:00:01
output file name=/home/oradata/powerdes/control01.ctl
output file name=/oracle/app/oracle/flash_recovery_area/powerdes/control02.ctl
Finished restore at 11-JUN-15
contents of Memory Script:
{
sql clone 'alter database mount standby database';
}
executing Memory Script
sql statement: alter database mount standby database
contents of Memory Script:
{
set until scn 11195733956;
set newname for tempfile 1 to
"/home/oradata/powerdes/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/home/oradata/powerdes/system01.dbf";
set newname for datafile 2 to
"/home/oradata/powerdes/sysaux01.dbf";
set newname for datafile 3 to
"/home/oradata/powerdes/undotbs01.dbf";
set newname for datafile 4 to
"/home/oradata/powerdes/users01.dbf";
set newname for datafile 5 to
"/home/oradata/powerdes/orclstu01.dbf";
set newname for datafile 6 to
"/home/oradata/powerdes/plas01.dbf";
set newname for datafile 7 to
"/home/oradata/powerdes/pl01.dbf";
set newname for datafile 8 to
"/home/oradata/powerdes/help01.dbf";
set newname for datafile 9 to
"/home/oradata/powerdes/adobelc01.dbf";
set newname for datafile 10 to
"/home/oradata/powerdes/sms01.dbf";
set newname for datafile 11 to
"/home/oradata/powerdes/plcrm01.dbf";
restore
clone database
;
}
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
renamed tempfile 1 to /home/oradata/powerdes/temp01.dbf in control file
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 11-JUN-15
skipping datafile 7; already restored to file /home/oradata/powerdes/pl01.dbf
channel c1: starting datafile backup set restore
channel c1: specifying datafile(s) to restore from backup set
channel c1: restoring datafile 00001 to /home/oradata/powerdes/system01.dbf
channel c1: restoring datafile 00002 to /home/oradata/powerdes/sysaux01.dbf
channel c1: restoring datafile 00003 to /home/oradata/powerdes/undotbs01.dbf
channel c1: restoring datafile 00004 to /home/oradata/powerdes/users01.dbf
channel c1: restoring datafile 00005 to /home/oradata/powerdes/orclstu01.dbf
channel c1: restoring datafile 00006 to /home/oradata/powerdes/plas01.dbf
channel c1: restoring datafile 00008 to /home/oradata/powerdes/help01.dbf
channel c1: restoring datafile 00009 to /home/oradata/powerdes/adobelc01.dbf
channel c1: restoring datafile 00010 to /home/oradata/powerdes/sms01.dbf
channel c1: restoring datafile 00011 to /home/oradata/powerdes/plcrm01.dbf
channel c1: reading from backup piece /pddata2/oracle/backup/data/2015-06-11/full_POWERDES_20150611_3839.bak
channel c1: piece handle=/pddata2/oracle/backup/data/2015-06-11/full_POWERDES_20150611_3839.bak tag=TAG20150611T030028
channel c1: restored backup piece 1
channel c1: restore complete, elapsed time: 00:32:36
Finished restore at 11-JUN-15
contents of Memory Script:
{
switch clone datafile all;
}
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy RECID=3 STAMP=882090432 file name=/home/oradata/powerdes/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=4 STAMP=882090432 file name=/home/oradata/powerdes/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=5 STAMP=882090432 file name=/home/oradata/powerdes/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=6 STAMP=882090432 file name=/home/oradata/powerdes/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=7 STAMP=882090432 file name=/home/oradata/powerdes/orclstu01.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=8 STAMP=882090432 file name=/home/oradata/powerdes/plas01.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=9 STAMP=882090433 file name=/home/oradata/powerdes/pl01.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=10 STAMP=882090433 file name=/home/oradata/powerdes/help01.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=11 STAMP=882090433 file name=/home/oradata/powerdes/adobelc01.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=12 STAMP=882090433 file name=/home/oradata/powerdes/sms01.dbf
datafile 11 switched to datafile copy
input datafile copy RECID=13 STAMP=882090433 file name=/home/oradata/powerdes/plcrm01.dbf
contents of Memory Script:
{
set until scn 11195733956;
recover
standby
clone database
delete archivelog
;
}
executing Memory Script
executing command: SET until clause
Starting recover at 11-JUN-15
starting media recovery
released channel: c1
released channel: c2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/11/2015 09:30:37
RMAN-03015: error occurred in stored script Memory Script
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 33512 and starting SCN of 11195734481 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33511 and starting SCN of 11195733956 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33510 and starting SCN of 11195733022 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33509 and starting SCN of 11195729402 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33508 and starting SCN of 11195724939 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33507 and starting SCN of 11195722152 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33506 and starting SCN of 11195705217 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33505 and starting SCN of 11195696346 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33504 and starting SCN of 11195690731 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33503 and starting SCN of 11195685937 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33502 and starting SCN of 11195681129 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33501 and starting SCN of 11195666579 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33500 and starting SCN of 11195658641 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 33499 and starting SCN of 11195658616 found to restore
RMAN>
去找下缺失的dbf文件是否存在,原来文件一直存在
[root@localhost ~]# find / -name *33499*.dbf
/oracle/app/oracle/flash_recovery_area/archivelog/1_33499_821708334.dbf
[root@localhost ~]# find / -name *33512*.dbf
/oracle/app/oracle/flash_recovery_area/archivelog/1_33512_821708334.dbf
[root@localhost ~]#
将这些将归档日志copy到从库
[root@localhost archivelog]# scp 335.dbf root@192.118.180.108:/oracle/app/oracle/flash_recovery_area/archivelog/
[root@localhost archivelog]# chown -R oracle.dba /oracle/app/oracle/flash_recovery_area/archivelog/*
4,上一步中。假设为MOUNTED,则能够開始启动备库的REDO应用,去从库运行:
先去主库运行:
ALTER system SET log_archive_dest_state_2 = ‘defer’;
alter database recover managed standby database disconnect from session;
备库运行:
SQL> alter database recover managed standby database disconnect from session;
Database altered.
SQL>
SQL> alter database recover managed standby database cancel;
Database altered.
SQL>
发现归档日志无法传输过来,并且缺失33499到33512的归档日志。想了想曾经能够基于scn做过增量恢复standby的。能够试试。
5。利用SCN增量备份来恢复standby库
先备份:
backup device type disk incremental from scn 11195658616 database format ‘/home/oracle/db_incre%U.bbk’;
ALTER system SETlog_archive_dest_state_2 = ‘defer’
然后创建恢复的控制文件:
ALTER DATABASE CREATE standby controlfile AS ‘/home/oracle/standby1.ctl’;
/pddata2/oracle/backup/data
细节再使用基于scn增量备份的恢复程序:
參考文章地址:http://blog.csdn.net/mchdba/article/details/45826893
ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated问题处理过程的更多相关文章
- ORA-01261: Parameter db_recovery_file_dest destination string cannot be translat
查看了Oracle的初始化文件. $cat /oracle/oms/102_64/dbs/initSID.ora 如:db_recovery_file_dest='/oracle/oms/flash_ ...
- Missing URI template variable 'XXXX' for method parameter of type String
原因:就是spring的controller上的@RequestMapping的实参和方法里面的形参名字不一致 方法:改成一样就可. ps.还能用绑定的方法,不建议,因为太麻烦了 @RequestMa ...
- Realm 处理List<String> 问题 Type parameter 'java.lang.String' is not within its bound; should implement 'io.realm.RealmModel
public class InitAppBean extends RealmObject { private String sapling; private String logistics; pri ...
- Oracle 10gR2 Dataguard搭建(非duplicate方式)
Oracle 10gR2 Dataguard搭建(非duplicate方式) 我的实验环境: 源生产库(主库): IP地址:192.168.1.30 Oracle 10.2.0.5 单实例 新DG库( ...
- Oracle 10g DataGuard手记之基础配置
DataGuard为企业数据的高可用性,数据安全以及灾难恢复提供支持,一般由一个primary db与几个物理或逻辑standby db组成一个DataGuard配置. 系统环境 操作系统为windo ...
- Oracle使用startup与startup force启动的区别
1. startup 就是正常启动数据库,没什么好说的. 2. startup force 是shutdown abort + startup的组合,即强制关闭数据库+ 正常启动数据库,想快速重启数据 ...
- Oracle归档日志与非归档日志的切换及路径设置
--==================== -- Oracle 归档日志 --==================== Oracle可以将联机日志文件保存到多个不同的位置,将联机日志转换为归档日志的 ...
- RMAN冷备份异机还原
1:环境准备 在新的服务器上安装ORACLE实例,安装过程中需要注意源服务器与目标服务器的ORACLE_SID一致,另外确保安装路径与源路径一致(不仅是安装目录,甚至包括数据文件.控制文件目录.联机重 ...
- Oracle Dataguard之Real-Time Apply
Oracle Dataguard一共支持三种模式:最大可用模式(Maximum Availability),最大性能模式(Maximum Performance),最大保护模式(Maximum Pro ...
随机推荐
- 微信公众平台快速开发框架 For Core 2.0 beta –JCSoft.WX.Core 5.2.0 beta发布
写在前面 最近比较忙,都没有好好维护博客,今天拿个半成品来交代吧. 记不清上次关于微信公众号快速开发框架(简称JCWX)的更新是什么时候了,自从更新到支持.Net Framework 4.0以后基本上 ...
- asp.net core 开发的https证书服务-agilelabs.net
创建证书-生成CSR(Certificate Sign Request): 填写证书基本信息 接下来我们就可以看到创建的证书签名请求信息(CSR): 为我们刚才创建的CSR签名: 签名的意思是说通过证 ...
- MSSQL 备份数据库还原
-- 完整还原RESTORE DATABASE XXXX FROM DISK = 'd:\XXXX.bak' WITH MOVE 'XXXX' TO 'D:\MSSQL\Data\XXXX.mdf', ...
- 团队工作准则&贡献分配规则
团队工作准则&贡献分配规则 NewTeam 2017/10/24 v1.0 工作准则及内容 全体成员 所有成员在接受任务时应结合自身情况考虑,如果认为任务内容或时间有不合理之处应当立即提出修改 ...
- 4年java开发,该何去何从!
以前都是一直看,今天楼主第一次发博,还望各位不吝赐教. 今天也没别的要说的,就是吐槽一下楼主这几天的面试遭遇,感觉都有点怀疑人生了. 先说说楼主的情况吧,13年毕业本科计算机专业,到现在一直做java ...
- 使用wwise音效引擎的好处
用过一段时间的wwise,做以下几个具体功能的时候比较方便: 1.当策划需求一个声音需要随机播放多个随机音源的其中一个时,例如脚步声.普通攻击声,当这类声音一直播放的都是同一个音源的时候,人会产生听觉 ...
- [转载] linux中文件描述符fd和文件指针flip的理解
转载自http://www.cnblogs.com/Jezze/archive/2011/12/23/2299861.html 简单归纳:fd只是一个整数,在open时产生.起到一个索引的作用,进程通 ...
- 【python】__new__和__init__区别
原文:http://blog.csdn.net/cnmilan/article/details/8849680 __new__:创建对象时调用,返回当前对象的一个实例__init__:创建完对象后调用 ...
- 基础拾遗----RabbitMQ(含封装类库源码)
基础拾遗 基础拾遗------特性详解 基础拾遗------webservice详解 基础拾遗------redis详解 基础拾遗------反射详解 基础拾遗------委托详解 基础拾遗----- ...
- 源码剖析Django REST framework的请求生命周期
学习Django的时候知道,在Django请求的生命周期中,请求经过WSGI和中间件到达路由,不管是FBV还是CBV都会先执行View视图函数中的dispatch方法 REST framework是基 ...