Solved

dba_data_files

Posted on 2011-03-19
4
830 Views
Last Modified: 2012-05-11
I  could not figure out the error.
SQL> select * from dba_data_files;
select * from dba_data_files
              *
ERROR at line 1:
ORA-01219: database not open: queries allowed on fixed tables/views only


SQL> spool off
0
Comment
Question by:nobleit
  • 2
  • 2
4 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35173541
Your database isn't 'open'.
0
 

Author Comment

by:nobleit
ID: 35173656
I tried to open database like this..

still shows error

SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01172: recovery of thread 1 stuck at block 57 of file 3
ORA-01151: use media recovery to recover block, restore backup if needed
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 35173757
Ok, the error mesage gives you the issue.  You need to recover your database.

From the sql prompt:
Recover database;

As mentioned in the message, you might need to restore before recover.

The backup and recovery online doc has the steps.  If this is a production database, I suggest you contact Support to assist you if you are unfamiliar with the recovery process.
0
 

Author Comment

by:nobleit
ID: 35173946
recover database;
Media recovery complete;
alter database open;

Data base is working perfectly fine;

Thanks a lot dear expert..
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

Suggested Solutions

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

790 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