RMAN-06403: could not obtain a fully authorized session

使用rman进行数据库恢复时出现如下错误:
[ oracle@localhost  dbs]$ rman target / nocatalog; 

Recovery Manager: Release 11.2.0.1.0 - Production on Tue Oct 21 00:52:38 2014 

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

connected to target database (not started) 

RMAN> restore database; 

Starting restore at 21-OCT-14 
RMAN-00571: =========================================================== 
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== 
RMAN-00571: =========================================================== 
RMAN-03002: failure of restore command at 10/21/2014 00:52:46 
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

出现这个错误的原因是我的数据库对应有两个实例,而我没有指定实例,通过export指定实例之后问题解决:
[ oracle@localhost dbs]$ export ORACLE_SID=orcl 
[ oracle@localhost dbs]$ rman target / 

Recovery Manager: Release 11.2.0.1.0 - Production on Tue Oct 21 00:58:06 2014 

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

connected to target database: ORCL (DBID=1383986269, not open) 

RMAN> show all; 

using target database control file instead of recovery catalog 
RMAN configuration parameters for database with db_unique_name ORCL are: 
CONFIGURE RETENTION POLICY TO REDUNDANCY 3; 
CONFIGURE BACKUP OPTIMIZATION OFF; # default 
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default 
CONFIGURE CONTROLFILE AUTOBACKUP ON; 
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default 
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default 
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default 
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default 
CONFIGURE MAXSETSIZE TO UNLIMITED; # default 
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default 
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default 
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default 
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default 
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29800581/viewspace-1307232/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29800581/viewspace-1307232/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值