OHS
[fzou@lgtcb1oas01
~]$ sudo su -
[root@lgtcb1oas01 ~]# su - ora10gas
Choose your ORA_HOME:
1 - as10g01
2 - ohs10g01
Choice (5 sec.): 2
<> /home/ora10gas
[ora10gas@lgtcb1oas01 ~]$ 2
	//OPMN是Web Server的后台进程
[ora10gas@lgtcb1oas01 ~]$ ps -ef|grep opmn
ora10gas 1396 871 0 14:49 pts/3 00:00:00 grep --color opmn
ora10gas 17045 1 0 2014 ? 00:00:00 /opt/oracle/ohs10g01/opmn/bin/opmn -d
ora10gas 17046 17045 0 2014 ? 00:37:23 /opt/oracle/ohs10g01/opmn/bin/opmn -d
ora10gas 26124 1 0 07:03 ? 00:00:00 /opt/oracle/as10g01/opmn/bin/opm n -d
ora10gas 26125 26124 0 07:03 ? 00:00:17 /opt/oracle/as10g01/opmn/bin/opmn -d
ora10gas 26150 26125 0 07:03 ? 00:00:11 /opt/oracle/as10g01/jdk/bin/java
	
//查看OHS状态
	
[ora10gas@lgtcb1oas01 conf]$ opmnctl status
Processes in Instance: IAS-LGTCB1OAS01
---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
HTTP_Server | HTTP_Server | 12195 | Alive
//OHS服务器进程
		
[ora10gas@oxita1oas19 ~]$ ps -ef| grep 14493
ora10gas 10277 9320 0 07:11 pts/0 00:00:00 grep --color 14493
ora10gas 14493 14492 0 Jan02 ? 02:27:15 /opt/oracle/ohs10g01/opmn/bin/opmn -d
ora10gas 14514 14493 0 Jan02 ? 00:00:07 /opt/oracle/ohs10g01/ohs/bin/httpd.worker -d /opt/oracle/ohs10g01/ohs -DSSL
[ora10gas@lgtcb1oas01 ~]$ cd /opt/oracle/ohs10g01/ohs
[ora10gas@lgtcb1oas01 ohs]$ ls
bin cgi-bin error fcgi-bin htdocs.bak htdocs.tar include lib.tar logs mod_perl php
build conf fastcgi htdocs htdocs_old icons lib license.txt man modules php5
	
[ora10gas@lgtcb1oas01 ohs]$ cd conf
[ora10gas@lgtcb1oas01 conf]$ ls
dms.conf httpd.conf (HTTP Server的配置文件) mod_oc4j.conf (应用的配置文件) mod_oc4j_webservices.conf.bak20140318 osso ssl.conf.tmp
dms.conf.sbs LocalConfig.conf mod_oc4j.conf.20141006 mod_osso.conf php5.ini ssl.crl
highperformance.conf magic mod_oc4j.conf.bak20140318 mod_osso.conf.tmp php.ini ssl.wlt
highperformance.conf.tmp mime.types mod_oc4j_webservices.conf oracle_apache.conf ssl.conf WebAgent.conf
	
// httpd.conf配置HTTP的访问
[ora10gas@lgtcb1oas01 conf]$ vi httpd.conf
NameVirtualHost *:7777
	
ServerName webservices.asia.log.dktetrix.net
include "/opt/oracle/ohs10g01/ohs/conf/mod_oc4j_webservices.conf" //App的配置文件
DocumentRoot "/opt/oracle/ohs10g01/ohs/htdocsws"
	
	
ServerName log.asia.subsidia.org
include "/opt/oracle/ohs10g01/ohs/conf/mod_oc4j.conf"
DocumentRoot "/opt/oracle/ohs10g01/ohs/htdocs"
	
[ora10gas@lgtcb1oas01 conf]$ cat mod_oc4j.conf
### OC4J_LOG01 on TKUJLX01 & TKUJLX02 ###
Oc4jMount /tattoo instance://as10g01.lgtcb1oas01.dktetrix.net:OC4J_LOG01,as10g01.lgtcb1oas02.dktetrix.net:OC4J_LOG01
Oc4jMount /tattoo/* instance://as10g01.lgtcb1oas01.dktetrix.net:OC4J_LOG01,as10g01.lgtcb1oas02.dktetrix.net:OC4J_LOG01
Oc4jMount /capecm instance://as10g01.lgtcb1oas01.dktetrix.net:OC4J_LOG01,as10g01.lgtcb1oas02.dktetrix.net:OC4J_LOG01
	
配置conf文件后,需要启停服务器
	
[ora10gas@lgtcb1oas01 conf]$ opmnctl
opmnctl stopall / startall
	opmnctl stopproc process-type =
	
opmnctl stopall
opmnctl startall