如何解決ORA-12547: TNS:lost contact錯


執行環境: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該

版權聲明:本文博客原創文章。博客,未經同意,不得轉載。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM