ORA-07274: spdcr: access error, access to oracledenied.,spdcroracledenied

來源:互聯網
上載者:User

ORA-07274: spdcr: access error, access to oracledenied.,spdcroracledenied

ORA-07274: spdcr: access error, access to oracledenied.

 

 

問題現象:

在執行sqlplus / as sysdba 登陸資料庫的時候報ORA-12545錯誤,如下:

[oracle@source ~]$ sqlplus / as sysdbaORA-12545:Connect failed because targethost or object does not exist
 

問題分析:

從報錯資訊上來看,這個問題應該是個簡單且常見的問題,通常都會是由於SID不正確,主機指向不對和在SQLNET.ora中關閉了本地驗證,均會報如上錯誤,但是通過檢查,都是沒有問題的,如下:

 

問題解決思路一:

首先我們應當檢查上面提到的那幾項,結果都沒有問題,但是就是死活登不上去:

[oracle@source ~]$ cat /etc/hosts # Do not remove the following line, orvarious programs# that require network functionality will fail.127.0.0.1               localhost.localdomain localhost192.168.7.20            source192.168.7.21            target[oracle@source ~]$ echo $ORACLE_SIDwoo[oracle@source ~]$ cat/DBSoft/product/11.2.4/db_1/network/admin/listener.ora# listener.ora Network Configuration File:/DBSoft/product/11.2.4/db_1/network/admin/listener.ora# Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))     (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.7.20)(PORT = 1521))    )  )ADR_BASE_LISTENER = /DBSoft[oracle@source ~]$ cat/DBSoft/product/11.2.4/db_1/network/admin/sqlnet.ora# sqlnet.ora Network Configuration File:/DBSoft/product/11.2.4/db_1/network/admin/sqlnet.ora# Generated by Oracle configuration tools.NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)ADR_BASE = /DBSoft

解決問題思路二:

從上並未發現什麼有價值的資訊,隨即檢查alert警示記錄檔,發下如下報錯:

[oracle@source~]$tail -50 $ORACLE_BASE/diag/Woo/woo/alert_woo.log |grep ORA-ORA-07274: spdcr: access error, access to oracledenied.
 

從這個錯誤資訊上來看非常陌生,隨即上互連網尋找有沒有解決辦法看到askmaclean的blog中有一篇文檔對此有介紹,但是環境不一樣,實在不行也就死馬當活馬醫了,隨即展開問題的解決:

 

問題解決步驟:

         從askmaclean部落格中可以看出可能是由於$ORACLE_HOME/bin目錄中的oracle檔案狀態不對導致該問題的發生,我對此問題的解決步驟如下:

1、查看$ORACLE_HOME/bin/ 目錄中的oracle這個檔案,可以發現沒有[oracle@source ~]$ ll$ORACLE_HOME/bin/oraclels: /DBSoft/product/11.2.4/db_1/bin/oracle:No such file or directory2、隨即從其它正常節點將此檔案拷貝到該目錄中[oracle@target ~]$scp$ORACLE_HOME/bin/oracle source: $ORACLE_HOME/bin/3、再次查看該檔案及相關許可權,可以看出都是對的[oracle@source ~]$ ll$ORACLE_HOME/bin/oracle-rwsr-s--x 1 oracle oinstall 239627073Sep  2 22:38/DBSoft/product/11.2.4/db_1/bin/oracle4、再次登陸sqlplus,成功,問題解決。[oracle@source ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production onWed Sep 3 00:12:54 2014Copyright (c) 1982, 2013, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise EditionRelease 11.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Miningand Real Application Testing optionsSQL>

 





相關文章

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.