ORA-01219:database not open:queries allowed on fixed tables/views only
2012-12-28 10:56
651 查看
“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>
到此为止,问题解决了
解决办法:
登录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-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
- 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
- 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
- Connection is read-only. Queries leading to data modification are not allowed
- 使用Spring提供的Open Session In View而引起Write operations are not allowed in read-only mode (FlushMode.NEVE
- nopCommerce issue fixed (Could not obtain exclusive lock on database ‘model’)
- 【Oracle问题集5】ORA-55622: DML, ALTER and CREATE UNIQUE INDEX operations are not allowed on table
- ORACLE ORA-02030: can only select from fixed tables/views
- Connection is read-only. Queries leading to data modification are not allowed
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- ORA-19953: database should not be open
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed