Solved

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

Posted on 2014-11-27
9
161 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 77

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 77

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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 how to recover a database from a user managed backup

679 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