windows跟linux虽然是相同endian,甚至可以构建dataguard,rman备份可以直接使用,但是,但是redo是不可以用的。
来自文档:
Restore From Windows To Linux using RMAN Fails (Doc ID 2003327.1)
Note, redo application is not supported between Linux and Windows except with a standby database. This means that the backup must be a
cold (consistent) backup, which requires no redo application. If redo apply is required to recover the database on the new platform it will fail.
Using consistent (cold) backup method should be used for duplicating cross platform.
所以特定条件下,需要下面步骤才能直接使用,并resetlogs时不需要归档以及redo,并且会resetlogs重新生成联机日志:
- 原库
RMAN> shutdown immediate;
RMAN> startup mount;
RMAN> backup …
- Linux
restore
resetlogs upgrage(存在跨版本升级情况),因为不存在需要redo做前滚,数据库为一致性状态,所以才可以直接open resetlogs