Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-11-27
9
Medium Priority
?
174 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 78

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 14

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 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 38

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 14

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 38

Expert Comment

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

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 38

Expert Comment

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

Featured Post

Technology Partners: 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!

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

916 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