ORA-01219:database not open:queries allowed on fixed tables/views only
2013-03-20 16:50
656 查看
“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>
到此为止,问题解决了
转自:http://www.cnblogs.com/wuxi/archive/2012/12/28/2836958.html
解决办法:
登录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>
到此为止,问题解决了
转自:http://www.cnblogs.com/wuxi/archive/2012/12/28/2836958.html
相关文章推荐
- ORA-01219:database not open:queries allowed on fixed tables/views only
- ORA-01219:database not open:queries allowed on fixed tables/views only
- ORA-01157报错"cannot identify/lock data file" ORA-01219:database not open:queries allowed on fixed
- ORACLE ORA-02030: can only select from fixed tables/views
- ORACLE ORA-02030: can only select from fixed tables/views
- ORACLE ORA-02030: can only select from fixed tables/views
- ORA-02030: can only select from fixed tables/views
- ORA-02030: can only select from fixed tables/views
- ORACLE ORA-02030: can only select from fixed tables/views
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- 备库重新编译导致的ora-16000 :database open for read-only access
- ORA-38706: Cannot turn on FLASHBACK DATABASE logging.ORA-38709: Recovery Area is not enabled.
- Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- jeeplus Connection is read-only. Queries leading to data modification are not allowed
- (dao)Connection is read-only. Queries leading to data modification are not allowed
- ORA-22804: remote operations not permitted on object tables or user-defined type columns
- Hibernate批量删除出现sql异常Connection is read-only. Queries leading ... are not allowed
- 解决ssh中Connection is read-only. Queries leading to data modification are not allowed