我的编程空间,编程开发者的网络收藏夹
学习永远不晚

NBU恢复oracle

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

NBU恢复oracle

数据库安装后,确保db_recovery_file_dest有路径
SQL> show parameter recovery

NAME                                 TYPE
------------------------------------ ----------------------
VALUE
------------------------------
db_recovery_file_dest                string
+DATA
db_recovery_file_dest_size           big integer
3882M
recovery_parallelism                 integer

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
rman>set dbid=3676330291
rman> startup nomount
ORACLE instance started.
RMAN>
run
{
ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=ITS032,NB_ORA_SERV=it00t181.uaes.com';
RESTORE CONTROLFILE FROM '/cntrl_571_1_900522626';
RELEASE CHANNEL CH00;
}

allocated channel: CH00
channel CH00: SID=135 device type=SBT_TAPE
channel CH00: Veritas NetBackup for Oracle - Release 7.6 (2014042414)

sent command to channel: CH00

Starting restore at 2014-08-21 14:58:21

channel CH00: restoring control file
channel CH00: restore complete, elapsed time: 00:00:15
output file name=+DATA/p6r8db/controlfile/current.257.856191335
output file name=+DATA/p6r8db/controlfile/current.258.856191335
Finished restore at 2014-08-21 14:58:36

released channel: CH00

RMAN> sql 'alter database mount';

sql statement: alter database mount

RMAN>
run
{
ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL CH01 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=ITS032,NB_ORA_SERV=it00t181.uaes.com';
RESTORE DATABASE;
RELEASE CHANNEL CH00;
RELEASE CHANNEL CH01;
}

allocated channel: CH00
channel CH00: SID=135 device type=SBT_TAPE
channel CH00: Veritas NetBackup for Oracle - Release 7.6 (2014042414)

allocated channel: CH01
channel CH01: SID=136 device type=SBT_TAPE
channel CH01: Veritas NetBackup for Oracle - Release 7.6 (2014042414)

sent command to channel: CH00
sent command to channel: CH01

Starting restore at 2014-08-21 14:59:57
Starting implicit crosscheck backup at 2014-08-21 14:59:57

………………
channel CH00: restored backup piece 1
channel CH00: restore complete, elapsed time: 00:00:15
Finished restore at 2014-08-21 15:38:19

released channel: CH00

released channel: CH01

RMAN>
run
{
ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=ITS032,NB_ORA_SERV=it00t181.uaes.com';
recover database;
RELEASE CHANNEL CH00;
}

allocated channel: CH00
channel CH00: SID=137 device type=SBT_TAPE
channel CH00: Veritas NetBackup for Oracle - Release 7.6 (2014042414)

sent command to channel: CH00

Starting recover at 2014-08-21 15:39:41

starting media recovery

channel CH00: starting archived log restore to default destination
channel CH00: restoring archived log
archived log thread=1 sequence=36981
channel CH00: restoring archived log
archived log thread=2 sequence=39359
channel CH00: restoring archived log
archived log thread=2 sequence=39360
channel CH00: reading from backup piece arch_dUAESWC_ummpge01q_s2774_p1_t856096826
channel CH00: piece handle=arch_dUAESWC_ummpge01q_s2774_p1_t856096826 tag=TAG20140820T124026
channel CH00: restored backup piece 1
channel CH00: restore complete, elapsed time: 00:00:15
archived log file name=+DATA/uaeswc/archivelog/1_36981_732715985.dbf thread=1 sequence=36981
archived log file name=+DATA/uaeswc/archivelog/2_39359_732715985.dbf thread=2 sequence=39359
archived log file name=+DATA/uaeswc/archivelog/2_39360_732715985.dbf thread=2 sequence=39360
channel CH00: starting archived log restore to default destination
channel CH00: restoring archived log
archived log thread=1 sequence=36982
channel CH00: reading from backup piece arch_dUAESWC_umnpge038_s2775_p1_t856096872
channel CH00: piece handle=arch_dUAESWC_umnpge038_s2775_p1_t856096872 tag=TAG20140820T124026
channel CH00: restored backup piece 1
channel CH00: restore complete, elapsed time: 00:00:15
archived log file name=+DATA/uaeswc/archivelog/1_36982_732715985.dbf thread=1 sequence=36982
unable to find archived log
archived log thread=1 sequence=36983
released channel: CH00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/21/2014 15:40:17
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 36983 and starting SCN of 1438035679

RMAN> exit


Recovery Manager complete.
[oracle@it00t158 ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 21 15:40:28 2014

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> conn /as sysdba
Connected.
SQL> select instance_name,status from v$instance;

INSTANCE_NAME                    STATUS
-------------------------------- ------------------------
uaeswc                           MOUNTED

SQL> show parameter recovery

NAME                                 TYPE
------------------------------------ ----------------------
VALUE
------------------------------
db_recovery_file_dest                string
+DATA
db_recovery_file_dest_size           big integer
3882M
recovery_parallelism                 integer

SQL> recover database until cancel using backup controlfile;
ORA-00279: change 1438035679 generated at 08/20/2014 12:40:22 needed for thread
1
ORA-00289: suggestion : +DATA/uaeswc/archivelog/1_36983_732715985.dbf
ORA-00280: change 1438035679 for thread 1 is in sequence #36983


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.
SQL> alter database open resetlogs;

Database altered.

SQL>


免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

NBU恢复oracle

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

2024-04-02

oracle闪回怎么恢复

数据库恢复到过去时间点的方法是通过oracle闪回恢复功能:确定恢复的时间点。启动闪回恢复会话。应用更改。提交更改。完成会话。可以指定时间戳、scn或回滚段名称来恢复数据库。闪回恢复允许逐块恢复,并创建数据库副本,不会覆盖现有数据。Orac
oracle闪回怎么恢复
2024-05-21

oracle删除后怎么恢复

要恢复已删除的 oracle 数据,可以使用以下步骤:1. 确认数据已删除;2. 检查备份;3. 使用 flashback 工具;4. 从回收站表中恢复;5. 使用 undo 表空间。始终备份数据库,启用 flashback 功能和 und
oracle删除后怎么恢复
2024-04-18

编程热搜

目录