ORA-07274: spdcr: access error, access to oracle denied.
ORA-07274: spdcr: access error, access to oracle denied.
問題現象:
在執行sqlplus / as sysdba 登陸資料庫的時候報ORA-12545錯誤,如下:
-
[oracle@source ~]$ sqlplus / as sysdba
- ORA-12545:Connect failed because target host or object does not exist
問題分析:
從報錯資訊上來看,這個問題應該是個簡單且常見的問題,通常都會是由於SID不正確,主機指向不對和在SQLNET.ora中關閉了本地驗證,均會報如上錯誤,但是透過檢查,都是沒有問題的,如下:
問題解決思路一:
首先我們應當檢查上面提到的那幾項,結果都沒有問題,但是就是死活登不上去:
-
[oracle@source ~]$ cat /etc/hosts
-
# Do not remove the following line, or various programs
-
# that require network functionality will fail.
-
127.0.0.1 localhost.localdomain localhost
-
-
192.168.7.20 source
-
192.168.7.21 target
-
-
[oracle@source ~]$ echo $ORACLE_SID
-
woo
-
-
[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 oracle denied.
從這個錯誤資訊上來看非常陌生,隨即上網際網路查詢有沒有解決辦法看到askmaclean的blog中有一篇文件對此有介紹,但是環境不一樣,實在不行也就死馬當活馬醫了,隨即展開問題的解決:
問題解決步驟:
從askmaclean部落格中可以看出可能是由於$ORACLE_HOME/bin目錄中的oracle檔案狀態不對導致該問題的發生,我對此問題的解決步驟如下:
-
1、檢視$ORACLE_HOME/bin/ 目錄中的oracle這個檔案,可以發現沒有
-
[oracle@source ~]$ ll $ORACLE_HOME/bin/oracle
-
ls: /DBSoft/product/11.2.4/db_1/bin/oracle: No such file or directory
-
-
2、隨即從其它正常節點將此檔案複製到該目錄中
-
[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 239627073 Sep 2 22:38 /DBSoft/product/11.2.4/db_1/bin/oracle
-
-
4、再次登陸sqlplus,成功,問題解決。
-
[oracle@source ~]$ sqlplus / as sysdba
-
-
SQL*Plus: Release 11.2.0.4.0 Production on Wed Sep 3 00:12:54 2014
-
-
Copyright (c) 1982, 2013, Oracle. All rights reserved.
-
-
-
Connected to:
-
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
-
With the Partitioning, OLAP, Data Mining and Real Application Testing options
-
- SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20674423/viewspace-1262454/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- nginx中報Access denied.Nginx
- ERROR 1045 (28000): Access denied for userError
- logstash nginx error access 日誌處理NginxError
- [Oracle] ORA-24247: network access denied by access control list(ACL)Oracle
- Django Error: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissionsDjangoErrorORB
- (Error -1170 @ 0x0) Unable to access the DAP)Error
- ERROR 1045 (28000): Access denied for user 'root'@'localhost'Errorlocalhost
- Error 1045(28000) Access Denied for user 'root'@'localhost'Errorlocalhost
- O/S-Error: (OS 33) The process cannot access the fileError
- Access 匯入 oracle 資料庫Oracle資料庫
- oracle之FGAC(Fine Grainted Access)OracleAI
- Connecting Oracle with MS-AccessOracle
- [筆記].痛哉!!!Error: Can't access JTAG chain, Error: Operation failed筆記ErrorAI
- Mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost'MySqlErrorlocalhost
- error C2248: cannot access protected member declared in class '****'Error
- JAVA使用accessJava
- access()函式函式
- Httplistener Access DeniedHTTP
- AP(Access Pointer)
- Thinkphp在Lnmp環境下部署專案先後報錯問題解決:_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/...Access denied.PHPLNMPErrorAPP
- MYSQL解決error: 'Access denied for user 'root'@'localhost' (using password:MySqlErrorlocalhost
- mysql ERROR 1045 (28000): Access denied for user解決方法MySqlError
- 解決錯誤:ASP.NET Error: Failed to access IIS metabaseASP.NETErrorAI
- ERROR 1044 (42000): Access denied for user 'root'@'%' to databaseErrorDatabase
- ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)Errorlocalhost
- Cannot Access Pls Pages: 'mod_security: Access denied with code 400'
- iSQLPlus for SYSDBA Access Oracle10gSQLOracle
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'ErrorlocalhostDatabaseMySql
- 解決Mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost'MySqlErrorlocalhost
- svn access to forBiddenORB
- Java連線AccessJava
- logstash nginx accessNginx
- Auditing Database AccessDatabase
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:YES)Errorlocalhost
- 解決laravel出現Syntax error or access violation: 1055 ‘***‘ isn‘t in GROUP BYLaravelError
- 登入mysql報ERROR 1045 (28000): Access denied 解決方法MySqlError
- access偏移注入原理