duplicate database的時候,rman串連 auxiliary database的後狀態不正確

來源:互聯網
上載者:User

標籤:

duplicate database的時候,rman串連 auxiliary database的後狀態不正確

auxiliary database 已經被startup nomount,但是rman串連後顯示狀態是not started

$ export ORACLE_SID=dupdb$ sqlplus ‘/as sysdba‘SQL> startup nomount $ rmanRecovery Manager: Release 11.2.0.1.0 - Production on Fri Jun 26 14:16:14 2015Copyright (c) 1982, 2009, 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,說明我們串連到一個空閑常式,這種情況通常就是靜態服務名中ORACLE_HOME配置不正確,或者SID配置不正確導致的。
檢查監聽檔案,發現oracle_home路徑最後多了一個‘/‘

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)                )        )

把上面代碼中的‘/‘去掉即可。

另外我們通過sqlplus xxx/[email protected] as sysdba的方式也可以測試一下是否串連到啟動執行個體的執行個體,還是串連上了空閑執行個體。

duplicate database的時候,rman串連 auxiliary database的後狀態不正確

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.