将一个EXPDP导出的库导入到现在
服务器,发现字符集有问题,
服务器安装的是西欧字符,然后DMP包确实简体中文;
于是删掉实例,重新安装,在安装的时候就出现了ORA-00119与ORA-00130错误,无法继续了。
问题根源就在于Linxu 配置 /etc/hosts
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=test)(PORT=1521))
结果发现localhost竟然没有oracle和test帐户......
[oracle@test ~]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[oracle@test ~]$ su
Password: [root@test oracle]#vi /etc/hosts
在127.0.0.1后面添加当前host名:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 test oracle
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
具体配置:
127.0.0.1 liuyang localhost4 localhost4.localdomain4
::1 localhost6 localhost6.localdomain6
192.168.1.197 liuyang