合 Oracle创建控制文件时报错ORA-15173
现象
创建控制文件时报错:
1 2 3 4 5 6 7 8 | RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of sql statement command at 02/27/2022 18:01:46 ORA-01503: CREATE CONTROLFILE failed ORA-01565: error in identifying file '+DATA/odsdw/onlinelog/group_1a.log' ORA-17503: ksfdopn:2 Failed to open file +DATA/odsdw/onlinelog/group_1a.log ORA-15173: entry 'group_1a.log' does not exist in directory 'onlinelog' |
解决
由于是新环境,肯定没有redo文件,所以,首先需要手动创建目录“+DATA/odsdw/onlinelog/”,然后创建控制文件时,需要使用RESETLOGS选项,而不能使用NORESETLOGS。