2023年5月31日 星期三

ORA-600 [spstp: ORACLE_HOME uid does not match euid]

Oracle 版本: 11.1.0.7

OS 版本: Linux 5.8


問題描述:

使用 sqlplus 連線時出現錯誤 ORA-12547 "TNS:lost contact" ,檢查 DB alert log 出現 ORA-00600 訊息:

ORA-00600: internal error code, arguments: [spstp: ORACLE_HOME uid does not match euid], [1001], [1003], [], [], [], [], [], [], [], [], []


問題分析:

這個訊息表示 oracle 執行檔的權限不對,檢查 $ORACLE_HOME/bin/oracle 的權限,發現為 755 :

$ ls -l $ORACLE_HOME/bin/oracle

-rwxr-xr-x 1 oracle oinstall 232399431 Mar 14 10:17 oracle


解決方法:

將 oracle 執行檔權限修正為 6751 :

$ chmod 6751 $ORACLE_HOME/bin/oracle

$ ls -l $ORACLE_HOME/bin/oracle

-rwsr-s--x 1 oracle oinstall 232399431 Mar 14 10:17 oracle



沒有留言:

張貼留言