[linux] 用Quest产品 Spotlight On linux来监控unix和oracle

lllxmd 2009-03-24

   DBA Blog

  Quest的产品还是很强大的,可以监控几乎所有的东西,比如就系统类的windows,linux,unix,应用类的oracle,mysql,DB2等等。具体的介绍大家可以看Quest的官方网站。
Quest的另一个亮点就是它那华丽,生动的界面让人赏心悦。不过比较遗憾的是目前这个是收费的产品(有少量的free,比如mysql监控)。
      介绍下Quest其中的一个产品-Spotlight On linux or oracle,这个用来监控在linux环境的oracle的状态。
       其实Spotlight On linux or oracle的工作原理和实现方式非常的简单,安装也非常的简单(这个客户端是安装在windows平台下),根据提示一步一步往下走就ok了,简单是下配置,在监控oracle之前,我们要确认客户端是否安装了oracle的client,如果没有要先安装oracle的client。假设我们已经安装了,主要的步骤就是配置oracle 的tnsnames.ora文件,使得它们之间可以互相通信。
  tnsname.ora

  # tnsnames.ora Network Configuration File: c:\oracle\product\10.2.0\client_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

RAC =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rdb1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = rdb2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = rac)
      (FAILOVER_MODE =
        (TYPE = SELECT)
        (METHOD = BASIC)
        (RETRIES = 180)
        (DELAY = 5)
      )
    )
  )

NUAGE =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.120)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = nuage)
    )
  )

DBRAC =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = db2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = dbrac)
      (FAILOVER_MODE =
        (TYPE = SELECT)
        (METHOD = BASIC)
        (RETRIES = 180)
        (DELAY = 5)
      )
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

NUAGE1 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db2-vip)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = nuage)
      (INSTANCE_NAME = nuage2)
    )
  )

NUAGE1 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db1-vip)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = nuage)
      (INSTANCE_NAME = nuage1)
    )
  )


soleil =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = db2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = nuage)
    )
  )

asm  =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = db2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = +ASM)
         (UR = A )
    )
  )


FX =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rdb1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = rdb2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = fx)
    )
  )

fxasm =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rdb1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = rdb2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = +ASM)
         (UR = A )
    )
  )

这么要注意的就是二个ASM的写法。
查看图片查看图片查看图片

 

liubang201010 2011-09-15
Spotlight on Unix/Linux软件产品介绍:
http://www.innovatedigital.com/OSTuning/Spotlight-On-Unix-Linux.shtml
Spotlight on Unix/Linux下载:http://www.innovatedigital.com/download/spotlight_on_unix
Global site tag (gtag.js) - Google Analytics