ORA-01219: database not open: queries allowed on fixed tables/views only

点点圈 提交于 2019-12-29 08:35:09

问题


I Am using oracle 11g and SQL developer tool. When i tried to retrieve rows from db i am getting error message as :-

ORA-01219: database not open: queries allowed on fixed tables/views only)

I looked for sgadef.dbf file and it was missing in home directory.. Can someone help me to make it working.


回答1:


First of all check the status of the instance you work with (this may need to connect under administrator account):

select status from v$instance;

Probably you will get

STATUS
------------
MOUNTED

Under sys account try to complete

ALTER DATABASE OPEN;

and check that it's completed successfuly. If not - please share the result of output and alert log in your question.




回答2:


just in case if someone comes to here for this question

RECOVER DATABASE; and then ALTER DATABASE OPEN;

fixed my issue.




回答3:


SQL>

ALTER DATABASE OPEN;
ALTER DATABASE OPEN *

ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: 'C:\APP\ADMINISTRATOR\ORADATA\WIND\SYSTEM01.DBF'


来源:https://stackoverflow.com/questions/22940636/ora-01219-database-not-open-queries-allowed-on-fixed-tables-views-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!