程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> Oracle教程 >> 如何解決ORA-12547:TNS:lostcontact錯誤

如何解決ORA-12547:TNS:lostcontact錯誤

編輯:Oracle教程

運行環境:ubuntu+oracle 11.2.0

在命令啟動oracle時,出現ORA-12547: TNS:lost contact錯誤。中午好好的納,下午就不管了。以為是鏈接失效,關機重啟後還是不行。然後google了一把,找到了下面的解決方法。回想了一下,引起的原因是權限的問題,中午的時候不小心該了oracle安裝目錄的文件夾的權限,看來oracle的權限不能隨便改動。

Cause

1. This could be due to kernel parameters settings
2. Incorrect permissions on the ORACLE executable

Solution

To implement the solution, please execute the following steps:

1.
This could be due to kernel parameters settings
Please check the notes below that provide the required settings for kernel parameters
Note 169706.1 Oracle Database on AIX,HP-UX,Linux,MacOSX,Solaris,Tru64
Note 201021.1 SOLARIS: Quick Start Guide - 9.2.0 RDBMS Installation

2.
This could be due to Incorrect permissions on the ORACLE.exe
The 'ls' command should show permissions 6751 (as follows)

Please check the following:

$ cd $ORACLE_HOME/bin
$ ls -l oracle

The output should be
-rwsr-s--x 1 oracle dba

If not then please execute the following
$ chmod 6751 oracle

Please also verify if the following are correct

echo $ORACLE_HOME
echo $ORACLE_SID
echo $LD_LIBRARY_PATH
echo $PATH

3.
If the above does not resolve I suggest that you shutdown the database and listener and then
"relink all"
Note 131321.1 How to Relink Oracle Database Software on UNIX

完成以上步驟,再次啟動oracle就ok了

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved