Catalog archivelog from file system to Asmdg;
[root@sscp-db2 arch2]# scp 2_9204_844882031.dbf root@135.149.48.95:/u01
The authenticity of host '135.149.48.95 (135.149.48.95)' can't be established.
RSA key fingerprint is b2:c4:b7:54:46:05:dd:d5:e5:bf:b0:66:b7:12:06:7f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '135.149.48.95' (RSA) to the list of known hosts.
root@135.149.48.95's password:
2_9204_844882031.dbf 0% 5520KB 2.7MB/s 05:10 ETA
2_9204_844882031.dbf 100% 844MB 5.6MB/s 02:30
[root@sscp-db2 arch2]#
[root@sscp-db2 u01]# chown oracle.asmadmin *.dbf
[root@sscp-db2 u01]# ls -l
total 862644
-rw-r----- 1 oracle asmadmin 883316736 Jul 17 16:37 1_8696_844882031.dbf
drwxr-xr-x 6 root oinstall 4096 Jun 29 16:37 app
drwxrwxr-x. 2 grid oinstall 16384 May 31 10:40 lost+found
drwxrwxr-x 8 grid oinstall 4096 Jul 7 00:15 soft
[oracle@sscp-db2 ~]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Fri Jul 17 17:02:08 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: SSCPDB (DBID=233800172, not open)
RMAN> catalog archivelog '/u01/1_8696_844882031.dbf';
using target database control file instead of recovery catalog
cataloged archived log
archived log file name=/u01/1_8696_844882031.dbf RECID=17955 STAMP=885315775
RMAN> copy archivelog '/u01/1_8696_844882031.dbf' to '+arch/SSCPDB/archivelog/2015_07_17/1_8696_844882031.dbf';
Starting backup at 17-JUL-2015 17:05:00
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=5 instance=sscpdb2 device type=DISK
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=8696 RECID=17955 STAMP=885315775
output file name=+ARCH/sscpdb/archivelog/2015_07_17/1_8696_844882031.dbf RECID=17956 STAMP=885315906
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:07
Finished backup at 17-JUL-2015 17:05:10
RMAN-06497: WARNING: control file is not current, control file AUTOBACKUP skipped
RMAN> catalog archivelog '+arch/SSCPDB/archivelog/2015_07_17/1_8696_844882031.dbf';
cataloged archived log
archived log file name=+ARCH/sscpdb/archivelog/2015_07_17/1_8696_844882031.dbf RECID=17957 STAMP=885315960
目標異機recover完成:
RMAN> run {
2> allocate channel c0 type 'sbt_tape';
3> allocate channel c1 type 'sbt_tape';
4> send 'NB_ORA_SERV=vnbumaster,NB_ORA_CLIENT=sscp-db2';
5> set until time "TO_DATE('07/17/15 00:03','MM/DD/YY hh24:mi')";
6> recover database;
7> release channel ch00;
8> release channel ch01;
9> }
allocated channel: c0
channel c0: SID=853 instance=sscpdb2 device type=SBT_TAPE
channel c0: Veritas NetBackup for Oracle - Release 7.6 (2014042414)
allocated channel: c1
channel c1: SID=1142 instance=sscpdb2 device type=SBT_TAPE
channel c1: Veritas NetBackup for Oracle - Release 7.6 (2014042414)
sent command to channel: c0
sent command to channel: c1
executing command: SET until clause
Starting recover at 17-JUL-2015 17:16:45
starting media recovery
archived log for thread 1 with sequence 8696 is already on disk as file +ARCH/sscpdb/archivelog/2015_07_17/1_8696_844882031.dbf
archived log for thread 2 with sequence 9204 is already on disk as file +ARCH/sscpdb/archivelog/2015_07_17/2_9204_844882031.dbf
archived log file name=+ARCH/sscpdb/archivelog/2015_07_17/2_9204_844882031.dbf thread=2 sequence=9204
archived log file name=+ARCH/sscpdb/archivelog/2015_07_17/1_8696_844882031.dbf thread=1 sequence=8696
media recovery complete, elapsed time: 00:00:01
Finished recover at 17-JUL-2015 17:16:49
The authenticity of host '135.149.48.95 (135.149.48.95)' can't be established.
RSA key fingerprint is b2:c4:b7:54:46:05:dd:d5:e5:bf:b0:66:b7:12:06:7f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '135.149.48.95' (RSA) to the list of known hosts.
root@135.149.48.95's password:
2_9204_844882031.dbf 0% 5520KB 2.7MB/s 05:10 ETA
2_9204_844882031.dbf 100% 844MB 5.6MB/s 02:30
[root@sscp-db2 arch2]#
[root@sscp-db2 u01]# chown oracle.asmadmin *.dbf
[root@sscp-db2 u01]# ls -l
total 862644
-rw-r----- 1 oracle asmadmin 883316736 Jul 17 16:37 1_8696_844882031.dbf
drwxr-xr-x 6 root oinstall 4096 Jun 29 16:37 app
drwxrwxr-x. 2 grid oinstall 16384 May 31 10:40 lost+found
drwxrwxr-x 8 grid oinstall 4096 Jul 7 00:15 soft
[oracle@sscp-db2 ~]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Fri Jul 17 17:02:08 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: SSCPDB (DBID=233800172, not open)
RMAN> catalog archivelog '/u01/1_8696_844882031.dbf';
using target database control file instead of recovery catalog
cataloged archived log
archived log file name=/u01/1_8696_844882031.dbf RECID=17955 STAMP=885315775
RMAN> copy archivelog '/u01/1_8696_844882031.dbf' to '+arch/SSCPDB/archivelog/2015_07_17/1_8696_844882031.dbf';
Starting backup at 17-JUL-2015 17:05:00
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=5 instance=sscpdb2 device type=DISK
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=8696 RECID=17955 STAMP=885315775
output file name=+ARCH/sscpdb/archivelog/2015_07_17/1_8696_844882031.dbf RECID=17956 STAMP=885315906
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:07
Finished backup at 17-JUL-2015 17:05:10
RMAN-06497: WARNING: control file is not current, control file AUTOBACKUP skipped
RMAN> catalog archivelog '+arch/SSCPDB/archivelog/2015_07_17/1_8696_844882031.dbf';
cataloged archived log
archived log file name=+ARCH/sscpdb/archivelog/2015_07_17/1_8696_844882031.dbf RECID=17957 STAMP=885315960
目標異機recover完成:
RMAN> run {
2> allocate channel c0 type 'sbt_tape';
3> allocate channel c1 type 'sbt_tape';
4> send 'NB_ORA_SERV=vnbumaster,NB_ORA_CLIENT=sscp-db2';
5> set until time "TO_DATE('07/17/15 00:03','MM/DD/YY hh24:mi')";
6> recover database;
7> release channel ch00;
8> release channel ch01;
9> }
allocated channel: c0
channel c0: SID=853 instance=sscpdb2 device type=SBT_TAPE
channel c0: Veritas NetBackup for Oracle - Release 7.6 (2014042414)
allocated channel: c1
channel c1: SID=1142 instance=sscpdb2 device type=SBT_TAPE
channel c1: Veritas NetBackup for Oracle - Release 7.6 (2014042414)
sent command to channel: c0
sent command to channel: c1
executing command: SET until clause
Starting recover at 17-JUL-2015 17:16:45
starting media recovery
archived log for thread 1 with sequence 8696 is already on disk as file +ARCH/sscpdb/archivelog/2015_07_17/1_8696_844882031.dbf
archived log for thread 2 with sequence 9204 is already on disk as file +ARCH/sscpdb/archivelog/2015_07_17/2_9204_844882031.dbf
archived log file name=+ARCH/sscpdb/archivelog/2015_07_17/2_9204_844882031.dbf thread=2 sequence=9204
archived log file name=+ARCH/sscpdb/archivelog/2015_07_17/1_8696_844882031.dbf thread=1 sequence=8696
media recovery complete, elapsed time: 00:00:01
Finished recover at 17-JUL-2015 17:16:49
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13750068/viewspace-1736532/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【HDFS】HADOOP DISTRIBUTED FILE SYSTEMHadoop
- Resource is out of sync with the file system
- Export/import Datas To/from a Csv FileExportImport
- Eclipse:Resource is out of sync with the file systemEclipse
- Unreal: Dynamic load map from Pak fileUnreal
- 《The Google File System》論文研讀Go
- remount of /system failed: Read-only file system原因及解決REMAI
- 《Google File System》讀書筆記(1)Go筆記
- hdfs file system shell的簡單使用
- MIT 6.S081 Lab File SystemMIT
- Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'HTTP
- MIT-6.828-JOS-lab5:File system, Spawn and ShellMIT
- 解決 Error: ENOSPC: System limit for number of file watchers reachedErrorMIT
- MIT6.828 La5 File system, Spawn and ShellMIT
- 使用System.IO.File.Create()時注意的問題
- 大資料理論篇HDFS的基石——Google File System大資料Go
- Unable to read TLD "META-INF/c.tld" from JAR fileJAR
- Try to run this command from the system terminal. Make sure that you use the correct version of ‘...
- ASM叢集檔案系統ACFS(ASM Cluster File System)ASM
- Oracle OCP(58):ARCHIVELOG 管理OracleHive
- [20200416]ORA-01187 cannot read from file because it failed verification tests.AI
- 極簡 Node.js 入門 - 3.1 File System API 風格Node.jsAPI
- 【轉】恢復archivelog介紹Hive
- PG 自動刪除archivelogHive
- JDK 載入jar中的檔案資源出現Cannot be resolved to absolute file path because it does not reside in the file systemJDKJARIDE
- [已解決] [HiveCatalog]Kerberos GSS initiate failed, No valid credentials provided, Cannot read from System.inHiveROSAIIDE
- win10執行照片應用提示file system -2147219195如何解決Win10
- MySQL啟動報錯InnoDB: The innodb_system data file './ibdata1' is of a differentMySql
- ORA-19599 When Backing up an Archivelog that is CorruptHive
- redhat系統伺服器重啟後提示An error occurred during the file system check.Redhat伺服器Error
- rman 還原歸檔日誌(restore archivelogRESTHive
- rman備份archivelog出現ORA-19625Hive
- catalog.sql指令碼介紹SQL指令碼
- macOS 無法sudo建立資料夾返回Read-only file system問題解決Mac
- win10系統出現藍屏錯誤MUP_FILE_SYSTEM怎麼辦Win10
- Flashback database必須要有之前的archivelog嗎?DatabaseHive
- 理解RMAN backup database plus archivelog delete all input命令DatabaseHivedelete
- 【Addressable】Catalog檔案大小最佳化
- 資料庫-Duckdb-catalog和schema資料庫