2. 查看数据文件状态:
SQL> select file#, name, status from v$datafile where file#=11;
FILE# NAME STATUS
----- ------------------------------------------------------- ------------------------
11 /oracle/oradata_petest/petest/dcsopen_tbs02.dbf ONLINE
3. 登录到只读表空间:
SQL> select * from test1;
T1ID T1V
---------- ----------
1 t1
2 t2
3 t3
可以读其中的表。
SQL> insert into test1 values(12, ‘t12‘);
insert into test1 values(12, ‘t12‘)
*
ERROR at line 1:
ORA-00372: file 7 cannot be modified at this time
ORA-01110: data file 7: ‘/oracle/oradata_petest/petest/dcsopen_tbs01.dbf‘
执行交易操作时提示7号数据文件此时不能修改。