Oracle与/etc/hosts关系很暧昧啊~

昨天处理了一个小case,后来发现不知道哪位亲爱的朋友修改了/etc/hosts文件,导致数据库趴下了,记录一下


[[email protected] ~]# su - oracle
<padb:padb:/home/oracle>$
<padb:padb:/home/oracle>$ps -ef|grep ora_
oracle    5874  5847  0 11:35 pts/3    00:00:00 grep ora_
<padb:padb:/home/oracle>$lsnrctl status

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 12-JUL-2018 11:35:33

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))

###########监听卡在这里了####################

<padb:padb:/home/oracle>$ps -ef|grep lsnr
oracle    5808  5757  0 11:34 pts/1    00:00:00 lsnrctl start
oracle    5810     1 99 11:34 ?        00:01:36 /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER -inherit
oracle    5877  5847  0 11:35 pts/3    00:00:00 grep lsnr

##############进程在
<padb:padb:/home/oracle>$kill -9 5810
<padb:padb:/home/oracle>$ps -ef|grep lsnr
oracle    5879  5847  0 11:35 pts/3    00:00:00 grep lsnr

##############kill 进程
<padb:padb:/home/oracle>$sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 12 11:35:56 2018

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected.
SQL> 

###############很诡异的一个状态,竟然connected了

##############查看日志
<padb:padb:/home/oracle>$uptime
 11:36:27 up 50 min,  4 users,  load average: 0.42, 0.33, 0.47
<padb:padb:/home/oracle>$adrci

ADRCI: Release 11.2.0.3.0 - Production on Thu Jul 12 11:36:35 2018

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

ADR base = "/u01/app/oracle"
adrci> show alert

Choose the alert log from the following homes to view:

1: diag/clients/user_oracle/host_61728193_80
2: diag/rdbms/padb/padb
3: diag/tnslsnr/localhost/listener
4: diag/tnslsnr/padb/listener
Q: to quit

Please select option: 2
Output the results to file: /tmp/alert_5886_14061_padb_1.ado
2017-12-05 18:40:29.250000 +08:00
Starting ORACLE instance (normal)
****************** Large Pages Information *****************

Total Shared Global Region in Large Pages = 0 KB (0%)

Large Pages used by this instance: 0 (0 KB)
Large Pages unused system wide = 0 (0 KB) (alloc incr 64 MB)
Large Pages configured system wide = 0 (0 KB)
Large Page size = 2048 KB

RECOMMENDATION:
  Total Shared Global Region size is 24 GB. For optimal performance,
  prior to the next instance restart increase the number
  of unused Large Pages by atleast 12097 2048 KB Large Pages (24 GB)
  system wide to get 100% of the Shared
  Global Region allocated with Large pages
***********************************************************
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 3
Machine:x86_64
VM name:VMWare Version: 6
home_1/dbs/spfilepadb.ora
System parameters with non-default values:
  processes                = 500
  sessions                 = 780
  sga_target               = 24192M
  control_files            = "/u01/app/oracle/padb/control01.ctl"
  control_files            = "/u01/app/oracle/padb/control02.ctl"
  db_block_size            = 8192
  compatible               = "11.2.0.0.0"
  undo_tablespace          = "UNDOTBS1"
  remote_login_passwordfile= "EXCLUSIVE"
  db_domain                = ""
  dispatchers              = "(PROTOCOL=TCP) (SERVICE=padbXDB)"
  audit_file_dest          = "/u01/app/oracle/admin/padb/adump"
  audit_trail              = "DB"
  db_name                  = "padb"
  open_cursors             = 300
  pga_aggregate_target     = 8053M
  diagnostic_dest          = "/u01/app/oracle"
USER (ospid: 5117): terminating the instance due to error 119
ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1
System name:Linux
Node name:padb
Release:2.6.32-573.el6.x86_64
Version:#1 SMP Wed Jul 1 18:23:37 EDT 2015
Machine:x86_64
VM name:VMWare Version: 6
Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/dbb
home_1/dbs/spfilepadb.ora
System parameters with non-default values:
  processes                = 500
  sessions                 = 780
  sga_target               = 24192M
  control_files            = "/u01/app/oracle/padb/control01.ctl"
  control_files            = "/u01/app/oracle/padb/control02.ctl"
  db_block_size            = 8192
  compatible               = "11.2.0.0.0"
  undo_tablespace          = "UNDOTBS1"
  remote_login_passwordfile= "EXCLUSIVE"
  db_domain                = ""
  dispatchers              = "(PROTOCOL=TCP) (SERVICE=padbXDB)"
  audit_file_dest          = "/u01/app/oracle/admin/padb/adump"
  audit_trail              = "DB"
  db_name                  = "padb"
  open_cursors             = 300
  pga_aggregate_target     = 8053M
  diagnostic_dest          = "/u01/app/oracle"
USER (ospid: 5117): terminating the instance due to error 119
  remote_login_passwordfile= "EXCLUSIVE"
  db_domain                = ""
  dispatchers              = "(PROTOCOL=TCP) (SERVICE=padbXDB)"
  audit_file_dest          = "/u01/app/oracle/admin/padb/adump"
  audit_trail              = "DB"
  db_name                  = "padb"
  open_cursors             = 300
  pga_aggregate_target     = 8053M
  diagnostic_dest          = "/u01/app/oracle"
2018-07-12 09:45:28.043000 +08:00
USER (ospid: 18388): terminating the instance due to error 119
Instance terminated by USER, pid = 18388                           ############实例异常终止了
2018-07-12 09:47:53.701000 +08:00
Starting ORACLE instance (normal)
"/tmp/alert_5886_14061_padb_1.ado" 13117L, 632251C written

<padb:padb:/home/oracle>$df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                      627G  512G   84G  86% /
tmpfs                  32G   72K   32G   1% /dev/shm
/dev/sda1             477M   42M  410M  10% /boot

<padb:padb:/home/oracle>$
<padb:padb:/home/oracle>$sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 12 11:47:10 2018

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected.

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

##########第一意识ping了一下主机名

<padb:padb:/u01/app/oracle/diag/rdbms/padb/padb/trace>$ping padb
ping: unknown host padb
<padb:padb:/u01/app/oracle/diag/rdbms/padb/padb/trace>$ping padb
ping: unknown host padb
<padb:padb:/u01/app/oracle/diag/rdbms/padb/padb/trace>$hostname
padb
<padb:padb:/u01/app/oracle/diag/rdbms/padb/padb/trace>$more /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

padb  10.18.0.84    ##到这里,只能无语了,外加18个点点点,这是啥啊!!!!
<padb:padb:/u01/app/oracle/diag/rdbms/padb/padb/trace>$ping padb
ping: unknown host padb
<padb:padb:/u01/app/oracle/diag/rdbms/padb/padb/trace>$exit
logout

####修改host文件
[[email protected] ~]# vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.18.0.84  padb  

"/etc/hosts" 3L, 175C written
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]# ping padb
PING padb (10.18.0.84) 56(84) bytes of data.
64 bytes from padb (10.18.0.84): icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from padb (10.18.0.84): icmp_seq=2 ttl=64 time=0.021 ms
^C
--- padb ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1804ms
rtt min/avg/max/mdev = 0.021/0.025/0.029/0.004 ms
[[email protected] ~]# 

Refer to the SQL*Plus User‘s Guide and Reference for more information.
<padb:padb:/home/oracle>$sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 12 12:01:43 2018

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 2.5254E+10 bytes
Fixed Size                  2240096 bytes
Variable Size            3221225888 bytes
Database Buffers         2.2012E+10 bytes
Redo Buffers               18718720 bytes
Database mounted.
Database opened.
SQL> exit

原文地址:http://blog.51cto.com/roidba/2141344

时间: 2024-11-25 14:20:58

Oracle与/etc/hosts关系很暧昧啊~的相关文章

打造和谐的邻里关系很重要哦

我们无论是在农村.城市生活都有邻居,现在在城市了,住着套房,有些人连对门住的是谁可能几年.十几年了都不知道,其实邻居.邻里关系是很重要的哦,远亲不如近邻啊.因此我们在进行房屋设计的时候就要和邻居商量下哦,别吵到他们了.如果大家的房屋是自己设计的话,可以到一些的房屋设计网上看一些思路.效果图等等,会对自己有所帮助的. 我来和大家分享下我自己的心得: 我家刚刚装修完,基本上都是我自己设计的,我的设计理念啊.风格啊,甚至还有一些格局都是从房屋设计网上找到的.当然最主要的看你自己喜欢的类型,并不是流行的

Oracle ERP系统借贷关系表

成本核算会计信息归纳 按照事务处理的来源类型归纳. 一. 采购接收入库和退货: 1.接收:   借:材料采购 (订单价格) 贷:应计负债 (订单价格) 2.入库: 借:原材料 (标准成本) 贷:材料采购 (订单价格) 借或贷:材料成本差异_材料订单价格 3.退货至接收时产生与上面第2步相反的分录,退货至供货商时产生与上面第1步相反的分录. 二. 子库存转移:只有转出子库产生分录 借:原材料(自制半成品.库存商品) 贷:原材料(自制半成品.库存商品) 三. 杂项事务处理: 1.库存增加:借:原材料

oracle 11G direct path read 很美也很伤人

direct path read 在11g中,全表扫描可能使用direct path read方式,绕过buffer cache,这样的全表扫描就是物理读了. 在10g中,都是通过gc buffer来读的,所以不存在direct path read的问题. direct path read较高的可能原因有: 1. 大量的磁盘排序操作,order by, group by, union, distinct, rollup, 无法在PGA中完成排序,需要利用temp表空间进行排序. 当从临时表空间中

Apollo,Python,Delphi与Oracle之间的神话关系

在希腊历史上Delphi曾被认为是世界的中心,Apollo杀死Python后将其据为己有,在其神庙上刻有Oracle,曰:Γνωθι δεαυτ?ν (认识你自己自身关怀,Cognosce te ipsum, Connais-toi  toi-même).Borland公司将其最为Pascal语言IDE的名字,从此Delphi深入人心,有人说: 真正的程序员用C++,聪明的程序员用Delphi,初级的程序员用VB.Delphi以其自身的诸多优点深深吸引了我: 1)源代码公开:使用Delphi,可

Oracle 11g统计表空间使用率很慢

现场统计表空间很慢. SELECT T1.TABLESPACE_NAME, TOTAL_SPACE, TOTAL_SPACE - FREE_SPACE USED_SPACE, FREE_SPACE FROM (SELECT TABLESPACE_NAME, SUM(BYTES) / 1024 / 1024/ 1024 TOTAL_SPACE FROM DBA_DATA_FILES GROUP BY TABLESPACE_NAME) T1, (SELECT TABLESPACE_NAME, SUM

[Java面试三]JavaWeb基础知识总结.

1.web服务器与HTTP协议 Web服务器 l WEB,在英语中web即表示网页的意思,它用于表示Internet主机上供外界访问的资源. l Internet上供外界访问的Web资源分为: • 静态web资源(如html 页面):指web页面中供人们浏览的数据始终是不变. • 动态web资源:指web页面中供人们浏览的数据是由程序产生的,不同时间点访问web页面看到的内容各不相同. l 静态web资源开发技术 • Html l 常用动态web资源开发技术: • JSP/Servlet.ASP

linux内存管理

一.Linux 进程在内存中的数据结构 一个可执行程序在存储(没有调入内存)时分为代码段,数据段,未初始化数据段三部分:    1) 代码段:存放CPU执行的机器指令.通常代码区是共享的,即其它执行程序可调用它.假如机器中有数个进程运行相同的一个程序,那么它们就可以使用同一个代码段.     2) 数据段:存放已初始化的全局变量.静态变量(包括全局和局部的).常量.static全局变量和static函数只能在当前文件中被调用.     3) 未初始化数据区(uninitializeddata s

Linux内存管理 【转】

转自:http://blog.chinaunix.net/uid-25909619-id-4491368.html Linux内存管理 摘要:本章首先以应用程序开发者的角度审视Linux的进程内存管理,在此基础上逐步深入到内核中讨论系统物理内存管理和内核内存的使用方法.力求从外到内.水到渠成地引导网友分析Linux的内存管理与使用.在本章最后,我们给出一个内存映射的实例,帮助网友们理解内核内存管理与用户内存管理之间的关系,希望大家最终能驾驭Linux内存管理. 前言 内存管理一向是所有操作系统书

day07-jsp高级

day07 JSP指令 1 JSP指令概述 JSP指令的格式:<%@指令名 attr1="" attr2="" %>,一般都会把JSP指令放到JSP文件的最上方,但这不是必须的. JSP中有三大指令:page.include.taglib,最为常用,也最为复杂的就是page指令了. 2 page指令 page指令是最为常用的指定,也是属性最多的指令! page指令没有必须属性,都是可选属性.例如<%@page %>,没有给出任何属性也是可以的