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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[备份恢复] RMAN-06403: could not obtain a fully authorized session

[复制链接]
跳转到指定楼层
楼主
发表于 2021-4-15 15:02:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 刘泽宇 于 2021-4-15 15:04 编辑

[[url=]oracle@test[/url] ~]$ rman target / ;
Recovery Manager: Release 11.2.0.1.0 - Production on Thu Apr 15 15:00:00 2021

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

connected to target database (not mounted)

RMAN> restore controlfile from '/data/bak/control_..._1_1.bak';

Starting restore at 15-APR-21
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/15/2021 15:00:02
RMAN-12010: automatic channel allocation initialization failed
RMAN-06403: could not obtain a fully authorized session
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory


查看当前oracle用户下环境变量:
[[url=]oracle@test[/url] ~]$ echo $ORACLE_SID
orcl
但是我已经修改了环境变量,应该是没有刷新导致的
[[url=]oracle@test[/url] ~]$ source .bash_profile
[[url=]oracle@test[/url] ~]$ echo $ORACLE_SID
orcltest
再次执行restore命令
RMAN> restore controlfile from '/data/bak/control_..._1_1.bak';
starting restore at 15-APR-21
using channel ORA_DISK_1


channel ORA_DISK_1:restoring control file
channel ORA_DISK_1:restore complete,elapsed time: 00:00:01
output file=/u01/oracle/app/oracle/oradata/controlfile01.ctl
Finished restore at 15-APR-21

RMAN>
执行成功
可以继续进行后续恢复步骤


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 00:21 , Processed in 0.087088 second(s), 21 queries .

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

© 2001-2020

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