如何解决ORA-12547:TNS:lostcontact错误

如题所述

第1个回答  2017-07-14
配置 rc.local文件如下
[root@yue rc.d]# cat /etc/oratab
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
oraten:/home/app/oraten/product/10.2.0/db_1:Y
oraele:/home/app/oraele/product/11.2.0/db_1:Y

oraten和oraele分别属于用户oraten 和oraele,用户属性如下:

[root@yue rc.d]# id oraten
uid=1001(oraten) gid=1002(oinstall) 组=1002(oinstall),1001(dba)
[root@yue rc.d]# id oraele
uid=1522(oraele) gid=1002(oinstall) 组=1002(oinstall),1001(dba)本回答被提问者采纳