重庆思庄Oracle、Redhat认证学习论坛

标题: ORA-07391: sftopn: fopen error, 目录权限问题 [打印本页]

作者: jiawang    时间: 2018-12-25 15:41
标题: ORA-07391: sftopn: fopen error, 目录权限问题
报错如下

SQL> create pfile='/u01/init.ora' from spfile;
create pfile='/u01/init.ora' from spfile
*
ERROR at line 1:
ORA-07391: sftopn: fopen error, unable to open text file.

于是查看/u01目录的权限得知,是权限导致的问题
[oracle@strong ~]$ ls -ld /u01/
drwxrwxr-x 3 root dba 33 12月 25 15:34 /u01/

修改权限
[root@strong /]# chown oracle:dba /u01
[root@strong /]# ls -ld /u01/
drwxrwxr-x 3 oracle dba 33 12月 25 15:34 /u01/

尝试在/u01 目录下创建pfile,成功
SQL> create pfile='/u01/init.ora' from spfile;
File created.







欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2