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-15using target database control file instead of recovery catalogallocated channel: ORA_DISK_1                                                                                                                                                                  channel ORA_DISK_1: SID=386 device type=DISKchannel ORA_DISK_1: restoring control file                                                                                                                                                     channel ORA_DISK_1: restore complete, elapsed time: 00:00:01                                                                                                                                   output file name=/home/oradata/powerdes/control01.ctloutput file name=/oracle/app/oracle/flash_recovery_area/powerdes/control02.ctlFinished restore at 10-JUN-15RMAN>     

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 2015Copyright (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=DISKallocated channel: c2
channel c2: SID=578 device type=DISKStarting Duplicate Db at 11-JUN-15                                                                                                                                                             contents of Memory Script:
{set until scn  11195733956;restore clone standby controlfile;
}
executing Memory Scriptexecuting command: SET until clauseStarting 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-15contents of Memory Script:
{sql clone 'alter database mount standby database';
}
executing Memory Scriptsql statement: alter database mount standby databasecontents 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";restoreclone database;
}
executing Memory Scriptexecuting command: SET until clauseexecuting command: SET NEWNAMErenamed tempfile 1 to /home/oradata/powerdes/temp01.dbf in control file                                                                                                                        executing command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEexecuting command: SET NEWNAMEStarting 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 Scriptdatafile 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.dbfcontents of Memory Script:
{set until scn  11195733956;recoverstandbyclone databasedelete archivelog;
}
executing Memory Scriptexecuting command: SET until clauseStarting 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

转载于:https://www.cnblogs.com/zsychanpin/p/7147783.html

ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated问题处理过程相关推荐

  1. ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated

    standby down了,所以重启报错,ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be  translate ...

  2. ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated 问题

    Oracle数据库 启动时ORA-16032 错误 一.问题描述: 创建表空间执行命令导致零时空间无效之类等报错异常.再次启动时候报错如下: 报错具体原因如下: ORA-01078:处理系统参数故障 ...

  3. Missing URI template variable 'XXXX' for method parameter of type String

    原因:就是spring的controller上的@RequestMapping的实参和方法里面的形参名字不一致 方法:改成一样就可. ps.还能用绑定的方法,不建议,因为太麻烦了 @RequestMa ...

  4. int parameter ‘‘ is present but cannot be translated into a null,Integer parameter ‘‘is not present

    相关异常 java.lang.IllegalStateException: Optional int parameter 'id' is present but cannot be translate ...

  5. 网络文件夹目前是以其他用户名和密码进行映射的 解决方案

    当映射网络驱动器到文件服务器时,发现有些文件夹可以被映射,有些文件夹却不能被映射. 在输入了用户名和密码后弹出以下错误信息:"指定的网络文件夹目前是以其他用户名和密码进行映射的.要用其他用户 ...

  6. [Oracle datagard]从库恢复之 ORA-16032: parameter ORA-07286:问题

    机房断电,所以oracle的datagard的从库需要重新启动: 1 登录sqlplus启动,出现报错信息: SQL> STARTUP MOUNT; ORA-16032: parameter L ...

  7. 又一例SPFILE设置错误导致数据库无法启动

    --======================================== --又一例SPFILE设置错误导致数据库无法启动 --============================== ...

  8. Oracle使用startup与startup force启动的区别

    1. startup 就是正常启动数据库,没什么好说的. 2. startup force 是shutdown abort + startup的组合,即强制关闭数据库+ 正常启动数据库,想快速重启数据 ...

  9. Oracle归档日志与非归档日志的切换及路径设置

    Oracle归档日志与非归档日志的切换及路径设置 Oracle可以将联机日志文件保存到多个不同的位置,将联机日志转换为归档日志的过程称之为归档.相应的日志被称为归档日志. 一.归档日志 是联机重做日志 ...

最新文章

  1. angular4 下载文件 Excel zip包
  2. 使用php+phantomjs构建一只简单爬虫的开发思路
  3. 纯中文C++代码,可运行
  4. 北京理工大学 python专题课程-Python第七章(北理国家精品课 嵩天等)
  5. linux命令gen,Linux中msgen命令起什么作用呢?
  6. VTK:相互作用之DoubleClick
  7. [bzoj1066] [SCOI2007]蜥蜴
  8. BZOJ1001狼抓兔子(网络流最小割)
  9. jquery插件库免费下载,原生下载非扣代码,jq22 vip下载方法
  10. Linux消息队列实现进程间通信
  11. ssl登录服务器未响应是什么意思,工行的网上银行在确认转账时网页总是未响应...
  12. Perl的一些初级练习题
  13. 2022年QQ微信内置浏览器 UA 标识, Header 获取
  14. IDEA 后退/前进 快捷键
  15. 简单excel饼状图怎么做,bi工具怎么做饼状图
  16. 【Visual C++】游戏开发笔记之九 游戏地图制作(一)平面地图贴图
  17. Dan计划:重新定义人生的10000个小时
  18. python中vstack作用_numpy中的vstack和hstack
  19. java.sql.SQLException: Illegal conversion 非法转化
  20. Apk应用安全加固所需了解的Application启动流程

热门文章

  1. vue加载动画element ui V-loading属性 踩坑记录
  2. 无法打开模块文件“C:\Users\sq\AppData\Local\Temp\.NETFramework,Version=v4.5,AssemblyAttributes.vb”:系统找不到指定的文件
  3. 叮咚上市,我的前同事挣了1个亿!
  4. java屏蔽虚拟按键代码_Android6.0 源码修改之屏蔽导航栏虚拟按键(Home和RecentAPP)/动态显示和隐藏NavigationBar...
  5. 【ESP32】16.RFID门禁系统实验(SPI总线 / MFRC522库)
  6. Python自动化:提取扫描件中的文字
  7. Type-C、USB-C、USB3.1 三者关系
  8. 饥荒暴食活动服务器没有响应,饥荒暴食活动怎么玩?暴食活动玩法详情介绍
  9. 时间类Carbon的安装和使用
  10. Tips(1):windows命令行删除软件