记一次异机rman还原后的操作
当时从主库通过rman备份到目前测试库还原之后,由于备份是在备库备份的,所以数据库还原后状态为readonly,standby_file_management参数为auto。 首先需要通过alter database clear logfile group 日志组;让数据库在磁盘创建日志文件。 出现问题1、重做日志物理文件不存在,当时日志组4状态为current,无法在readonly模式下进行更改操作。问题2、参数文件的undo表空间与控制文件的不对应 SQL> alter database rename file '/redo1/redo/redo04a.log' to '/u3/redo1/redo/redo04a.log'; alter database rename file '/redo1/redo/redo04a.log' to '/u3/redo1/redo/redo04a.log' * ERROR at line 1: ORA-01511: error in renaming log/data files ORA-01621: cannot rename member of current log if database is open ORA-00312: online log 4 thread 1: '/redo1/redo/redo04a.log' ORA