oracle常见问题


1、出现:

[oracle@localhost ~]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-DEC-2021 14:27:10

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Starting /usr/local/src/data/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
[oracle@localhost ~]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.211.11 localhost localhost.localdomain

解决办法:

修改主机名:

1 hostname 

hostname oracle

2 /etc/hosts

127.0.0.1 localhost localhost.domain
192.168.0.1 oracle

3 /etc/sysconfig/network

hostname = oracle

    再次启动,成功