00376, 00000, "file %s cannot be read at this time"SQL> select ONLINE_STATUS from dba_data_files
// *Cause: attempting to read from a file that is not readable. Most likely
// the file is offline.
// *Action: Check the state of the file. Bring it online
$
You might have to recover your datafile, as in following example :
2 where file_id = 5;
ONLINE_
RECOVER
select了一下我的dba_data_files,发现:
'/opt/app/oracle/oradata/orcl/undotbs01.dbf'
'/opt/app/oracle/oradata/orcl/sysaux01.dbf'
都是RECOVER的状态。由于sysaux属于系统表空间,不能置为offline,又因为是练习库,所以就:
SQL> shutdown immediate;
SQL> !cp /backup/path/{undotbs01.dbf,sysaux01.dbf} /opt/app/oracle/oradata/orcl/
SQL> startup mount;
SQL> alter database datafile '/opt/app/oracle/oradata/orcl/sysaux01.dbf' offline;
SQL> alter database datafile '/opt/app/oracle/oradata/orcl/undotbs01.dbf' offline;
SQL> recover datafile '/opt/app/oracle/oradata/orcl/sysaux01.dbf';
SQL> recover datafile '/opt/app/oracle/oradata/orcl/undotbs01.dbf';
SQL> alter database datafile '/opt/app/oracle/oradata/orcl/undotbs01.dbf' online;
SQL> alter database datafile '/opt/app/oracle/oradata/orcl/sysaux01.dbf' online;
SQL> alter database open;
Database altered.
此时,再create table,再create catalog ,正常,问题得到解决。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23230551/viewspace-630593/ ,如需转载,请注明出处,否则将追究法律责任。