故障现象
执行SELECT tablespace_name 表空间,sum(blocks*8192/1000000) 剩余空间M FROM dba_free_space GROUP BY tablespace_name;
报如下错误
ORA-01116: error in opening database file 47
ORA-01110: data file 47: '/dev/rpt_itrusca_disk'
ORA-27041: unable to open file
IBM AIX RISC System/6000 Error: 13: Permission denied
Additional information: 3
故障分析
根据Permission denied怀疑是权限问题,如下查询得知果然权限crw-rw----和其他空间不一样
p550a:/dev#ls -lt|grep rpt_
crw-rw---- 1 root system 80,100 8月09 17时39 rpt_itrusca_disk
crwxrwxrwx 1 oracle dba 80,102 6月25 13时08 rpt_gaza_disk
crwxrwxrwx 1 oracle dba 80,101 6月25 13时08 rpt_silkroad
crwxrwxrwx 1 root system 80, 98 6月25 13时08 rpt_website_disk
crwxrwxrwx 1 oracle dba 80,103 6月25 13时08 rpt_zjport1_disk
crwxrwxrwx 1 oracle dba 80,104 6月25 13时08 rpt_zjport2_disk
crwxrwxrwx 1 oracle dba 80,105 6月25 13时08 rpt_zjport3_disk
crwxrwxrwx 1 oracle dba 80,106 6月25 13时08 rpt_zjport4_disk
crwxrwxrwx 1 oracle dba 80,107 6月25 13时08 rpt_zjport5_disk
crwxrwxrwx 1 oracle dba 80,108 6月25 13时08 rpt_zjport6_disk
crwxrwxrwx 1 oracle dba 80,109 6月25 13时08 rpt_zjport7_disk
crwxrwxrwx 1 oracle dba 80,110 6月25 13时08 rpt_zjport8_disk
crw-rw---- 1 oracle dba 80, 99 6月25 13时08 rpt_zjport_index
crwxrwxrwx 1 root system 80, 97 4月30 17时38 rpt_users_disk
解决
chmod 后故障消失
p550a:/dev#chmod 777 rpt_itrusca_disk
后续规范解决:chown oracle:dba rpt_itrusca_disk