1. 程式人生 > >監聽報錯 TNS-00525: Insufficient privilege for operation 11gR2 + 連線報錯ORA-12537: TNS:connection closed

監聽報錯 TNS-00525: Insufficient privilege for operation 11gR2 + 連線報錯ORA-12537: TNS:connection closed

1.TNS-00525: Insufficient privilege for operation 

複製程式碼
Started with pid=30869
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora11g)(PORT=1521)))
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 No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora11g)(PORT=1521))) 2014-07-10 14:17:16.811000 +08:00 System parameter file is /u01/app/11.2.0/grid/network/admin/listener.ora Log messages written to /u01/app/grid/diag/tnslsnr/ora11g/listener/alert/log.xml Trace information written to
/u01/app/grid/diag/tnslsnr/ora11g/listener/trace/ora_30888_47191985552112.trc Trace level is currently 0
複製程式碼

檢查/tmp/.oracle 和 /var/tmp/.oracle 這2個資料夾的屬組是否正確,如果不正確,改為 chown -R grid:oinstall

2.在保證上面2個目錄許可權正確的情況下,連線報錯ORA-12537: TNS:connection closed

複製程式碼
[[email protected] admin]$ tnsping 192.168.0.164/isc

TNS Ping Utility 
for Linux: Version 11.2.0.3.0 - Production on 10-JUL-2014 14:20:44 Copyright (c) 1997, 2011, Oracle. All rights reserved. Used parameter files: /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora Used HOSTNAME adapter to resolve the alias Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=isc))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.164)(PORT=1521))) OK (0 msec) [[email protected] admin]$ sqlplus isc/[email protected]192.168.0.164/isc SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 10 14:21:09 2014 Copyright (c) 1982, 2011, Oracle. All rights reserved. ERROR: ORA-12537: TNS:connection closed Enter user-name:
複製程式碼

tnsping正常,監聽狀態正常,但是連線報錯ora-12537。

檢查$ORACLE_HOME/bin/oracle的許可權應該為6751

[[email protected] admin]$ ls -la $ORACLE_HOME/bin/oracle
-rwxr-s--x 1 oracle asmadmin 232399473 Nov 11  2013 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
[[email protected] admin]$ chmod 6751 $ORACLE_HOME/bin/oracle
[[email protected] admin]$ ls -la $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle asmadmin 232399473 Nov 11  2013 /u01/app/oracle/product/11.2.0/db_1/bin/oracle

官方的解釋:

Applies to:
Oracle Net Services - Version: 8.1.7.0 to 11.2.0.1 - Release: 8.1.7 to 11.2
Generic UNIX
Checked for relevance on 30-Apr-2010
Symptoms
Connection to the database server fails with ORA-12546 or ORA-12537

Local connections working fine but the connection via listener fails with ORA-12537 or ORA-12547

Cause
Permissions on oracle binary ( $ORACLE_HOME/bin/oracle ) are not set correctly.

Solution
The OS level error message in the listener log "Linux Error: 13: Permission denied" indicates that the listener was not able to hand off the connection to oracle processes or not able to spawn a new dedicated user process because of lack of permission at the OS level. To resolve the error -

1. Check and correct the permission on /var/tmp/.oracle directory. Permissions on this directory should be 777 with sticky bit set.
# chmod 01777 /var/tmp/.oracle

2. Check and correct permissions on $ORACLE_HOME/bin/oracle binary and make sure that it is set to 6751.
$ chmod 6751 $ORACLE_HOME/bin/oracle

相關推薦

TNS-00525: Insufficient privilege for operation 11gR2 + 連線ORA-12537: TNS:connection closed

1.TNS-00525: Insufficient privilege for operation  Started with pid=30869 Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora1

連線資料庫出現ORA-12518: TNS: 程式無法分發客戶機連線錯誤

系統(.NET開發)連線oracle 10g 資料庫出現 資訊:ORA-12518: TNS: 監聽程式無法分發客戶機連線 物件:ZFSoft 方法:Boolean LoadFromSql(System.String, System.Collections.Specialized.ListDic

ORA-12528 TNS: 程式: 所有適用例程都無法建立新連線 解決辦法

最近一段時間不知道怎麼的伺服器的oracle老是各種問題,什麼無法建立連線啊監聽器錯誤啊等等。今天又是一個沒見過的問題:ORA-12528 TNS: 監聽程式: 所有適用例程都無法建立新連線。其實關於這個問題的解決辦法

Struts2There is no Action mapped for action name calaction_mul.的

一、struts.xml檔案錯誤。這種錯誤又分為以下幾種: 1,struts.xml檔名錯誤。 2,struts.xml檔案放置路徑錯誤。一定要將此檔案放置在src目錄下。 3,struts.xml檔案內容錯誤。下面給出一個正確的struts.xml檔案以供參考。 <?xml

Oracle - 連線發生 ERROR: ORA-12560: TNS: 協議介面卡錯誤

今天使用Java連線Oracle時,程式丟擲SQLException: java.sql.SQLException: Listener refused the connection with the following error: ORA-12514, TNS:listener does no

Oracle lsnrctl命令啟動TNS-12537TNS-12560,TNS-00507)

LINUX登入oracle使用者,通過lsnrctl start命令啟動資料庫時,報錯如下: “ [[email protected] ~]$ lsnrctl start LSNRCTL for Linux: Version 11.2

oracle 12c啟動協議適配器錯誤

oracle 計算機 適配器 我遇到此類問題,一般是右鍵計算機-管理-服務,找到OracleOraDB12Home1TNSListener設為自動啟動,並重啟,當然這種操作你要確定監聽文件什麽的都已經檢查無問題哦。本文出自 “myOracle” 博客,請務必保留此出處http://clarkbg.

連接linux數據庫Oracle時報ORA-12541: TNS: 無程序

以及 ora- base img acl names star alt blog 1 windows上安裝Oracle的客戶端。 2 確保linux服務器上的1521端口開放。 3 看你的window機器是夠能夠ping同linux服務器的ip地址 4 在windows中

ALERT日誌中常見相關之二:ORA-3136錯誤的排查

hang gui tns -c 未在 fatal odr bound 問題 最近在多個大型系統中遇到此問題,一般來說假設client未反映異常的話能夠忽略的。 假設是client登陸時遇到ORA-12170: TNS:Co

連接Oracle時報ORA-12541: TNS: 無程序

數據庫 是否 主機 CI a13 default 開始 AR dfa 從開始菜單中打開“Oracle Net Configuration Assistance”,選擇“監聽程序配置”,如下圖所示,點擊下

webStorm開啟scssEncoding::CompatibilityError: incompatible character encodings: GBK and UTF-8

解決方案:只要把中文路徑全部改成英文路徑就可以 o(╥﹏╥)o。 cmd.exe /D /C call C:\Ruby25-x64\bin\scss.bat --no-cache --update layout.scss:layout.css Encoding::CompatibilityErr

關於遠端連線ORA-12541 無程式問題

報錯關於ORA-12541 無監聽程式問題有兩種情況,上文已經介紹了第一種,這裡介紹第二種: 上一篇文章:關於本地ORA-12541 無監聽程式問題 2、一臺電腦安裝Oracle,另外一臺電腦通過plsql遠端連線Oracle例項報錯:ORA-12541 無監聽程式; 解決方法: (1)檢查

chrome touch類事件

document.addEventListener('touchstart',function (e) { //阻止預設事件 e.preventDefault() },{ passive: false }) document.addEventList

oracle 11gR2 本地能連線上,遠端連線不上,誤碼:ORA-12541 TNS程式

注意:我本地安裝oracle11gR2 64位,桌面類; 我本地安裝目錄:D:\app\ELONG\ 解決辦法: 1. 修改D:\app\ELONG\product\11.2.0

ORACLE 低版本客戶端登入Oracle 12cORA-28040

    今天,測試要求遠端登入oracle 12c資料庫,但是他本地安裝的連線客戶端工具版本比較低,他本地安裝的oracle資料庫是11.2.0.1 要遠端登入的資料庫是12.2.0.1,通過tns遠端登入時報錯:ORA-28040     開始時使用tnsping測試TN

Navicat Premium連線Oracle資料庫時,ORA-12541: TNS程式錯誤

一般這種問題大多數是由於修改了資料庫所在伺服器名稱所導致的。 解決步驟如下: 1、在oracle安裝目錄下查詢listener.ora和tnsnames.ora這兩個檔案,然後用記事本開啟。 2、將HOST改為機器名(即計算機名),注意如果有標題所示的問題,經常改為

Oracle啟動:The listener supports no services解決

報錯提示: The listener supports no services The command completed successfully 如圖所示: 這樣啟動後遠端連線會報錯:oracle ORA-12514:TNS:listener does not

修改根控制器,KVO單例

在tabbar 中使用KVO監聽單例 切換根控制器時程式在LIBC中報錯 [self addObserver:[IMAPlatform sharedInstance].conversationMgr forKeyPath:@"unReadMessageCount" op

使用PLSql連線Oracle時報ORA-12541: TNS: 無程式

   很多時候為了優化我們的啟動項把oracle的服務禁止了,可是重啟啟動之後使用PLSQL登陸oracle時會出現無監聽程式,這說明我們有一些服務沒有啟動。我們先檢視一下oracle的服務是否啟動,檢視方法是計算機-->>管理-->>服務和應用程式