ORA-01219: database not open: queries allowed on fixed tables/views only
查了一下資料:(使用了如下段方法)
SQL> select * from all_users; select * from all_users * ERROR at line 1: ORA-01219: database not open: queries allowed on fixed tables/views only SQL> select status from v$instance; STATUS ------------ MOUNTED SQL>
To open the database for normal access, we can alter the database again.
SQL> alter database open; Database altered.
The shutdown proccess is the simply opposite of the startup.
SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down.
運行 SQL> alter database open; ERROR at line 1:
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: 'E:\SALES_DATA01.DBF'
依次使用
alter database datafiel 'E:\SALES_DATA01.DBF' offline drop;
alter database datafiel 'E:\SALES_DATA02.DBF' offline drop;
等方法把數據文件全部脫機刪除,再運行SQL>alter database open;就可以了