ORA-00130: invalid listener address ‘(ADDRESS=(PROTOCOL=TCP)(HOST=ora12c)

Posted 雅冰石

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORA-00130: invalid listener address ‘(ADDRESS=(PROTOCOL=TCP)(HOST=ora12c)相关的知识,希望对你有一定的参考价值。

环境说明:操作系统版本:redhat 6.5

              数据库版本:oracle 12.1.0.2

              原主机名 ora12c  现主机名 dg1 

             原IP地址:192.168.1.7  现IP地址:192.168.1.135

自己将主机名和IP地址修改后,启动数据库报如下错误

SQL> startup nomount;
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=ora12c)(PORT=1521))'

2、因为主机名变了,侦听的配置文件必须修改

LISTENER.ORA文件内容:

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = ora12c)(PORT = 1521)) --需要将原主机名更换成新的主机名:dg1
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

tnsnames.ora文件内容

LISTENER_SCP =
  (ADDRESS = (PROTOCOL = TCP)(HOST = ora12c)(PORT = 1521))  --需要将原主机名更换成新的主机名:dg1
SCP =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora12c)(PORT = 1521)) --需要将原主机名更换成新的主机名:dg1
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = scp)
    )
  )

注意,还需要检查下/etc/hosts文件,确保里面记录的是该服务器的ip及当前主机名。

经过以上调整后,再次启动数据库:

SQL> startup nomount;
ORACLE instance started.

Total System Global Area 1010827264 bytes
Fixed Size            2931904 bytes
Variable Size          662700864 bytes
Database Buffers      339738624 bytes
Redo Buffers            5455872 bytes

SQL> alter database mount;

Database altered.

SQL> alter database open;

Database altered.

以上是关于ORA-00130: invalid listener address ‘(ADDRESS=(PROTOCOL=TCP)(HOST=ora12c)的主要内容,如果未能解决你的问题,请参考以下文章

ORA-00130: invalid listener address ‘(ADDRESS=(PROTOCOL=TCP)(HOST=ora12c)

ORA-00119,ORA-00130 错误处理

TypeError [ERR_INVALID_ARG_TYPE]:“listener”参数必须是函数类型。收到未定义

如何让 View.invalidate 在 Click Listener 中工作

ORA-00119: invalid specification for system parameter REMOTE_LISTENER

ORA-00119: invalid specification for system parameter LOCAL_LISTENER