Solved

The database status must be 'MOUNTED' or 'OPEN'

Posted on 2014-11-27
9
159 Views
Last Modified: 2014-12-29
Hi,
I am getting the following error when trying to run an oracle db backup

The database status must be 'MOUNTED' or 'OPEN' when performing backups. Mount the database, and then run the job again.

How do a check the status of the database?
0
Comment
Question by:hellblazeruk
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40469781
If you got that error the database is either down or in nomount.

Don't know of a way to check the status.  If it is down, there isn't anything to query to check.

If you can connect and it is at least mounted:
select open_mode from v$database;
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 40469792
if this gives no result at all then the DB is down:
ps -ef | grep pmon

Open in new window


If you're able to connect, follow slightwv (plus you also may query the v$instance view).
0
 
LVL 23

Accepted Solution

by:
David earned 500 total points
ID: 40469939
The database instance has to be "up" and available for a backup to run.  Your question suggests you don't yet know why the database was NOT up.  It should be obvious from the alert_<sid>.xml log.  Also, if this is an existing system, what changed?

For example, if you're using an O/S script to start the backup, does the script include commands to stop (shutdown) the database, or did something else cause that.

The one exception to an up system is for an O/S backup (such as a UNIX fbackup), but O/S backups aren't very useful for database restoration.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 40470162
i'd use rman,
just add the command startup mount to your backup script

backup_script.sql
startup mount;
backup as compressed backupset database;

Open in new window


rman target / @backup_script.sql
 
you might want to set the output path of your backup files
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 40470165
That's the point, Geert. Actually we do not know, how and what the asker is using / executing...
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 40470167
i know, we don't know :)
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40470993
>>The database instance has to be "up" and available for a backup to run.

Not necessarily.  RMAN and other tools can do a cold backup.
0
 
LVL 23

Expert Comment

by:David
ID: 40471060
>> Not necessarily.  RMAN and other tools can do a cold backup

Yes, though in the context of this question, I didn't want to confuse things.  Hopefully the asker will return on Monday.
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 40473882
if it's down, a file copy works just as easy
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question