ORA-12547: TNS:lost contact之oracle執行檔案許可權問題
1、報錯資訊:
-
ERROR:
- ORA-12547: TNS:lost contact
非oracle使用者使用sqlplus username/password 後面不使用tnsname.ora 檔案中連線字串的名稱時報錯:ORA-12547: TNS:lost contact
3、解決方法:
第一步:檢視$ORACLE_HOME/bin/oracle的許可權:
- ll $ORACLE_HOME/bin/oracle
- -rwxr-x--x 1 oracle oinstall 239626731 Apr 6 14:22 /oracle/product/11.2.0/bin/oracle
第二步:修改oracle的許可權為6751預設許可權:
-
chmod 6751 $ORACLE_HOME/bin/oracle
- -rwsr-s--x 1 oracle oinstall 239626731 Apr 6 14:22 /oracle/product/11.2.0/bin/oracle
實驗模擬:
1、以mth使用者登入系統,使用DB 賬號mth以下面的方式連線資料庫。
-
[mth@TaylonMeng ~]$ sqlplus mth/mth
-
-
SQL*Plus: Release 11.2.0.4.0 Production on Wed Jun 22 22:40:23 2016
-
-
Copyright (c) 1982, 2013, Oracle. All rights reserved.
-
-
ERROR:
- ORA-12547: TNS:lost contact
-
[mth@TaylonMeng ~]$ sqlplus mth/mth@MTH
-
-
SQL*Plus: Release 11.2.0.4.0 Production on Wed Jun 22 22:43:52 2016
-
-
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>
2、檢視$ORACLE_HOME/bin/oracle該執行檔案的許可權
-
[oracle@TaylonMeng ~]$ ll $ORACLE_HOME/bin/oracle
-
-rwxr-x--x 1 oracle oinstall 239626731 Mar 16 23:16 /oracle/product/11.2.0/bin/oracle
3、修改$ORACLE_HOME/bin/oracle的許可權為預設的6751.
-
[oracle@TaylonMeng ~]$ chmod 6751 /oracle/product/11.2.0/bin/oracle
-
[oracle@TaylonMeng ~]$ ll $ORACLE_HOME/bin/oracle
-
-rwsr-s--x 1 oracle oinstall 239626731 Mar 16 23:16 /oracle/product/11.2.0/bin/oracle
- SUID 許可權僅對二進位制程式(binary program)有效;
- 執行者對於該程式需要具有 x 的可執行許可權;
- 本許可權僅在執行該程式的過程中有效 (run-time);
- 執行者將具有該程式擁有者 (owner) 的許可權。
-
[mth@TaylonMeng ~]$ sqlplus mth/mth
-
-
SQL*Plus: Release 11.2.0.4.0 Production on Wed Jun 22 23:07:27 2016
-
-
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/30776559/viewspace-2120766/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【ORA】ORA-12547 TNS: Lost Contact錯誤診斷
- Oracle案例04——TNS-12547: TNS:lost contactOracle
- sqlplus登入資料庫報錯ORA-12547: TNS:lost contactSQL資料庫
- 【ORA-】ORA-12547: TNS:lost contact錯誤的跟蹤分析
- 在Suse 12.4上安裝11.2.0.4的rac執行root.sh報錯“ORA-12547: TNS:lost contact”
- 12cRAC打季度補丁時遇到ORA-12547: TNS:lost contact錯誤
- hdfs檔案本地許可權問題
- Linux檔案讀、寫、執行許可權Linux
- Laravel 日誌檔案許可權問題Laravel
- Linux更改檔案及目錄許可權問題Linux
- linux 檔案許可權 s 許可權和 t 許可權解析Linux
- Linux 檔案許可權Linux
- Linux檔案許可權Linux
- Linux的檔案存取許可權和0644許可權Linux
- MySQL許可權問題MySql
- Jenkins執行遠端Windows批處理的許可權問題JenkinsWindows
- win共享檔案沒有許可權訪問怎麼辦 win10共享檔案許可權訪問的方法Win10
- [svc]linux檔案許可權Linux
- chomd檔案許可權授予
- Centos sudo 許可權問題CentOS
- Linux讀寫執行許可權對目錄和檔案的影響Linux
- Linux檔案許可權管理命令Linux
- Linux中檔案的許可權Linux
- Linux的檔案許可權管理Linux
- 許可權之選單許可權
- Sybase IQ-15_1本地登入問題之interfaces檔案配置及資料檔案許可權
- 『學了就忘』Linux許可權管理 — 55、檔案特殊許可權Linux
- Docker構建的tomcat工程上傳檔案,訪問報403許可權問題DockerTomcat
- 許可權的級聯問題
- Ubuntu 下 Composer 許可權問題Ubuntu
- 採坑之Android手機訪問相簿許可權問題Android
- 修改檔案、資料夾許可權
- Linux 檔案許可權管理的方法Linux
- linux 檔案、資料夾許可權Linux
- WPF + Winform 解決管理員許可權下無法拖放檔案的問題ORM
- Mysql資料庫許可權問題MySql資料庫
- Laravel Daily 日誌許可權問題LaravelAI
- jenkins 容器內的許可權問題Jenkins
- vue許可權問題解決方案Vue