标签:
1、启动流程
首先启动分析服务器
gtone-> ll 27828 -rw-r--r-- 1 gtone gtone 0 02-12 09:58 CE_CACHE -rw-r--r-- 1 gtone gtone 0 02-12 10:53 CE_CACHE1 -rw-r--r-- 1 gtone gtone 0 01-05 15:44 CE_LOCK -rw-r--r-- 1 gtone gtone 0 02-12 09:58 CE_TEMPDATA -rw-r--r-- 1 gtone gtone 0 02-12 10:53 CE_TEMPDATA1 -rwx------ 1 gtone gtone 1492 01-05 15:17 default_options.properties -rwx------ 1 gtone gtone 112 01-05 15:17 GID.xml -rwx------ 1 gtone gtone 243 01-05 15:17 log4j.properties -rw-r--r-- 1 gtone gtone 3900 02-12 11:11 memusage.txt -rw------- 1 gtone gtone 28406888 02-12 10:53 nohup.out -rw-r--r-- 1 gtone gtone 5402 02-11 17:54 properties.xml -rw-r--r-- 1 gtone gtone 5402 02-11 17:51 properties.xml.bak drwx------ 6 gtone gtone 4096 02-11 17:51 Resource -rwx------ 1 gtone gtone 487 01-05 15:17 startServer.cmd -rwx------ 1 gtone gtone 612 01-05 15:17 startServer.sh -rwx------ 1 gtone gtone 614 01-05 15:17 stopServer.cmd -rwx------ 1 gtone gtone 599 01-05 15:17 stopServer.sh gtone-> pwd /home/gtone/AppGov/analyzer/server/CE (分析服务器所在的目录) gtone-> sh startServer.sh (执行启动脚本)
其次启动视图服务器
gtone-> pwd /home/gtone/AppGov/WAS/bin (视图服务器所在路径) gtone-> sh startup.sh (启动视图服务器脚本) Using CATALINA_BASE: /home/gtone/AppGov/WAS Using CATALINA_HOME: /home/gtone/AppGov/WAS Using CATALINA_TMPDIR: /home/gtone/AppGov/WAS/temp Using JRE_HOME: /usr/java/jdk1.6.0_38 Using CLASSPATH: /home/gtone/AppGov/WAS/bin/bootstrap.jar
2、关闭流程
首先关闭视图服务器
gtone-> pwd /home/gtone/AppGov/WAS/bin (视图服务器关闭脚本所在目录) gtone-> sh shutdown.sh (执行视图服务器关闭脚本)
其次关闭分析服务器
gtone-> pwd /home/gtone/AppGov/analyzer/server/CE (分析服务器关闭脚本所在目录) gtone-> sh stopServer.sh (执行分析服务器脚本)
3、视图服务器日志查看
gtone-> pwd /home/gtone/AppGov/WAS/logs (视图服务器日志所在目录) gtone-> tail -f catalina.out (动态查看视图服务器)
4、分析服务器日志查看
gtone-> pwd /home/gtone/AppGov/analyzer/server/CE (分析服务器日志所在目录) gtone-> tail -f nohup.out (动态查看分析服务器的日志) [10:53:32:522] 20150212000070 <DEBUG> SET BIZ SRC-executed [10:53:32:538] CE <DEBUG> SESSION-Send message to 49946:165, session is terminated. [10:53:32:539] CE <DEBUG> SESSION-/127.0.0.1 is closed. [10:53:32:539] CE <TRACE : 5000> closeSession- [10:53:32:595] CE <DEBUG> ### -20/Y/512101 [10:53:32:604] 20150212000070 <INFO> SUMMARY- BIZ : [20] test is completed. [10:53:32:638] CE <DEBUG> ### -19/Y/512101 [10:53:32:648] 20150212000070 <INFO> SUMMARY- BIZ : [19] biz is completed. [10:53:32:649] 20150212000070 <INFO> SUMMARY-Elapsed time is 0 min 5 sec. [10:53:32:649] 20150212000070 <INFO> SUMMARY-++++++++++++++++++++++++++++++++++++++++++++++++++
5、查看分析服务器运行状态
打开AppGoverance Suite管理端,进入[系统]菜单,然后点击[查看分析服务器状态],如下图
6、数据库监控
查看进程
[root@gtone ~]# su - oracle (切入到oracle用户) gtone-> ps -ef | grep ora_ (查看oracle 进程) oracle 3504 1 0 Jan15 ? 00:00:23 ora_pmon_CQRCB oracle 3506 1 0 Jan15 ? 00:00:48 ora_psp0_CQRCB oracle 3508 1 0 Jan15 ? 00:00:11 ora_vktm_CQRCB oracle 3512 1 0 Jan15 ? 00:00:00 ora_gen0_CQRCB oracle 3514 1 0 Jan15 ? 00:00:00 ora_diag_CQRCB oracle 3516 1 0 Jan15 ? 00:00:01 ora_dbrm_CQRCB oracle 3518 1 0 Jan15 ? 01:21:36 ora_dia0_CQRCB oracle 3520 1 0 Jan15 ? 00:00:01 ora_mman_CQRCB oracle 3522 1 0 Jan15 ? 00:05:35 ora_dbw0_CQRCB oracle 3524 1 0 Jan15 ? 00:01:39 ora_lgwr_CQRCB oracle 3526 1 0 Jan15 ? 00:07:19 ora_ckpt_CQRCB oracle 3528 1 0 Jan15 ? 00:01:21 ora_smon_CQRCB oracle 3530 1 0 Jan15 ? 00:00:00 ora_reco_CQRCB oracle 3532 1 0 Jan15 ? 00:06:58 ora_mmon_CQRCB oracle 3534 1 0 Jan15 ? 00:17:31 ora_mmnl_CQRCB oracle 3536 1 0 Jan15 ? 00:00:00 ora_d000_CQRCB oracle 3538 1 0 Jan15 ? 00:00:00 ora_s000_CQRCB oracle 3552 1 0 Jan15 ? 00:00:00 ora_qmnc_CQRCB oracle 3640 1 0 Jan15 ? 00:01:32 ora_cjq0_CQRCB oracle 3712 1 0 Jan15 ? 00:00:00 ora_q000_CQRCB oracle 3714 1 0 Jan15 ? 00:00:01 ora_q001_CQRCB oracle 3738 1 0 Jan15 ? 00:00:00 ora_smco_CQRCB oracle 22582 1 0 11:02 ? 00:00:00 ora_w001_CQRCB oracle 22900 1 0 11:23 ? 00:00:00 ora_j000_CQRCB oracle 22902 1 0 11:23 ? 00:00:00 ora_j001_CQRCB oracle 22930 22904 0 11:24 pts/6 00:00:00 grep ora_
查看监听
gtone-> lsnrctl status (查看数据库监听运行状态) LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 12-FEB-2015 11:25:37 Copyright (c) 1991, 2013, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gtone.localdomain)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production Start Date 06-JAN-2015 12:10:52 Uptime 36 days 23 hr. 14 min. 44 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/gtone/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gtone.localdomain)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Services Summary... Service "CQRCB" has 1 instance(s). Instance "CQRCB", status READY, has 1 handler(s) for this service... Service "CQRCBXDB" has 1 instance(s). Instance "CQRCB", status READY, has 1 handler(s) for this service... The command completed successfully gtone->
查看数据库运行日志
gtone-> pwd /u01/app/oracle/diag/rdbms/cqrcb/CQRCB/trace (数据库告警日志所在位置) gtone-> tail -f alert_CQRCB.log (动态查看数据库告警日志)
标签:
原文地址:http://www.cnblogs.com/actioning/p/4287607.html