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

标题: RMAN-06403: could not obtain a fully authorized session [打印本页]

作者: 刘泽宇    时间: 2021-4-15 15:02
标题: RMAN-06403: could not obtain a fully authorized session
本帖最后由 刘泽宇 于 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>
执行成功
可以继续进行后续恢复步骤







欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2