ORA-01139: RESETLOGS option only valid after an incomplete database recovery
Cause: The RESETLOGS option was given in ALTER DATABASE OPEN, but there has been no incomplete recovery session.
Action: Retry the ALTER DATABASE OPEN without specifying RESETLOGS
1. 首先确保已执行了不完整的数据库恢复。
2. 关闭所有数据库会话然后禁止连接。
3. 用RESETLOGS选项重新打开数据库:
ALTER DATABASE OPEN RESETLOGS;
4. 允许用户连接数据库:
ALTER SYSTEM ENABLE RESTRICTED SESSION;