Solved

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

Posted on 2014-11-27
9
147 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
 
LVL 36

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
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 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 36

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 36

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.

Join & Write a Comment

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
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 information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now