开发者

RMAN connecting to wrong target

开发者 https://www.devze.com 2023-02-27 21:19 出处:网络
Wh开发者_开发知识库en I run rman target / @mydb nocatalog cmdfile=%commands% msglog=%logfile%, I see connected to target database: OTHERDB (DBID=3786352837, not open).

Wh开发者_开发知识库en I run rman target / @mydb nocatalog cmdfile=%commands% msglog=%logfile%, I see connected to target database: OTHERDB (DBID=3786352837, not open).

Help!


suppose your target database SID = HR_VMC, to connect this target database issue the following commands to connect it using RMAN

export ORACLE_SID = HR_VMC
sqlplus
SQL> connect / as sysdba
SQL> select name from v$database;

it shows the HR_VCM open another terminal and from the comman line issue the following RMAN command

RMAN target /


Setting environment variable ORACLE_DB to the target database helps the cause.

Set ORACLE_SID=mydb

StackOverflow and ServerFault seem to suffer from lack of Oracle expertise. Weak.

0

精彩评论

暂无评论...
验证码 换一张
取 消