ORA-00130 引发的故障


1.登录系统检查服务

            6行
sqlplus "/ as sysdba"
出现ORA-01012: not logged on
ps -ef |grep smon
发现smon进程在,怀疑是有事务导致数据库没有完全shutdown
由于是测试环境,我直接采取了kill smon进程的操作(生产环境需要权衡) 

2.重启库

            45行
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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值