最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

ORA-07391:sftopn:fopenerror,unabletoopentextfile.

来源:动视网 责编:小采 时间:2020-11-09 11:10:45
文档

ORA-07391:sftopn:fopenerror,unabletoopentextfile.

ORA-07391:sftopn:fopenerror,unabletoopentextfile.: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 ~]$
推荐度:
导读ORA-07391:sftopn:fopenerror,unabletoopentextfile.: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 ~]$


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/spfile@.ora'
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/oracle/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

文档

ORA-07391:sftopn:fopenerror,unabletoopentextfile.

ORA-07391:sftopn:fopenerror,unabletoopentextfile.: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 ~]$
推荐度:
标签: error File ora
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top