您的位置:首页 > 其它

启动ArcSDE服务报:“ORA-12547: TNS:lost contact”

2011-12-15 11:46 567 查看
[arcsde@rhsde ~]$ sdemon -o start -p sde
-------------------------------------------------------
ArcSDE 10.0  for Oracle11g Build 685 Fri May 14 12:05:43  2010
-------------------------------------------------------

DB_open_instance()::db_connect (OCI8) error: 12547

init_DB DB_instance_open_as_dba: -51

DBMS error code: 12547
ORA-12547: TNS:lost contact

Could not start ArcSDE -- Check Network, $SDEHOME disk, DBMS settings and dbinit.sde.
我使用直连方式可以连接,说明ArcSDE Schema没有什么问题

解决方法:切换到oracle用户
[oracle@rhsde ~]$ relink all
writing relink log to: /opt/oracle/product/11.2.0/dbhome_1/install/relink.log


稍等即可!

但是Relink All这个命令轻易不能使用,这个如果是生产库,需要跟Oracle DBA商量后再做决定!

---------------------------------------------------------------------

另外一个解决方法,这个是可以借鉴的
查了oracle的maintant link。获取如下信息:
Symptoms
- Not able to make a local connection.
- Getting the following error when trying to connect to scott/tiger

ERROR:
----------------
ORA-12547: TNS:lost contact
 
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


原因是第二个,用户执行执行了chmod 775对整个oracle文件夹了,但是$ORACLE_HOME/bin里面的oracle文件应该是6751.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: