NMDA Oracle:如何使用 NMC 精靈為 Oracle 跨系統還原設定輔助資料庫
Summary: 若要使用 NMC 精靈建立 Oracle 跨系統還原的輔助例項,請依照本文所列的指示操作。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
oraprd = 來源 (ORCL1)
oratst = 目的地 (ORCL1AUX)
步驟 1:連線至來源資料庫
[oracle@oraprd ~]$ export ORACLE_SID=ORCL1 [oracle@oraprd ~]$ sqlplus / as sysdba
步驟 2:尋找伺服器參數檔案名稱
SQL> show parameter spfile
步驟 3:建立輔助 Oracle 例項的參數檔案
SQL> create pfile='/u01/app/oracle/product/19.3.0/dbhome_1/dbs/initORCL1AUX.ora' from spfile;
步驟 4:將 initORCL1AUX.ora 中的來源例項名稱 (ORCL1) 更換為輔助例項名稱 (ORCL1AUX)
PWD = /u01/app/oracle/product/19.3.0/dbhome_1/dbs [oracle@oraprd dbs]$ cat initORCL1AUX.ora
步驟 5:將 initORCL1AUX.ora 複製到遠端目的地主機
[oracle@oraprd dbs]$ scp initORCL1AUX.ora oracle@oratst:/u01/app/oracle/product/19.3.0/dbhome_1/dbs/
步驟 6:在「遠端目的地」節點上,根據 initORCL1AUX.ora 檔案建立所有資料夾結構
[oracle@oratst dbs]$ mkdir -p /u01/app/oracle/admin/ORCL1AUX/adump /u02/oradata/ORCL1AUX/ /u01/app/oracle/recovery_area/ORCL1AUX/ /u01/app/oracle/recovery_area
步驟 7:建立 Oracle 密碼檔案
[oracle@oratst dbs]$ orapwd file=orapwORCL1AUX password=oracle entries=5 format=12
步驟 8:在 listener.ora 檔案中加入輔助 SID (ORCL1AUX)
[oracle@oratst admin]$ cat listener.ora
第 9 步:在來源和目的地節點上的 tnsnames.ora 中新增輔助 SID (ORCL1AUX) 和來源 SID (ORCL1)
[oracle@oratst admin]$ cat tnsnames.ora
步驟 10:在兩個節點上重新啟動 Listner
[oracle@oratst dbs] lsnrctl reload [oracle@oraprd dbs] lsnrctl reload
第 11 步:匯出新ORACLE_SID
[oracle@oratst dbs]$ export ORACLE_SID=ORCL1AUX
第 12 步:連線至輔助實體
[oracle@oratst dbs]$ sqlplus / as sysdba
第 13 步:使用 PFILE 在 NOMOUNT 模式下啟動 DB
SQL> startup nomount pfile=/u01/app/oracle/product/19.3.0/dbhome_1/dbs/initORCL1AUX.ora
第 14 步:使用 SPFILE 在 NOMOUNT 模式下啟動 DB
SQL> create spfile from pfile='/u01/app/oracle/product/19.3.0/dbhome_1/dbs/initORCL1AUX.ora'; SQL> startup force nomount;
步驟 15:從兩個節點連接 RMAN 以驗證連線是否正常運作
[oracle@oratst dbs] rman target sys/oracle@ORCL1 auxiliary sys/oracle@ORCL1AUX [oracle@oraprd dbs] rman target sys/oracle@ORCL1 auxiliary sys/oracle@ORCL1AUX
Affected Products
NetWorker Module for Databases and ApplicationsArticle Properties
Article Number: 000261454
Article Type: How To
Last Modified: 19 Dec 2024
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.