TNS-12555: TNS:permission denied

執行lsnrctl start命令監聽時,有時會報如下錯誤:

Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12555: TNS:permission denied
 TNS-12560: TNS:protocol adapter error
  TNS-00525: Insufficient privilege for operation
   Linux Error: 1: Operation not permitted

這種情況就是某些文件權限問題啦,可以查看/var/tmp目錄下文件:

[oracle@fund-rac1 tmp]$ pwd
/var/tmp
[oracle@fund-rac1 tmp]$ ll -a
total 12
drwxrwxrwt.  3 root root 4096 Feb 19 11:53 .
drwxr-xr-x. 20 root root 4096 Feb 25 16:25 ..
drwxrwxrwt   2 root root 4096 Feb 12 21:20 .oracle
[oracle@fund-rac1 tmp]$ cd ./.oracle/
[oracle@fund-rac1 .oracle]$ ll
total 0
srwxrwxrwx 1 xx_oracle xx_oracle 0 Feb 12 21:20 s#30472.1
srwxrwxrwx 1 xx_oracle xx_oracle 0 Feb 12 21:20 s#30472.2
srwxrwxrwx 1 xx_oracle dba         0 Jan 13 12:22 s#881.1
srwxrwxrwx 1 xx_oracle dba         0 Jan 13 12:22 s#881.2
srwxrwxrwx 1 xx_oracle xx_oracle 0 Feb 12 21:20 sEXTPROC1521

這裏的xx_oracle是我之前操作的用戶,現在是直接改成oracle了,去掉了前面的一部分,所以這裏只要把/var/tmp/.oracle目錄下所有文件所有者都改成oracle就好啦!

sudo chown -R oracle:oinstall ./*

用戶組也相應修改了,搞定!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章