• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

ORA-07391: sftopn: fopen error, unable to open text file.

mysql 搞代码 4年前 (2022-01-09) 19次浏览 已收录 0个评论

ORA-07391: sftopn: fopen error, unable to open text file.

今天在自己的环境中创建pfile报错了。

环境是:OS:11.2.0.2 RAC,,OS:RHEL 5.6

创建pfile,报ORA-01565这个是因为不能找到spfile。
[Oracle@11rac1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Sun Oct 7 22:25:05 2012

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to an idle instance.

SQL> create pfile=’/tmp/123.ora’ from spfile;
create pfile=’/tmp/123.ora’ from spfile
*
ERROR at line 1:
ORA-01565: error in identifying file ‘?/dbs/[email protected]
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
查看spfile文件位置
SQL> !srvctl config database -d power
Database unique name: power
Database name:
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +data/power/PARAMETERFILE/spfile.257.795051357
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: power
Database instances: power1,power2
Disk Groups: DATA,ARCH
Mount point paths:
Services: server1,server2
Type: RAC
Database is administrator managed
创建pfile到/tmp空间下面,/tmp空间一般是所有用户都有w权限的
SQL> create pfile=’/tmp/123.ora’ from spfile=’+data/power/PARAMETERFILE/spfile.257.795051357′;
create pfile=’/tmp/123.ora’ from spfile=’+data/power/PARAMETERFILE/spfile.257.795051357′
*
ERROR at line 1:
ORA-07391: sftopn: fopen error, unable to open text file.
查看错误解释
SQL> !oerr ora 07391
07391, 00000, “sftopn: fopen error, unable to open text file.”
// *Cause: Fopen library routine returned an error.
// *Action: Verify existence and permissions.

晕报了ORA-07391,这个是由于权限不对,换个目录正常
SQL> create pfile=’/home/or本文来源gao@daima#com搞(%代@#码网@acle/123.ora’ from spfile=’+data/power/PARAMETERFILE/spfile.257.795051357′;

File created.

SQL> !ls -ld /tmp
drwxrwxrwt 14 root root 4096 Oct 7 22:32 /tmp


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:ORA-07391: sftopn: fopen error, unable to open text file.

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址