[转帖]ORA-01219 纠结了问题解决了_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
2
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2035 | 回复: 1   主题: [转帖]ORA-01219 纠结了问题解决了        上一篇   下一篇 
AlbertSal
注册用户
等级:新兵
经验:66
发帖:1
精华:0
注册:2016-10-1
状态:离线
发送短消息息给AlbertSal 加好友    发送短消息息给AlbertSal 发消息
发表于: IP:您无权察看 2019-9-18 14:23:06 | [全部帖] [楼主帖] 楼主

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


“ORA-01219:数据库未打开:仅允许在固定表/视图中查询”的警告窗口!    

解决办法:

登录Oracle SQL*Plus

username  sys
password   sa
String    orcl as sysdba


这一段是找出打开数据库的时候报错的地方

SQL> select open_mode from v$database;
OPEN_MODE
----------
MOUNTED
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: '/data/app/oradata/ora237/users01.dbf'


这里就是讲'/data/app/oradata/ora237/users01.dbf'这个文件出问题

我们要做的就是删掉这个残留文件

进行下一步:

SQL> alter database datafile '/data/app/oradata/ora237/users01.dbf' offline drop;
Database altered.
SQL> alter database open;
Database altered.
SQL>


注意,当你同时出现ora-01110这个错误,那么你要检查你数据文件存在不。




赞(0)    操作        顶端 
联动大白
注册用户
等级:列兵
经验:91
发帖:0
精华:0
注册:2015-5-27
状态:离线
发送短消息息给联动大白 加好友    发送短消息息给联动大白 发消息
发表于: IP:您无权察看 2019-11-6 0:30:00 | [全部帖] [楼主帖] 2  楼

为了方便大家阅读,我对文章中错误号来解释一下吧!

Error Id: ORA-01110

Title: data file string: ’string’

Description:

data file string: ’string’

Action:

See associated error message

Cause:

Reporting file name for details of another error


Error Id: ORA-01157

Title: cannot identify/lock data file string - see DBWR trace file

Description:

cannot identify/lock data file string - see DBWR trace file

Action:

Have operating system make file available to database. Then either open the database or do ALTER SYSTEM CHECK DATAFILES.

Cause:

The background process was either unable to find one of the data files or failed to lock it because the file was already in use. The database will prohibit access to this file but other files will be unaffected. However the first instance to open the database will need to access all online data files. Accompanying error from the operating system describes why the file could not be identified.


Error Id: ORA-01219

Title: database not open: queries allowed on fixed tables/views only

Description:

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

Action:

Re-phrase the query to include only fixed objects, or open the database.

Cause:

A query was issued against an object not recognized as a fixed table or fixed view before the database has been opened.


也许你已明白,但对一个人有用也是我存在的理由!^_^ By:持之以恒的大白

-- 来自: 北京联动北方科技有限公司



赞(0)    操作        顶端 
总帖数
2
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论