Ano-Tech Computers
Enter keyword:

Oracle: After restoring a database from backup, the instance fails to start
Problem:
After restoring an oracle database from backup, the instance fails to start properly.
 
Solution:
Because the file has been handles manually, its 'archive' flag has been reset, because of this it is treated as "dirty" by Oracle.

$ export ORACLE_SID=[sid]
$ sqlplus
(Log in with user name "system as sysdba")
SQL> SELECT status,name FROM v$datafile WHERE status =! 'ONLINE';
(If any of the files are status 'RECOVER' do the following:)
RECOVER DATAFILE '[/full/path/to/file]';
ALTER DATABASE DATAFILE '[filename]' ONLINE;
COMMIT WORK;
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER DATABASE OPEN;
(Repeat if any more errors occur)
EXIT



 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles