1.登录系统检查服务
sqlplus "/ as sysdba" 出现ORA-01012: not logged on ps -ef |grep smon 发现smon进程在,怀疑是有事务导致数据库没有完全shutdown 由于是测试环境,我直接采取了kill smon进程的操作(生产环境需要权衡)
2.重启库
SQL> startup nomount; ORA-00119: invalid specification for system parameter LOCAL_LISTENER ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=data)(PORT=1521))' 又出现此错误 突然发现host里面的主机名跟当前主机名不一致, [oracle@data ~]$ hostname data [oracle@data ~]$ cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.10.8 ycdb01-10-8 直接修改hostname hostname ycdb01-10-8 注意检查一下/etc/sysconfig/network 主机名是否一致 SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 26 14:42:12 2018 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to an idle instance. SQL> startup nomount; ORACLE instance started. Total System Global Area 6263357440 bytes Fixed Size 2264856 bytes Variable Size 1375731944 bytes Database Buffers 4865392640 bytes Redo Buffers 19968000 bytes SQL> alter database mount; Database altered. SQL> alter database open; Database altered. 数据库可以正常open了。 总结:在部署的时候一定要注意一些细节参数
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24486203/viewspace-2152236/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24486203/viewspace-2152236/