修改了hostname和 ip之后 启动提示如下错误
SQL> startup
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=testdb2)(PORT=1521))'
解决方法修改一下/etc/hosts 增加一条 ip 和 hostname 对应的条目
[root@testdb2 ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.1.211 testdb2 //
就可以启动了。