ORA-19502: write error on file xxxxx, block number xxxx
?
錯(cuò)誤現(xiàn)象:
在ORACLE 10g下為表空間IGNITE_EGVSQL01增加數(shù)據(jù)文件時(shí),報(bào)如下錯(cuò)誤:
SQL> ALTER TABLESPACE IGNITE_EGVSQL01
???? ADD DATAFILE '/oradata/ignt/ignite_egvsql01_d02.dbf' SIZE 4096M
???? AUTOEXTEND OFF;
ERROR at line 1:
ORA-19502: write error on file "/oradata/ignt/ignite_egvsql01_d02.dbf", block number 334080 (block size=8192)
ORA-27072: File I/O error
Linux-x86_64 Error: 25: Inappropriate ioctl for device
Additional information: 4
Additional information: 334080
Additional information: 376832
錯(cuò)誤原因:
從報(bào)錯(cuò)信息來看應(yīng)該是寫文件時(shí)遇到I/O錯(cuò)誤,一般是磁盤空間不足導(dǎo)致。用df命令查看磁盤空間
[root@gsp ignt]# df -h
Filesystem??????????? Size? Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
? ? ? ? ? ? ? ? ? ? ? 37G?? 23G?? 13G? 64% /
/dev/sda1 ? ? ? ? ? ? ? ?99M?? 23M?? 71M? 25% /boot
tmpfs ? ? ? ? ? ? ? ? ?2.0G? 1.1G? 941M? 53% /dev/shm
/dev/mapper/VolGroup01-LogVol10
? ? ? ? ? ? ? ? ? ? ? 50G?? 46G? 1.6G? 97% /oradata
?
解決方法:
很明顯/oradata只剩下1.6G空間了,不足以創(chuàng)建4G的數(shù)據(jù)文件,所以報(bào)上面錯(cuò)誤。要解決這個(gè)問題,那么減小數(shù)據(jù)文件的大小或?yàn)樵黾淤Y源。
轉(zhuǎn)載于:https://www.cnblogs.com/kerrycode/p/3244966.html
總結(jié)
以上是生活随笔為你收集整理的ORA-19502: write error on file xxxxx, block number xxxx的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。