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

來源:互聯網
上載者:User

今天在自己的環境中建立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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.