Solved

dba_data_files

Posted on 2011-03-19
4
819 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

Title # Comments Views Activity
Oracle function works in 11g but not in 12c 21 70
sql for Oracle views 8 46
File generation using utl_file 4 45
Need a replacement data type in Oracle 6 64
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…
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…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

932 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

14 Experts available now in Live!

Get 1:1 Help Now