“rman target /” 和 “rman nocatalog target /” 區別

TaihangMeng發表於2016-03-16

剛才在itpub上看到一貼 “rman target /” 主要是對 “rman target /” 和 “rman nocatalog target /”這兩種方式連線有些疑惑.

正好偶以前也發現這樣的問題,於是將N久前的筆記翻出,又重新測試了一下,詳細如下,hehe.

rman target / 是連線了 target DB並進入了rman環境,這時還可以連線 catalog DB
rman nocatalog target /  是以nocatalog模式連線進入了target DB,這時是不可以再連線catalog DB了

詳細如下

oracle@dbatest1:/home/oracle #rman target /

Recovery Manager: Release 11.2.0.1.0 – Production on Tue Oct 20 15:57:13 2009

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

connected to target database: ORA11G (DBID=4092822503)

RMAN> CONNECT CATALOG system/abc123@stby

connected to recovery catalog database

RMAN> exit

Recovery Manager complete.

oracle@dbatest1:/home/oracle #rman nocatalog target /

Recovery Manager: Release 11.2.0.1.0 – Production on Tue Oct 20 15:57:31 2009

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

connected to target database: ORA11G (DBID=4092822503)
using target database control file instead of recovery catalog

RMAN>  CONNECT CATALOG system/abc123@stby

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06445: cannot connect to recovery catalog after NOCATALOG has been used

RMAN> exit

Recovery Manager complete.
oracle@dbatest1:/home/oracle #

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30776559/viewspace-2058186/,如需轉載,請註明出處,否則將追究法律責任。

相關文章