Duplicate database, Rman connection auxiliary database after the state is not correct
Auxiliary database has been started by startup Nomount, but the display status is not started after Rman is connected
$ Export oracle_sid=dupdb$ Sqlplus'/as sysdba'SQL>startup Nomount $ rmanrecovery manager:release11.2.0.1.0-Production on Fri June - -: -: - -Copyright (c)1982, the, Oracle and/or its affiliates. All rights reserved. RMAN> Connect target sys/[email protected]connected to target database:ora11 (DBID=785451981) RMAN> Connect Auxiliary sys/[email protected]connected to auxiliary database:dupdb (not started)
#not started, which means that we are connected to an idle routine, which is usually caused by an incorrect oracle_home configuration in the static service name or incorrect SID configuration.
Check the listening file, found that the oracle_home path last one more '/'
SID_LIST_ORA11 =(Sid_list=(Sid_desc=(Global_dbname=ora11) (Oracle_home=/u11/app/oracle/product/11.2.0/dbhome_1) (Sid_name=ora11)) (Sid_desc=(Global_dbname=dupdb) (Oracle_home=/u11/app/oracle/product/11.2.0/dbhome_1/) (Sid_name=dupdb)) )
Remove the '/' from the above code.
In addition, we can also test if we are connected to an instance of the boot instance, or to an idle instance, by Sqlplus Xxx/[email protected] as SYSDBA.
Duplicate database, Rman connection auxiliary database after the state is not correct