SQL> create tablespace sdf datafile '/nfstest/adsf.dbf' size 10m extent management local;
create tablespace sdf datafile '/nfstest/adsf.dbf' size 10m extent management local
*
ERROR at line 1:
ORA-01119: error in creating database file '/nfstest/adsf.dbf'
ORA-27054: NFS file system where the file is created or resides is not mounted
with correct options
Additional information: 3
根据metalink上ID 781349.1文档的解决方法,在mount NFS的时候使用如下的option:
rw,bg,rsize=32768,wsize=32768,hard,vers=3,nointr,timeo=600,proto=tcp,suid 0 0,
不过实际在Linux下执行时,需去掉最后的suid 0 0:
[root@standby /]# mount -t nfs 172.16.4.179:/nfstest nfstest -o rw,bg,rsize=32768,wsize=32768,hard,vers=3,nointr,timeo=600,proto=tcp
不过这样仍然会报错,提示无法获取锁:
ORA-27086: unable to lock file - already in use
Linux Error: 37: No locks available
Additional information: 10
同样的也是mount option的问题,在mount时指定nolock:
[root@standby /]# mount -t nfs 172.16.4.179:/nfstest nfstest -o nolock,rw,bg,rsize=32768,wsize=32768,hard,vers=3,nointr,timeo=600,proto=tcp
问题解决。
阅读(1451) | 评论(0) | 转发(0) |